stable-diffusion-webui
stable-diffusion-webui copied to clipboard
Fix embedding model load error
repair a compatibility error , this error cause some embedding model could save but can`t be load correctly
Description
-
summary:fix a error witch could cause some embedding model can`t load (Especially use version after 1.8 to save&load)
-
code change:in
modules/textual_inversion/textual_inversion.py
settorch.save(model, device)
param_use_new_zipfile_serialization=False
, afterpytorch=1.6
, this param isTrue
as defult
Screenshots/videos:
see commits and issues
Checklist:
- [x] I have read contributing wiki page
- [x] I have performed a self-review of my own code
- [x] My code follows the style guidelines
- [x] My code passes tests