Can't run successfully on M1 macbook air #105
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
user@WTYs-MBA ~ % /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/scripts/0_setup.sh
Cloning DeepFaceLab
Cloning into '.dfl/DeepFaceLab'...
fatal: unable to access 'https://hub.fastgit.org/iperov/DeepFaceLab.git/': error:02FFF036:system library:func(4095):Connection reset by peer
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting numpy==1.17.0
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/da/32/1b8f2bb5fb50e4db68543eb85ce37b9fa6660cd05b58bddfafafa7ed62da/numpy-1.17.0.zip (6.5 MB)
Preparing metadata (setup.py) ... done
Collecting opencv-python==4.3.0.38
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a1/d6/8422797e35f8814b1d9842530566a949d9b5850a466321a6c1d5a99055ee/opencv-python-4.3.0.38.tar.gz (88.0 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [585 lines of output]
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Ignoring numpy: markers 'python_version == "3.5"' don't match your environment
Ignoring numpy: markers 'python_version == "3.6"' don't match your environment
Ignoring numpy: markers 'python_version == "3.7"' don't match your environment
Collecting setuptools
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d9/5f/2daccd14278b6b780ae6799f85998377c06019354982391245f4b58a927d/setuptools-65.3.0-py3-none-any.whl (1.2 MB)
Collecting wheel
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Collecting scikit-build
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e3/36/34551e5035757ba17582eb530402a16612ec0446f67f3c7d509f6e9d8e63/scikit_build-0.15.0-py2.py3-none-any.whl (77 kB)
Collecting cmake
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a0/c6/10c60a31c072c5f6b2de7795ad86f894844804ac2fce355a898d29f5aee0/cmake-3.24.1-py2.py3-none-macosx_10_10_universal2.macosx_10_10_x86_64.macosx_11_0_arm64.macosx_11_0_universal2.whl (77.9 MB)
Collecting pip
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1f/2c/d9626f045e7b49a6225c6b09257861f24da78f4e5f23af2ddbdf852c99b8/pip-22.2.2-py3-none-any.whl (2.0 MB)
Collecting numpy==1.17.3
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b6/d6/be8f975f5322336f62371c9abeb936d592c98c047ad63035f1b38ae08efe/numpy-1.17.3.zip (6.4 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting distro
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e1/54/d08d1ad53788515392bec14d2d6e8c410bffdc127780a9a4aa8e6854d502/distro-1.7.0-py3-none-any.whl (20 kB)
Collecting packaging
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/05/8e/8de486cbd03baba4deef4142bd643a3e7bbe954a784dc1bb17142572d127/packaging-21.3-py3-none-any.whl (40 kB)
Collecting pyparsing!=3.0.5,>=2.0.2
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/6c/10/a7d0fa5baea8fe7b50f448ab742f26f52b80bfca85ac2be9d35cdd9a3246/pyparsing-3.0.9-py3-none-any.whl (98 kB)
Building wheels for collected packages: numpy
Building wheel for numpy (setup.py): started
Building wheel for numpy (setup.py): finished with status 'error'
error: subprocess-exited-with-error
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
hello , ;) did you try this ?
hope that solve your problem ...
I might installed it successfully, but when I tried to extract images, it shows this error
user@WTYs-MBA ~ % /Users/user/DeepFaceLab_MacOS/scripts/2_extract_images_from_video_data_src.sh
Traceback (most recent call last):
File "/Users/user/DeepFaceLab_MacOS/.dfl/DeepFaceLab/main.py", line 6, in
from core.leras import nn
File "/Users/user/DeepFaceLab_MacOS/.dfl/DeepFaceLab/core/leras/__init__.py", line 1, in
from .nn import nn
File "/Users/user/DeepFaceLab_MacOS/.dfl/DeepFaceLab/core/leras/nn.py", line 25, in
import numpy as np
ModuleNotFoundError: No module named 'numpy'
I tried t solve this through pip install one by one, however, it shows that it can't find tensorflow.
The python version is 3.10
try to pip this
yes I used that, and the comment above is the problem I met. pip couldn't find tensorflow.
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
tensorflow-macos
Thank you, now I installed successfully, but when I tried to run the train script, it shows this error
Traceback (most recent call last):
File "/Users/user/DeepFaceLab_MacOS/.dfl/DeepFaceLab/main.py", line 348, in
arguments.func(arguments)
File "/Users/user/DeepFaceLab_MacOS/.dfl/DeepFaceLab/main.py", line 136, in process_train
from mainscripts import Trainer
File "/Users/user/DeepFaceLab_MacOS/.dfl/DeepFaceLab/mainscripts/Trainer.py", line 13, in
import models
File "/Users/user/DeepFaceLab_MacOS/.dfl/DeepFaceLab/models/__init__.py", line 1, in
from .ModelBase import ModelBase
File "/Users/user/DeepFaceLab_MacOS/.dfl/DeepFaceLab/models/ModelBase.py", line 296
>>>>>>> 9354e6b6112e5ae0b6042c18aa62145d00177e65
^
SyntaxError: invalid decimal literal
line 296 is your problem in models/ModelBase.py