diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-28 12:24:29 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-28 12:24:41 +0000 |
commit | d04e3e921e8ee71442a1f4a1d6e91c05b8238007 (patch) | |
tree | acea43be913e3e848d20929ee9704501272351ad /modules/sd_hijack.py | |
parent | 4aa7f5b5b996c1e3d97640e746f040a23a124860 (diff) | |
download | stable-diffusion-webui-gfx803-d04e3e921e8ee71442a1f4a1d6e91c05b8238007.tar.gz stable-diffusion-webui-gfx803-d04e3e921e8ee71442a1f4a1d6e91c05b8238007.tar.bz2 stable-diffusion-webui-gfx803-d04e3e921e8ee71442a1f4a1d6e91c05b8238007.zip |
automatically detect v-parameterization for SD2 checkpoints
Diffstat (limited to 'modules/sd_hijack.py')
-rw-r--r-- | modules/sd_hijack.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/sd_hijack.py b/modules/sd_hijack.py index f9652d21..03897b2a 100644 --- a/modules/sd_hijack.py +++ b/modules/sd_hijack.py @@ -131,6 +131,8 @@ class StableDiffusionModelHijack: m.cond_stage_model.wrapped.model.token_embedding = m.cond_stage_model.wrapped.model.token_embedding.wrapped
m.cond_stage_model = m.cond_stage_model.wrapped
+ undo_optimizations()
+
self.apply_circular(False)
self.layers = None
self.clip = None
|