ml-stable-diffusion icon indicating copy to clipboard operation
ml-stable-diffusion copied to clipboard

Fresh install of coreml_stable_diffusion and getting 'numpy' has no attribute 'bool'

Open graphicagenda opened this issue 2 years ago • 3 comments

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

graphicagenda avatar Dec 22 '22 06:12 graphicagenda

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

dogaoz avatar Dec 22 '22 23:12 dogaoz

This was fixed via 37ff2a4. If you pull latest changes and run pip install -e . it should install the correct version of numpy.

godly-devotion avatar Dec 23 '22 16:12 godly-devotion

Thank you!

ju-popov avatar Dec 28 '22 03:12 ju-popov