DeepFaceLab_MacOS
DeepFaceLab_MacOS copied to clipboard
Error about h5py
I installed the 0_setup.sh file according to the steps, but encountered a build problem with h5py at the last step. Has anyone encountered this before, and how can it be resolved?(Chip is M2)
I also have this issue and I have managed to run the scripts by taking a few steps, but some step may be unnecessary in solving the problem, so I'll list them below FYR. My environment is Python 3.9.18 and M3 Max.
- Install
hdf5via brew
brew install hdf5
- Set the path of
hdf5to env
export HDF5_DIR=$(brew --prefix hdf5)
- Modify the specified version of
h5pyinrequirements_3.9_arm64.txtfromh5py==3.1.0toh5py==3.6.0 - Now you shall be able to run
0_setup.sh. However, when I run2_extract_images_from_video_data_src.sh, I encountered another problem about the version ofprotobuf, I solve it by downgrading theprotobuf. If you doesn't encounter it, just omit this step.
pip install --upgrade "protobuf<=3.20.1"
Hope this may help you.