mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-11 04:58:29 +02:00
current_vae_path needs to be global
This commit is contained in:
parent
3fdd8d91e2
commit
a39f845835
@ -183,7 +183,7 @@ default_vae_to_load = None
|
||||
weak_thread_data = weakref.WeakKeyDictionary()
|
||||
|
||||
def preload_model(ckpt_file_path=None, vae_file_path=None):
|
||||
global current_state, current_state_error, current_model_path
|
||||
global current_state, current_state_error, current_model_path, current_vae_path
|
||||
if ckpt_file_path == None:
|
||||
ckpt_file_path = default_model_to_load
|
||||
if vae_file_path == None:
|
||||
|
Loading…
Reference in New Issue
Block a user