Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
549b0fc5
Commit
549b0fc5
authored
Aug 20, 2023
by
Uminosachi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change where VAE state are stored in model
parent
af5d2e8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
modules/sd_models.py
modules/sd_models.py
+0
-2
modules/sd_vae.py
modules/sd_vae.py
+3
-1
No files found.
modules/sd_models.py
View file @
549b0fc5
...
...
@@ -498,8 +498,6 @@ class SdModelData:
pass
if
v
is
not
None
:
v
.
base_vae
=
sd_vae
.
base_vae
v
.
loaded_vae_file
=
sd_vae
.
loaded_vae_file
self
.
loaded_sd_models
.
insert
(
0
,
v
)
...
...
modules/sd_vae.py
View file @
549b0fc5
...
...
@@ -192,7 +192,7 @@ def load_vae_dict(filename, map_location):
def
load_vae
(
model
,
vae_file
=
None
,
vae_source
=
"from unknown source"
):
global
vae_dict
,
loaded_vae_file
global
vae_dict
,
base_vae
,
loaded_vae_file
# save_settings = False
cache_enabled
=
shared
.
opts
.
sd_vae_checkpoint_cache
>
0
...
...
@@ -230,6 +230,8 @@ def load_vae(model, vae_file=None, vae_source="from unknown source"):
restore_base_vae
(
model
)
loaded_vae_file
=
vae_file
model
.
base_vae
=
base_vae
model
.
loaded_vae_file
=
loaded_vae_file
# don't call this from outside
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment