Here is the solution, until theyāll come up with some official one, it is very important to keep tabs consistent and the same!!!:
- Open launch.py with text editor
find this line and the next line:
xformers = '--xformers' in sys.argv
ngrok = '--ngrok' in sys.argv
add this after
skipUpdate = '--skip' in sys.argv
- find this line (skip to point 4 for full code)
git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
add this before it:
if not skipUpdate:
- find this:
if update_check:
version_check(commit)
add after:
else:
print("Skipping updates...")
you need to tab everything inside
- the whole section will look like this (copy and replace this part):
Full code after replacement, copy with spaces and tabs!
if not skipUpdate:
git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
git_clone(taming_transformers_repo, repo_dir('taming-transformers'), "Taming Transformers", taming_transformers_commit_hash)
git_clone(k_diffusion_repo, repo_dir('k-diffusion'), "K-diffusion", k_diffusion_commit_hash)
git_clone(codeformer_repo, repo_dir('CodeFormer'), "CodeFormer", codeformer_commit_hash)
git_clone(blip_repo, repo_dir('BLIP'), "BLIP", blip_commit_hash)
if not is_installed("lpips"):
run_pip(f"install -r {os.path.join(repo_dir('CodeFormer'), 'requirements.txt')}", "requirements for CodeFormer")
run_pip(f"install -r {requirements_file}", "requirements for Web UI")
run_extensions_installers(settings_file=args.ui_settings_file)
if update_check:
version_check(commit)
else:
print("Skipping updates...")
- Open this file: modules/shared.py and find this line:
parser.add_argument("--xformers", action='store_true', help="enable xformers for cross attention layers")
add this line bellow
parser.add_argument("--skip", action='store_true', help="skip updates")
-
save everything
-
now open up a cmd window in the stable-diffusion folder and type
venv\Scripts\activate.bat
-
type this command next:
pip install transformers --upgrade
-
now lunch webui.bat with argument --skip to skip updates (downgrades) to transformers
It will download some new weights (~2GB), not sure what module is updating, probably dreambooth
Also --skip will make it start faster, skips downloading/checking for updates
Edit: Found the updated file
C:\Users\XXXX.cache\huggingface\hub\modelsāopenaiāclip-vit-large-patch14\snapshots\8d052a0f05efbaefbc9e8786ba291cfdf93e5bff\pytorch_model.bin
Looks like itās the CLIP model probably updated, not sure