DeepFaceLab icon indicating copy to clipboard operation
DeepFaceLab copied to clipboard

Will M1 Mac support this?

Open DavideVito opened this issue 3 years ago • 8 comments

Hi,

Well this is not an Issue, but I was wondering if you're planning to make this program available also in M1 Macs,

Thanks.

DavideVito avatar May 21 '21 21:05 DavideVito

i don't support linux systems, but DFL works on linux.

iperov avatar May 22 '21 12:05 iperov

@iperov things are changing for mac m1. I'm having a hard time finding all the dependencies already working on the ARM64 architecture (m1 mac), but at first it's going.

Command I couldn't run: extract --detector manual NOK extract --detector s3fd OK

train --model SAEHD NOK train --model Quick96 OK

PS: I'm exactly in training. I hope to reach the end of the process successfully.

After that, would it be possible to have your collaboration (in new issues) for the manual detector and SAEHD training? Both cases fall into "suggest_best_multi_gpu" and the counter starts at zero, where zero is METAL (from Apple) and then fails with trying to read an empty array.

Here's where I am right now: Captura de Tela 2021-07-09 às 23 07 31

luisdemarchi avatar Jul 10 '21 02:07 luisdemarchi

The end result was disastrous, I found it strange that the video took milliseconds to be ready. But I'm happy that I managed to run all the steps with the mac m1.

Captura de Tela 2021-07-09 às 23 18 44

luisdemarchi avatar Jul 10 '21 02:07 luisdemarchi

The end result was disastrous, I found it strange that the video took milliseconds to be ready. But I'm happy that I managed to run all the steps with the mac m1.

Captura de Tela 2021-07-09 às 23 18 44

Any luck with this? i have an M1 too.

datamouth01 avatar Aug 01 '21 21:08 datamouth01

Hey, I'm getting the same (or I think it's the same):

Error: 'NoneType' object has no attribute 'name'
Traceback (most recent call last):
  File "/Users/mateuspestana/Downloads/DeepFaceLab_MacOS/.dfl/DeepFaceLab/mainscripts/Trainer.py", line 46, in trainerThread
    model = models.import_model(model_class_name)(
  File "/Users/mateuspestana/Downloads/DeepFaceLab_MacOS/.dfl/DeepFaceLab/models/ModelBase.py", line 161, in __init__
    self.device_config = nn.DeviceConfig.GPUIndexes( force_gpu_idxs or nn.ask_choose_device_idxs(suggest_best_multi_gpu=True)) \
  File "/Users/mateuspestana/Downloads/DeepFaceLab_MacOS/.dfl/DeepFaceLab/core/leras/nn.py", line 215, in ask_choose_device_idxs
    best_device_indexes = [device.index for device in devices.get_equal_devices(devices.get_best_device()) ]
  File "/Users/mateuspestana/Downloads/DeepFaceLab_MacOS/.dfl/DeepFaceLab/core/leras/device.py", line 78, in get_equal_devices
    device_name = device.name
AttributeError: 'NoneType' object has no attribute 'name'

How did you manage to fix it?

mateuspestana avatar Jan 11 '22 22:01 mateuspestana

@luisdemarchi i hung on training on a Mac ... Metal Device ... yes working but there's a problem with libs

specialy with "from utils import Path_utils" and "from utils import std_utils"

have you there a solution?

Traceback (most recent call last): File "/Users/Smiril/Documents/deep/DeepFaceLab_MacOS/.dfl/DeepFaceLab/main.py", line 348, in arguments.func(arguments) File "/Users/Smiril/Documents/deep/DeepFaceLab_MacOS/.dfl/DeepFaceLab/main.py", line 136, in process_train from mainscripts import Trainer File "/Users/Smiril/Documents/deep/DeepFaceLab_MacOS/.dfl/DeepFaceLab/mainscripts/Trainer.py", line 13, in import models File "/Users/Smiril/Documents/deep/DeepFaceLab_MacOS/.dfl/DeepFaceLab/models/init.py", line 1, in from .ModelBase import ModelBase File "/Users/Smiril/Documents/deep/DeepFaceLab_MacOS/.dfl/DeepFaceLab/models/ModelBase.py", line 9, in from utils import Path_utils ImportError: cannot import name 'Path_utils' from 'utils' (/Users/Smiril/Documents/deep/DeepFaceLab_MacOS/.dfl/env/lib/python3.10/site-packages/utils/init.py)

Smiril avatar Sep 25 '22 12:09 Smiril

unfortunately I had to give up

luisdemarchi avatar Sep 28 '22 13:09 luisdemarchi

unfortunately I had to give up

I'll got success with that source >>> https://github.com/Smiril/DeepFaceLab_MacOS

Smiril avatar Apr 02 '23 12:04 Smiril