We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Got following warning when converting model
E:\Project\AiTheme\convert.py:42: RuntimeWarning: overflow encountered in cast v.numpy().astype("float16").tofile(output_bin_file)
The text was updated successfully, but these errors were encountered:
+1, same error on MacOS, using the runwayml/stable-diffusion-v1-5 ckpt file.
Sorry, something went wrong.
+1, same error on MacOS RuntimeWarning: overflow encountered in cast v.numpy().astype("float16").tofile(output_bin_file)
RuntimeWarning: overflow encountered in cast v.numpy().astype("float16").tofile(output_bin_file)
I faced the same error on Arch Linux, with Intel Core i9 10th gen CPU:
Tried this models.
To avoid this error, I changed float16 type to float32 type in convert.py script like this:
float16
float32
v.numpy().astype("float32").tofile(output_bin_file)
After patching type in the convert.py script, all 3 models converted without issues.
No branches or pull requests
Got following warning when converting model
E:\Project\AiTheme\convert.py:42: RuntimeWarning: overflow encountered in cast
v.numpy().astype("float16").tofile(output_bin_file)
The text was updated successfully, but these errors were encountered: