AIrjen / OneButtonPrompt

One Button Prompt
GNU General Public License v3.0
875 stars 87 forks source link

Dev build of A1111 breaks OneButtonPrompt #154

Closed Diamond-Shark-art closed 11 months ago

Diamond-Shark-art commented 11 months ago

Hi, first of all, happy new year! And thanks for this amazing plugin!

Just as a heads up, the latest dev build of A1111 breaks it. Looks like things added these past days wil ship in 1.7.0

This is the code from the error:

*** Error loading script: api.py Traceback (most recent call last): File "C:\Users\Gebruiker\stable-diffusion-webui\modules\scripts.py", line 515, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\Gebruiker\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\Gebruiker\stable-diffusion-webui\extensions\OneButtonPrompt\scripts\api.py", line 4, in from scripts.onebuttonprompt import subjects, artists, imagetypes File "C:\Users\Gebruiker\stable-diffusion-webui\extensions\OneButtonPrompt\scripts\onebuttonprompt.py", line 43, in upscalerlist = get_upscalers() File "C:\Users\Gebruiker\stable-diffusion-webui\extensions\OneButtonPrompt\model_lists.py", line 18, in get_upscalers upscalerlistfromwWebUI = upscalers_on_startup() File "C:\Users\Gebruiker\stable-diffusion-webui\extensions\OneButtonPrompt\model_lists.py", line 89, in upscalers_on_startup modelloader.cleanup_models() AttributeError: module 'modules.modelloader' has no attribute 'cleanup_models'


*** Error loading script: onebuttonprompt.py Traceback (most recent call last): File "C:\Users\Gebruiker\stable-diffusion-webui\modules\scripts.py", line 515, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\Gebruiker\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\Gebruiker\stable-diffusion-webui\extensions\OneButtonPrompt\scripts\onebuttonprompt.py", line 43, in upscalerlist = get_upscalers() File "C:\Users\Gebruiker\stable-diffusion-webui\extensions\OneButtonPrompt\model_lists.py", line 18, in get_upscalers upscalerlistfromwWebUI = upscalers_on_startup() File "C:\Users\Gebruiker\stable-diffusion-webui\extensions\OneButtonPrompt\model_lists.py", line 89, in upscalers_on_startup modelloader.cleanup_models() AttributeError: module 'modules.modelloader' has no attribute 'cleanup_models'

Hope this helps. Thanks.

AIrjen commented 11 months ago

Ohhh thank you for reporting! I’ll have a look this weekend to try and solve this.

happy new year and happy prompting 😊

AIrjen commented 11 months ago

Got a little time and made a fix :) It should be fixed on the latest version now.

Thanks for the pro-active alert, it is very much appriciated!

Diamond-Shark-art commented 11 months ago

That was fast, thank you :)!