Comments (13)
I found PR #5523 that uses PySide6 instead of PyQt. I switched to this and now I'm able to train and use the XSeg editor on my M1 Mac mini!
Steps I followed
- Follow all instructions in this repo's README, but stop before you run
./scripts/0_setup.sh
- Edit
./scripts/0_setup.sh
- Change
https://github.com/chychkan/DeepFaceLab.git
tohttps://github.com/jkennedyvz/DeepFaceLab.git
(the source repo of the PR mentioned above) - Change
python3
topython3.9
(you may not need to do this, but for some reason I had to do this or else virtualenv would use Python 3.10)
- Change
- Edit
requirements_3.9_arm64.txt
- Add
tensorflow-metal
- Add
PySide6
- Add
- Run
./scripts/0_setup.sh
Temporary bug and workaround
At this point, you may run into different problems. It appears there is a bug in the latest update to protobuf
. To get around this, force a downgrade in your Python environment:
- Run
source .dfl/env/bin/activate
- Run
pip install 'protobuf~=3.19.0'
- Run
deactivate
Notes
I'm completely new to the XSeg editor, so I don't know if it is working 100%. But it does launch, loads my frames, and seems to let me save changes.
from deepfacelab_macos.
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.
from deepfacelab_macos.
@andrewortwein Thank you very much, it works for me now!
from deepfacelab_macos.
Is there GPU support?
from deepfacelab_macos.
Bumping this because this isn't working for me too.
@chychkan were you able to find a workaround? I've tried installing python -m pip install PyQt5
, but that doesn't seem to work.
from deepfacelab_macos.
@rolandinthedeep yeah, PyQt5 is not compatible with M1 and DeepFaceLab itself is not compatible with PyQt6. One possible path forward could be to upgrade DeepFaceLab to PyQt6, but I didn't have time to look into that.
from deepfacelab_macos.
I found PR #5523 that uses PySide6 instead of PyQt. I switched to this and now I'm able to train and use the XSeg editor on my M1 Mac mini!
Steps I followed
Follow all instructions in this repo's README, but stop before you run
./scripts/0_setup.sh
Edit
./scripts/0_setup.sh
- Change
https://github.com/chychkan/DeepFaceLab.git
tohttps://github.com/jkennedyvz/DeepFaceLab.git
(the source repo of the PR mentioned above)- Change
python3
topython3.9
(you may not need to do this, but for some reason I had to do this or else virtualenv would use Python 3.10)Edit
requirements_3.9_arm64.txt
- Add
tensorflow-metal
- Add
PySide6
Run
./scripts/0_setup.sh
Temporary bug and workaround
At this point, you may run into different problems. It appears there is a bug in the latest update to
protobuf
. To get around this, force a downgrade in your Python environment:
- Run
source .dfl/env/bin/activate
- Run
pip install 'protobuf~=3.19.0'
- Run
deactivate
Notes
I'm completely new to the XSeg editor, so I don't know if it is working 100%. But it does launch, loads my frames, and seems to let me save changes.
Run on Apple air M1 successfully, Thanks for your effort to fix it.
from deepfacelab_macos.
Hi,
When I tried with the PR I get this error :
(env) jbarbaud@MacBook-Air-de-Jeremy DeepFaceLab_MacOS % bash scripts/2_extract_images_from_video_data_src.sh
RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe
RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe
ImportError: numpy.core._multiarray_umath failed to import
ImportError: numpy.core.umath failed to import
Process Process-1:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/[email protected]/3.9.13_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/opt/homebrew/Cellar/[email protected]/3.9.13_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/Users/jbarbaud/DeepFaceLab_MacOS/.dfl/DeepFaceLab/core/leras/device.py", line 102, in _get_tf_devices_proc
import tensorflow
File "/Users/jbarbaud/DeepFaceLab_MacOS/.dfl/env/lib/python3.9/site-packages/tensorflow/init.py", line 37, in
from tensorflow.python.tools import module_util as _module_util
File "/Users/jbarbaud/DeepFaceLab_MacOS/.dfl/env/lib/python3.9/site-packages/tensorflow/python/init.py", line 42, in
from tensorflow.python import data
File "/Users/jbarbaud/DeepFaceLab_MacOS/.dfl/env/lib/python3.9/site-packages/tensorflow/python/data/init.py", line 21, in
from tensorflow.python.data import experimental
File "/Users/jbarbaud/DeepFaceLab_MacOS/.dfl/env/lib/python3.9/site-packages/tensorflow/python/data/experimental/init.py", line 95, in
from tensorflow.python.data.experimental import service
File "/Users/jbarbaud/DeepFaceLab_MacOS/.dfl/env/lib/python3.9/site-packages/tensorflow/python/data/experimental/service/init.py", line 387, in
from tensorflow.python.data.experimental.ops.data_service_ops import distribute
File "/Users/jbarbaud/DeepFaceLab_MacOS/.dfl/env/lib/python3.9/site-packages/tensorflow/python/data/experimental/ops/data_service_ops.py", line 22, in
from tensorflow.python.data.experimental.ops import compression_ops
File "/Users/jbarbaud/DeepFaceLab_MacOS/.dfl/env/lib/python3.9/site-packages/tensorflow/python/data/experimental/ops/compression_ops.py", line 16, in
from tensorflow.python.data.util import structure
File "/Users/jbarbaud/DeepFaceLab_MacOS/.dfl/env/lib/python3.9/site-packages/tensorflow/python/data/util/structure.py", line 22, in
from tensorflow.python.data.util import nest
File "/Users/jbarbaud/DeepFaceLab_MacOS/.dfl/env/lib/python3.9/site-packages/tensorflow/python/data/util/nest.py", line 36, in
from tensorflow.python.framework import sparse_tensor as _sparse_tensor
File "/Users/jbarbaud/DeepFaceLab_MacOS/.dfl/env/lib/python3.9/site-packages/tensorflow/python/framework/sparse_tensor.py", line 24, in
from tensorflow.python.framework import constant_op
File "/Users/jbarbaud/DeepFaceLab_MacOS/.dfl/env/lib/python3.9/site-packages/tensorflow/python/framework/constant_op.py", line 25, in
from tensorflow.python.eager import execute
File "/Users/jbarbaud/DeepFaceLab_MacOS/.dfl/env/lib/python3.9/site-packages/tensorflow/python/eager/execute.py", line 23, in
from tensorflow.python.framework import dtypes
File "/Users/jbarbaud/DeepFaceLab_MacOS/.dfl/env/lib/python3.9/site-packages/tensorflow/python/framework/dtypes.py", line 29, in
_np_bfloat16 = _pywrap_bfloat16.TF_bfloat16_type()
TypeError: Unable to convert function return value to a Python type! The signature was
() -> handle
Did you get that ?
Thank you
from deepfacelab_macos.
I found PR #5523 that uses PySide6 instead of PyQt. I switched to this and now I'm able to train and use the XSeg editor on my M1 Mac mini!
Steps I followed
Follow all instructions in this repo's README, but stop before you run
./scripts/0_setup.sh
Edit
./scripts/0_setup.sh
- Change
https://github.com/chychkan/DeepFaceLab.git
tohttps://github.com/jkennedyvz/DeepFaceLab.git
(the source repo of the PR mentioned above)- Change
python3
topython3.9
(you may not need to do this, but for some reason I had to do this or else virtualenv would use Python 3.10)Edit
requirements_3.9_arm64.txt
- Add
tensorflow-metal
- Add
PySide6
Run
./scripts/0_setup.sh
Temporary bug and workaround
At this point, you may run into different problems. It appears there is a bug in the latest update to
protobuf
. To get around this, force a downgrade in your Python environment:
- Run
source .dfl/env/bin/activate
- Run
pip install 'protobuf~=3.19.0'
- Run
deactivate
Notes
I'm completely new to the XSeg editor, so I don't know if it is working 100%. But it does launch, loads my frames, and seems to let me save changes.
Run on Apple air M1 successfully, Thanks for your effort to fix it.
Hi does it still work? I also got m1 mbp
from deepfacelab_macos.
Hey @andrewortwein can you tell me which python version you use and all the versions of requirements_3.9_arm64.txt in your working solution? Because for me it works but when I train a model in the training preview, 3 from all 5 columns are grey and never update on each frame for some reason
from deepfacelab_macos.
Hey @andrewortwein can you tell me which python version you use and all the versions of requirements_3.9_arm64.txt in your working solution? Because for me it works but when I train a model in the training preview, 3 from all 5 columns are grey and never update on each frame for some reason
It's been many months since I've tried that, but I do still have the env around and here are the settings it's in:
python version: 3.9
#requirements_3.9_arm64.txt
numpy==1.21.4
opencv-python==4.5.5.62
numexpr==2.8.1
h5py==3.1.0
tqdm==4.62.3
colorama==0.4.4
cython==0.29.26
ffmpeg-python==0.2.0
Pillow==8.4.0
scikit-image==0.19.1
scipy==1.8.0
tensorflow-macos==2.7.0
PyQt6==6.2.3
tensorflow-metal
from deepfacelab_macos.
Hey @andrewortwein can you tell me which python version you use and all the versions of requirements_3.9_arm64.txt in your working solution? Because for me it works but when I train a model in the training preview, 3 from all 5 columns are grey and never update on each frame for some reason
My training previews of columns 3 , 5 and 6 are empty. And my loss is also not going down. As if model is not learning , just calculating bunch of stuff.
Did you get any solution?
from deepfacelab_macos.
Hey @andrewortwein can you tell me which python version you use and all the versions of requirements_3.9_arm64.txt in your working solution? Because for me it works but when I train a model in the training preview, 3 from all 5 columns are grey and never update on each frame for some reason
My training previews of columns 3 , 5 and 6 are empty. And my loss is also not going down. As if model is not learning , just calculating bunch of stuff.
Did you get any solution?
Did you try to run it with SAEHD? The issue for me was I was using quick96 instead of SAEHD
from deepfacelab_macos.
Related Issues (20)
- /!\ ffmpeg fail, job commandline: M1 MacOS HOT 1
- Script Not working m1 HOT 2
- Can't run successfully on M1 macbook air HOT 8
- Setup file isn't running correctly? HOT 4
- SAEHD Train - Too many open files
- Installation on M1 is a mess - updated steps required HOT 1
- Can't train on GPU . Model Quick96 error HOT 1
- 6_Quick96.sh is able to run but loss is not going down nor the columns 3,5 and 6 are visible in preview window.
- Model SHAHD trains on CPU , but fails on apple silicon
- training preview window not showing HOT 1
- Could Apple's new MLX benefit this?
- DeepFaceLive HOT 1
- Error about h5py HOT 1
- M1 Pro: 'NoneType' has no attribute 'name' HOT 6
- Anyone have this working well on M1? HOT 11
- Can't parse 'center'. Sequence item with index 0 has a wrong type HOT 3
- M1 Mac mini not using metal device "Apple M1" HOT 5
- error in traning model with metal HOT 8
- ModuleNotFoundError: No module named 'numpy' HOT 25
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepfacelab_macos.