Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
fix: final fix for quicksettings
Browse files Browse the repository at this point in the history
  • Loading branch information
Linaqruf committed May 16, 2023
1 parent 7d0c714 commit a991e9b
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions cagliostro-colab-ui.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -247,16 +247,6 @@
" else:\n",
" reinstall_webui()\n",
"\n",
" if commit_hash:\n",
" try:\n",
" os.chdir(repo_dir)\n",
" with capture.capture_output() as cap:\n",
" !git reset --hard {commit_hash}\n",
" del cap\n",
" print(\"\u001b[1;32mCommit hash: \", commit_hash)\n",
" except Exception as e:\n",
" print(\"\u001b[1;32mAn error occurred while resetting the commit hash:\", e)\n",
"\n",
" if update_webui:\n",
" try:\n",
" print(\"\u001b[1;32mUpdating Web UI to the latest version\")\n",
Expand All @@ -267,6 +257,16 @@
" del cap\n",
" except Exception as e:\n",
" print(\"\u001b[1;32mAn error occurred when updating Web UI:\", e)\n",
" \n",
" if commit_hash:\n",
" try:\n",
" os.chdir(repo_dir)\n",
" with capture.capture_output() as cap:\n",
" !git reset --hard {commit_hash}\n",
" del cap\n",
" print(\"\u001b[1;32mCommit hash: \", commit_hash)\n",
" except Exception as e:\n",
" print(\"\u001b[1;32mAn error occurred while resetting the commit hash:\", e)\n",
"\n",
" if dpm_v2_patch:\n",
" with capture.capture_output() as cap:\n",
Expand Down Expand Up @@ -1075,16 +1075,16 @@
"config[\"eta_noise_seed_delta\"] = 0\n",
"config[\"show_progress_every_n_steps\"] = 10\n",
"config[\"show_progressbar\"] = True\n",
"if config[\"quicksettings_list\"]:\n",
" config[\"quicksettings_list\"] = [\n",
" \"sd_model_checkpoint\", \n",
" \"sd_vae\", \n",
" \"CLIP_stop_at_last_layers\", \n",
" \"use_old_karras_scheduler_sigmas\", \n",
" \"always_discard_next_to_last_sigma\"\n",
" ]\n",
"else:\n",
"if config[\"quicksettings\"]:\n",
" config[\"quicksettings\"] = \"sd_model_checkpoint, sd_vae, CLIP_stop_at_last_layers, use_old_karras_scheduler_sigmas, always_discard_next_to_last_sigma\"\n",
"else:\n",
" config[\"quicksettings_list\"] = [\n",
" \"sd_model_checkpoint\", \n",
" \"sd_vae\", \n",
" \"CLIP_stop_at_last_layers\", \n",
" \"use_old_karras_scheduler_sigmas\", \n",
" \"always_discard_next_to_last_sigma\"\n",
" ]\n",
" \n",
"write_config(config_file, config)\n",
"\n",
Expand Down

0 comments on commit a991e9b

Please sign in to comment.