Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M1 Pro: 'NoneType' has no attribute 'name' #67

Open
mateuspestana opened this issue Jan 11, 2022 · 6 comments
Open

M1 Pro: 'NoneType' has no attribute 'name' #67

mateuspestana opened this issue Jan 11, 2022 · 6 comments

Comments

@mateuspestana
Copy link

Hi,

I'm trying to train my model on my MacBook Pro M1 Pro, and I'm getting this error either I use SAEHD or Quick96. Am I doing something wrong?

Metal device set to: Apple M1 Pro

systemMemory: 16.00 GB
maxCacheSize: 5.33 GB

Running trainer.

[new] No saved models found. Enter a name of a new model : bolsobean
bolsobean

Model first run.
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'
@cantonalex
Copy link
Contributor

Did you work this out? I'm having trouble installing tensorflow on my M1.

@chychkan
Copy link
Owner

I expect to get an M1 within next couple weeks and will look into it then.

@mateuspestana
Copy link
Author

To install tensorflow, change on the requirements from tensorflow to tensorflow-macos and tensorflow-metal and it works, but still unable to train the model, because of GPU indexing.

@xyfl0203
Copy link

xyfl0203 commented Feb 4, 2022

To install tensorflow, change on the requirements from tensorflow to tensorflow-macos and tensorflow-metal and it works, but still unable to train the model, because of GPU indexing.

.dfl/DeepFaceLab/core/leras/device.py
line27 replace to all_devices = []

@xyfl0203
Copy link

xyfl0203 commented Feb 4, 2022

To install tensorflow, change on the requirements from tensorflow to tensorflow-macos and tensorflow-metal and it works, but still unable to train the model, because of GPU indexing.

i can train model now, but it looks like run with cpu

@github-actions
Copy link

github-actions bot commented Mar 6, 2022

The issue is tagged as "stale issue" due to no activity in 30 days. If there is no activity for 15 more days, the issue will be closed.

@github-actions github-actions bot added the stale issue No activity in 30 days label Mar 6, 2022
@chychkan chychkan removed the stale issue No activity in 30 days label Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants