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

The "safetensors" files are NOT safetensors files! They are potentially dangerous pytorch saves, just with the ".safetensors" extension! #28

Open
ClownsharkBatwing opened this issue Jul 27, 2024 · 0 comments

Comments

@ClownsharkBatwing
Copy link

The "safetensors" files provided for UltraPixel (ultrapixel_t2i.safetensors, lora_cat.safetensors) are not actually safetensors files at all. They are pytorch saves - potentially dangerous binaries - that misleadingly are named with the ".safetensors" extension. I converted both of them to legitimate safetensors files, and submitted a PR to the HF repo:

https://huggingface.co/ClownsharkBatwing/ultrapixel_convert/blob/main/ultrapixel_t2i.safetensors
https://huggingface.co/ClownsharkBatwing/lora_cat_convert/blob/main/lora_cat.safetensors
https://huggingface.co/roubaofeipi/UltraPixel/discussions/1

I submitted a PR for this GitHub repo that implements the ability to load these safetensor versions, in place of the pytorch saves. The changes made were minimal, and limited only to ultrapixel.py so if you wish to use real safetensors files while we wait for review, that's the only file you'll have to replace.
#27

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

1 participant