TheLastBen / fast-stable-diffusion

fast-stable-diffusion + DreamBooth
MIT License
7.54k stars 1.31k forks source link

webui.py: error: unrecognized arguments: --no-download-sd-model #1621

Open codestuff001 opened 1 year ago

codestuff001 commented 1 year ago

Getting this error when running the latest notebook on the last cell:

webui.py: error: unrecognized arguments: --no-download-sd-model`

When I delete the --no-download-sd-model argument in the script, it gives me this error:

Traceback (most recent call last):
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 278, in <module>
    webui()
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 197, in webui
    initialize()
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 97, in initialize
    modules.sd_models.setup_model()
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 91, in setup_model
    list_models()
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 110, in list_models
    if shared.cmd_opts.no_download_sd_model or cmd_ckpt != shared.sd_model_file or os.path.exists(cmd_ckpt):
AttributeError: 'Namespace' object has no attribute 'no_download_sd_model'

I have the model.ckpt file already in my models folder and input the path for Path_to_MODEL: in the 3rd cell.

codestuff001 commented 1 year ago

Nevermind, I was able to resolve it by backing up my model files, deleting the sd folder, then re-running the notebook with a fresh install. It's working now ¯_(ツ)_/¯

TheLastBen commented 1 year ago

it should work without deleting the sd folder, the repo updates automatically, unless you disabled that

codestuff001 commented 1 year ago

I don't think I disabled it. I don't know what it was, I ended up testing the notebook on another account and it worked, that's when I figured it had to be something in my google drive that was messing it up, so I just deleted it. I backed-up all my model files, etc, so all I had to do was move them back into the correct folders after running the setup.

Whatever it was, it's working now. Appreciate your reply and all the work you do to maintain the project :)

TheLastBen commented 1 year ago

you can also run the notebook by skipping the first cell, it will use the colab temporary storage in case you don't want to use gdrive.