DeepFaceLab_MacOS icon indicating copy to clipboard operation
DeepFaceLab_MacOS copied to clipboard

Anyone have this working well on M1?

Open cantonalex opened this issue 3 years ago • 11 comments
trafficstars

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

cantonalex avatar Jan 15 '22 03:01 cantonalex

same question

invokermoon avatar Jan 22 '22 09:01 invokermoon

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

xyfl0203 avatar Feb 04 '22 04:02 xyfl0203

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

xyfl0203 avatar Feb 04 '22 04:02 xyfl0203

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.

chychkan avatar Feb 23 '22 13:02 chychkan

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.

`

cantonalex avatar Feb 25 '22 06:02 cantonalex

@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.

chychkan avatar Mar 04 '22 19:03 chychkan

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

cantonalex avatar Mar 06 '22 01:03 cantonalex

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

chychkan avatar Mar 06 '22 03:03 chychkan

So that means no GPU training?

marshalleq avatar Feb 10 '23 04:02 marshalleq

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

prashantspandey avatar Mar 16 '23 20:03 prashantspandey

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

marshalleq avatar Mar 17 '23 19:03 marshalleq