ml-stable-diffusion
ml-stable-diffusion copied to clipboard
Fresh install of coreml_stable_diffusion and getting 'numpy' has no attribute 'bool'
I was trying to run:
python -m python_coreml_stable_diffusion.torch2coreml --convert-unet --convert-text-encoder --convert-vae-decoder --convert-safety-checker -o
And it wouldn't work as I got this error: File "/Users/..../opt/miniconda3/envs/coreml_stable_diffusion/lib/python3.8/site-packages/numpy/init.py", line 284, in getattr raise AttributeError("module {!r} has no attribute " AttributeError: module 'numpy' has no attribute 'bool'
I solved it with the help of https://github.com/ipython/ipyparallel/issues/349#issuecomment-812458750: problem solved with :
1 - pip uninstall -y numpy 2 - pip uninstall -y setuptools 3 - pip install setuptools or conda install setuptools 4 - pip install bumpy or conda install numpy Any one will work. Conda/pip
Same issue here but downgrading to numpy 1.23 fixes it. Apparently numpy 1.24 has some issues.
Use pip install "numpy<1.24"
in your conda environment
This was fixed via 37ff2a4. If you pull latest changes and run pip install -e .
it should install the correct version of numpy
.
Thank you!