AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
135.68k stars 25.9k forks source link

[Bug]: Cannot switch to custom checkpoint after last update (Google Colab) #12890

Open bytesbay opened 10 months ago

bytesbay commented 10 months ago

Is there an existing issue for this?

What happened?

Before the latest update the checkpoint that i created through Dreambooth worked okay, but today i cannot run it, because of error:

Stable diffusion model failed to load
changing setting sd_model_checkpoint to model/model_1200.safetensors [d2f514c92f]: AttributeError
...
AttributeError: 'Options' object has no attribute 'sd_checkpoints_limit'

Steps to reproduce the problem

Create a checkpoint through dreambooth using prev webui versions and run it with newest version in Google Colab T4 (with increased memory) env.

What should have happened?

I see this in the terminal

Stable diffusion model failed to load
changing setting sd_model_checkpoint to model/model_1200.safetensors [d2f514c92f]: AttributeError
Traceback (most recent call last):
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/shared.py", line 633, in set
    self.data_labels[key].onchange()
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/call_queue.py", line 14, in f
    res = func(*args, **kwargs)
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 238, in <lambda>
    shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: modules.sd_models.reload_model_weights()), call=False)
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 732, in reload_model_weights
    sd_model = reuse_model_from_already_loaded(sd_model, checkpoint_info, timer)
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 697, in reuse_model_from_already_loaded
    elif shared.opts.sd_checkpoints_limit > 1 and len(model_data.loaded_sd_models) < shared.opts.sd_checkpoints_limit:
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/shared.py", line 617, in __getattr__
    return super(Options, self).__getattribute__(item)
AttributeError: 'Options' object has no attribute 'sd_checkpoints_limit'

Sysinfo

sysinfo-2023-08-31-08-48.txt

What browsers do you use to access the UI ?

Google Chrome

Console logs

Already provided the output.

Additional information

No response

gogoldgoal commented 10 months ago

same issue here.

w-e-w commented 10 months ago

the last update is today's update of 1.6.0 but you are using 1.5.2 this means you have not updated and so the issue should not be related to the update

UriahKong commented 10 months ago

no more agree

bytesbay commented 10 months ago

So how to fix the problem? Is google colab somehow related to this issue?

bytesbay commented 10 months ago

The reason why i think this is related to the update is the fact that all worked well for a month , and now it stopped. I used only img2img all month, nothing else, so i dont think my actions broke the app.

Neverenough-1412 commented 10 months ago

I have the same issue

Tamashi0124 commented 10 months ago

I have the same issue

philipkopylov commented 9 months ago

Deleted entire sd folder, and made a clean install, fixed it for me.