space-nuko / a1111-stable-diffusion-webui-vram-estimator

Show estimated VRAM usage for generation configs
MIT License
108 stars 11 forks source link

Fix premature loading of sd_model upon WebUI launch #9

Closed nyqui closed 1 year ago

nyqui commented 1 year ago

On current commit of A1111's WebUI (and for the last three weeks,) the extension causes sd_models to be called up before the vae_list is filled, causing the VAE to not load upon WebUI launch.

Detailed here. (link)

While I pondered on editing the code on the AUTOMATIC1111's repo to work around the issue (i.e. fill the vae_list before extension loads), not many extensions load the model upon launch. [citation needed]

I thought the fix in this case could be to simply move the DEFAULT_ARGS to the run_benchmark function instead, since the arguments are expected to be seldom called upon during normal usage of the extension.