mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-20 09:57:49 +02:00
Use const
This commit is contained in:
parent
8820814002
commit
3fbb3f6773
@ -44,7 +44,7 @@ def destroy():
|
|||||||
|
|
||||||
def init_and_load_default_models():
|
def init_and_load_default_models():
|
||||||
# init default model paths
|
# 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)
|
thread_data.model_paths[model_type] = model_manager.resolve_model_to_use(model_type=model_type)
|
||||||
|
|
||||||
# load mandatory models
|
# load mandatory models
|
||||||
|
Loading…
x
Reference in New Issue
Block a user