mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-26 02:05:09 +01:00
Use const
This commit is contained in:
parent
8820814002
commit
3fbb3f6773
@ -44,7 +44,7 @@ def destroy():
|
||||
|
||||
def init_and_load_default_models():
|
||||
# init default model paths
|
||||
for model_type in ('stable-diffusion', 'vae', 'hypernetwork', 'gfpgan', 'realesrgan'):
|
||||
for model_type in model_manager.KNOWN_MODEL_TYPES:
|
||||
thread_data.model_paths[model_type] = model_manager.resolve_model_to_use(model_type=model_type)
|
||||
|
||||
# load mandatory models
|
||||
|
Loading…
Reference in New Issue
Block a user