Add support for Apple M1 laptops #71
Reference in New Issue
Block a user
Delete Branch "add-arm64-support"
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?
Hey @cantonalex! I considered this branch as still work-in-progress. XSeg editor is not compatible with PyQt6, so we need to figure out how to make it work. Potentially, we can fork DeepFaceLab and upgrade it to PyQt6.
Anyway, maybe we can merge it now. Did you try to run it on your local?
Yeah when I installed it above is the error I get.
@cantonalex Today I pushed several commits to the branch. Could you try again now?
@chychkan
` Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [1295 lines of output]
Ignoring numpy: markers 'python_version == "3.7" and platform_machine == "aarch64"' don't match your environment
Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "aarch64"' don't match your environment
Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "arm64" and platform_system == "Darwin"' don't match your environment
Ignoring numpy: markers 'python_version == "3.7" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_machine != "aarch64" and platform_python_implementation != "PyPy"' don't match your environment
Ignoring numpy: markers 'python_version == "3.8" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_machine != "aarch64" and platform_python_implementation != "PyPy"' don't match your environment
Ignoring numpy: markers 'python_version == "3.9" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_python_implementation != "PyPy"' don't match your environment
Ignoring numpy: markers 'python_version == "3.10" and platform_python_implementation != "PyPy"' don't match your environment
Ignoring numpy: markers 'python_version == "3.7" and platform_python_implementation == "PyPy"' don't match your environment
Ignoring numpy: markers 'python_version >= "3.11"' don't match your environment
Ignoring numpy: markers 'python_version >= "3.8" and platform_python_implementation == "PyPy"' don't match your environment
Collecting wheel
Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Collecting setuptools
Using cached setuptools-60.7.1-py3-none-any.whl (1.0 MB)
Collecting packaging
Using cached packaging-21.3-py3-none-any.whl (40 kB)
Collecting Cython<3.0,>=0.29.24
Using cached Cython-0.29.27-py2.py3-none-any.whl (983 kB)
Collecting pythran
Downloading pythran-0.11.0-py3-none-any.whl (4.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.2/4.2 MB 1.2 MB/s eta 0:00:00
Collecting numpy==1.20.0
Downloading numpy-1.20.0.zip (8.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.0/8.0 MB 3.1 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting pyparsing!=3.0.5,>=2.0.2
Using cached pyparsing-3.0.7-py3-none-any.whl (98 kB)
Collecting beniget~=0.4.0
Using cached beniget-0.4.1-py3-none-any.whl (9.4 kB)
Collecting gast~=0.5.0
Using cached gast-0.5.3-py3-none-any.whl (19 kB)
Collecting ply>=3.4
Using cached ply-3.11-py2.py3-none-any.whl (49 kB)
Building wheels for collected packages: numpy
Building wheel for numpy (pyproject.toml): started
Building wheel for numpy (pyproject.toml): 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.
`
Just tried this branch as well on a new M1 and am getting the same error as above.
Should we add a note for this in the readme - similar to what we do for ffmpeg?
Yes, good point! Will update it once we make it work.
The following pip package bumps resolved the install issues for me:
@chanonroy are you on py 3.9.10?
Yup. I can get everything to work, except for
xsegsince the underlying DeepFaceLab script still leans onPyQt5(that appears to not be supported on m1)@chanonroy thanks for the suggestion! I'm going to update this PR with the versions that you provided and merge it. And we'll open a separate issue to address the XSeg.
Opened a separate issue for XSeg editor: https://github.com/chychkan/DeepFaceLab_MacOS/issues/77