quick fix for the removal of modelloader

pull/155/head
AIrjen 2024-01-03 21:37:39 +01:00
parent 356a1b537a
commit 2a09da8ff1
2 changed files with 8 additions and 2 deletions

View File

@ -511,4 +511,7 @@ Anna from Frozen;female
-charactertype- character;both
Lagertha from Vikings;female
Ragnar from Vikings;male
Rollo from Vikings;male
Rollo from Vikings;male
Goldilocks;female
Glinda;female
Robin Hood;male
1 character gender
511 -charactertype- character both
512 Lagertha from Vikings female
513 Ragnar from Vikings male
514 Rollo from Vikings male
515 Goldilocks female
516 Glinda female
517 Robin Hood male

View File

@ -86,7 +86,10 @@ def get_samplers_for_img2img():
return samplerlist
def upscalers_on_startup():
modelloader.cleanup_models()
try:
modelloader.cleanup_models()
except:
pass
modelloader.load_upscalers()
upscalerlistfromwWebUI = [x.name for x in shared.sd_upscalers]