-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
[Bug]: Creating new embedding.pt fails pickle check #15214
Comments
Just ran into this issue myself. It's genuinely bizarre. |
In my EmbeddingMerge extension I am using this function internally to create a template embedding file for SD1 models. Two users are telling me that they also have this "unsafe pickle" error in my extension: one of them decided to add Strange thing is that for many other people there are no errors whatsoever, including for myself! Despite the error says something about Since the same issue is happening with vanilla WebUI after creating a new embedding in The core problem might be deeper than just unsafe pickles, because it is not even happening for the majority of users. |
Yeah, it is the byteorder tag which makes it different from older embeddings. It has nothing to do with your extension, as I don't use it. |
I am running into the same thing. I have a very loose grasp of what is happening in training - I just follow a tutorial - and the tutorial I used on 1.7.x doesn't work on 1.8.x because of this exact same issue. My old embeddings still work fine, but I can't create any new ones. Really annoying. |
--disable-safe-unpickle just ignores the error messages, if you'd create an embedding for publishing it, everyone else would run into the error with this embedding Converting to safetenors doesn't work, the script goes straight to a callback error due to the corrupted file the byteorder seems to be different but also the .data folder seems odd compared to my working files |
I'm seeing the same problem using...
Another symptom I didn't see mentioned was that when trying to create an embedding, the UI doesn't give any hint of a problem but when you switch from Create embedding to the Train sub-tab, the new embedding isn't present in the list of available embeddings. |
So, the PyTorch Tutorial for loading and saving modesl mentions that the zip format changed in PyTorch 1.6+:
... and I can confirm that the workaround above by @LingXuanYin works. At least, I'm now able to create an embedding file without triggering this error and the new embedding DOES show on the list of Embeddings in the Train tab. I'm unclear whether #15774 is a fix (rather than just a workaround). Would a better solution to be able to load |
Checklist
What happened?
Whenever I create a new embedding, the pickle check fails to verify the new created file.
Old embeddings are read without any problem.
(This is my first new TI training since the 1.8.0 update)
Steps to reproduce the problem
What should have happened?
.pt file should pass the pickle check
What browsers do you use to access the UI ?
Google Chrome
Sysinfo
sysinfo-2024-03-11-06-37.json
Console logs
Additional information
No response
The text was updated successfully, but these errors were encountered: