Linaqruf / sd-notebook-collection

209 stars 42 forks source link

KeyError: 'quicksettings' #29

Open sleel opened 1 year ago

sleel commented 1 year ago

repo_type:AUTOMATIC1111

KeyError Traceback (most recent call last) in <cell line: 115>() 113 config["show_progress_every_n_steps"] = 10 114 config["show_progressbar"] = True --> 115 if config["quicksettings"]: 116 config["quicksettings"] = "sd_model_checkpoint, sd_vae, CLIP_stop_at_last_layers, use_old_karras_scheduler_sigmas, always_discard_next_to_last_sigma" 117 else:

KeyError: 'quicksettings'

repo_type:Anapnoe no such problem

Ryuzhal commented 1 year ago

same here

Linaqruf commented 1 year ago

It should have been fixed with this commit: https://github.com/Linaqruf/sd-notebook-collection/commit/8a13dcea3da3a2fc00520d26a708ec43d3b7dac5. Please try it and let me know if there is something wrong.

Thank you.

ReEnMikki commented 1 year ago

It should have been fixed with this commit: 8a13dce. Please try it and let me know if there is something wrong.

Thank you.

It still doesn't fix the error

Linaqruf commented 1 year ago

It should have been fixed with this commit: 8a13dce. Please try it and let me know if there is something wrong. Thank you.

It still doesn't fix the error

Can you confirm it still hasnt fixed? because there is no error in my side, thank you

Linaqruf commented 1 year ago

image

ReEnMikki commented 1 year ago

It should have been fixed with this commit: 8a13dce. Please try it and let me know if there is something wrong. Thank you.

It still doesn't fix the error

Can you confirm it still hasnt fixed? because there is no error in my side, thank you

Yeah, error is still happening for me image image

Linaqruf commented 1 year ago

Are you sure you're not using old notebook commit?

The new condition for quicksettings is :

if "quicksettings" in config:
    config["quicksettings"] = "sd_model_checkpoint, sd_vae, CLIP_stop_at_last_layers, use_old_karras_scheduler_sigmas, always_discard_next_to_last_sigma"
elif "quicksettings_list" in config:
    config["quicksettings_list"] = ["sd_model_checkpoint", "sd_vae", "CLIP_stop_at_last_layers", "use_old_karras_scheduler_sigmas", "always_discard_next_to_last_sigma"]
write_config(config_file, config)

While that line in your console logs was from https://github.com/Linaqruf/sd-notebook-collection/commit/a991e9b3e0764c5c933a8328424951d1bf043011

if config["quicksettings"]:
    config["quicksettings"] = "sd_model_checkpoint, sd_vae, CLIP_stop_at_last_layers, use_old_karras_scheduler_sigmas, always_discard_next_to_last_sigma"
else:
    config["quicksettings_list"] = [
    "sd_model_checkpoint", 
    "sd_vae", 
    "CLIP_stop_at_last_layers", 
    "use_old_karras_scheduler_sigmas", 
    "always_discard_next_to_last_sigma"
    ]

If you're using colab pro please reload the notebook so you can get the latest commit.

ReEnMikki commented 1 year ago

Are you sure you're not using old notebook commit?

The new condition for quicksettings is :

if "quicksettings" in config:
    config["quicksettings"] = "sd_model_checkpoint, sd_vae, CLIP_stop_at_last_layers, use_old_karras_scheduler_sigmas, always_discard_next_to_last_sigma"
elif "quicksettings_list" in config:
    config["quicksettings_list"] = ["sd_model_checkpoint", "sd_vae", "CLIP_stop_at_last_layers", "use_old_karras_scheduler_sigmas", "always_discard_next_to_last_sigma"]
write_config(config_file, config)

While that line in your console logs was from a991e9b

if config["quicksettings"]:
    config["quicksettings"] = "sd_model_checkpoint, sd_vae, CLIP_stop_at_last_layers, use_old_karras_scheduler_sigmas, always_discard_next_to_last_sigma"
else:
    config["quicksettings_list"] = [
    "sd_model_checkpoint", 
    "sd_vae", 
    "CLIP_stop_at_last_layers", 
    "use_old_karras_scheduler_sigmas", 
    "always_discard_next_to_last_sigma"
    ]

If you're using colab pro please reload the notebook so you can get the latest commit.

Well, it's your official notebook link, and not an old copied one image

ReEnMikki commented 1 year ago

Nevermind, I opened a new tab of this notebook and I see things change like the warning no longer being there. The problem was that while this notebook is still the official one, I kept the tab opening (ever since the problem was still in effect and the old commit still didn't work) and only tried running it again on that same tab of outdated notebook, instead of reloading it to refresh the page for the changes to take effect 🥲

Linaqruf commented 1 year ago

Yeah, sorry. I pushed so many commits today, and probably it got fixed while you were still viewing the last updated commit. Also, sometimes there can be a delay in reflecting the changes after the commit has already been pushed to GitHub

sleel commented 1 year ago

Yeah, sorry. I pushed so many commits today, and probably it got fixed while you were still viewing the last updated commit. Also, sometimes there can be a delay in reflecting the changes after the commit has already been pushed to GitHub

it works Thank you so much!