Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Input X contains infinity or a value too large for dtype('float64'). #331

Open
jaycoolslm opened this issue Jun 18, 2024 · 1 comment

Comments

@jaycoolslm
Copy link

python -m python_coreml_stable_diffusion.torch2coreml --convert-unet --convert-text-encoder --convert-vae-decoder --convert-safety-checker --model-version CompVis/stable-diffusion-v1-4 --quantize-nbits 4 -o stable-diffusion-4bit

Running the above command triggers this error, specifically because it is being quantized.

This is a recurring issue ref #325 #303 #247 #246

I have tried downgrading transformers lib to 4.34.1 as suggested in other issues, however, diffusers currently has a dependency on it being higher

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. diffusers 0.29.0 requires huggingface-hub>=0.23.2, but you have huggingface-hub 0.17.3 which is incompatible.

Potential suggestion to resolve these issues from happening the future would be to have an up to date requirements.txt / https://github.com/apple/ml-stable-diffusion/blob/main/setup.py

@kacperd
Copy link

kacperd commented Aug 22, 2024

@jaycoolslm have you found a workaround for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants