chychkan / DeepFaceLab_MacOS

Run DeepFaceLab on MacOS
GNU General Public License v3.0
251 stars 55 forks source link

Anyone have this working well on M1? #69

Open cantonalex opened 2 years ago

cantonalex commented 2 years ago

Having issues installing numpy and tensorflow packages on my M1. Interested to know if someone is successfully training.

invokermoon commented 2 years ago

same question

xyfl0203 commented 2 years ago

you can install tensorflow with this url https://developer.apple.com/metal/tensorflow-plugin/

xyfl0203 commented 2 years ago

Having issues installing numpy and tensorflow packages on my M1. Interested to know if someone is successfully training.

i use conda to install numpy conda install -n "your env`name" numpy

chychkan commented 2 years ago

With recent fixes, now there's partial support for M1 laptops. XSeg is still not working (there's separate open issue https://github.com/chychkan/DeepFaceLab_MacOS/issues/77), but the rest of the scripts should be usable now.

cantonalex commented 2 years ago

I'm still getting that numpy error any suggestions? `note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for numpy Failed to build numpy ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× pip subprocess to install backend dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.

`

chychkan commented 2 years ago

@cantonalex I would suggest starting from scratch, just to avoid any weird leftovers from previous attempts, so clone this repo afresh. If still the same error, then you can also try installing numpy manually by activating the virtual env (command: source .dfl/env/bin/activate) and installing numpy with pip install numpy==1.21.4. If that is successful, then you can try running the setup script again.

cantonalex commented 2 years ago

@chychkan got it working but can't seem to with metal. https://github.com/chychkan/DeepFaceLab_MacOS/issues/81#issuecomment-1059767585

chychkan commented 2 years ago

Yeah, there's a problem with metal. Looks like the code of DeepFaceLab itself needs to be adjusted to support GPU on M1's.

marshalleq commented 1 year ago

So that means no GPU training?

prashantspandey commented 1 year ago

Any updates, did anyone get it to run on GPU?

marshalleq commented 1 year ago

Can't get it to run at all on Ventura.