Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Commit 15a19c8

Browse files
Fix Baked VAE XY Plot Issues
Forced Checkpoints to always overwrite cache in order to always have a Baked VAE available to grab.
1 parent 0c95fba commit 15a19c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tsc_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def globals_cleanup(prompt):
172172
loaded_objects[key].remove(tup)
173173
###print(f'Deleted tuple at index {i} in {key} in loaded_objects because its id array became empty.')
174174

175-
def load_checkpoint(ckpt_name, id, output_vae=True, cache=None, cache_overwrite=False, ckpt_type="ckpt"):
175+
def load_checkpoint(ckpt_name, id, output_vae=True, cache=None, cache_overwrite=True, ckpt_type="ckpt"):
176176
global loaded_objects
177177

178178
# Create copies of the arguments right at the start
@@ -321,7 +321,7 @@ def recursive_load_lora(lora_params, ckpt, clip, id, ckpt_cache, cache_overwrite
321321

322322
# Unpack lora parameters from the first element of the list for now
323323
lora_name, strength_model, strength_clip = lora_params[0]
324-
ckpt, clip, _ = load_checkpoint(ckpt_name, id, cache=ckpt_cache, cache_overwrite=cache_overwrite)
324+
ckpt, clip, _ = load_checkpoint(ckpt_name, id, cache=ckpt_cache)
325325

326326
lora_model, lora_clip = recursive_load_lora(lora_params, ckpt, clip, id, ckpt_cache, cache_overwrite, folder_paths)
327327

0 commit comments

Comments
 (0)