AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: Deleted pix2pix.yaml from configs for uninstallation now can't load pix2pix #8001

Closed celloh123 closed 1 year ago

celloh123 commented 1 year ago

Is there an existing issue for this?

What happened?

I uninstalled pix2pix a while ago and deleted instruct-pix2pix.yaml file from configs folder. Now I've re installed pix2pix by putting the model to the models folder but whenever i try to load it, i get this error Loading weights [ffd280ddcf] from E:\ai\stable-diffusion-webui\models\Stable-diffusion\instruct-pix2pix-00-22000.ckpt changing setting sd_model_checkpoint to instruct-pix2pix-00-22000.ckpt [ffd280ddcf]: FileNotFoundError Traceback (most recent call last): File "E:\ai\stable-diffusion-webui\modules\shared.py", line 549, in set self.data_labels[key].onchange() File "E:\ai\stable-diffusion-webui\modules\call_queue.py", line 15, in f res = func(*args, **kwargs) File "E:\ai\stable-diffusion-webui\webui.py", line 120, in shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: modules.sd_models.reload_model_weights())) File "E:\ai\stable-diffusion-webui\modules\sd_models.py", line 467, in reload_model_weights load_model(checkpoint_info, already_loaded_state_dict=state_dict, time_taken_to_load_state_dict=timer.records["load weights from disk"]) File "E:\ai\stable-diffusion-webui\modules\sd_models.py", line 384, in load_model sd_config = OmegaConf.load(checkpointconfig) File "E:\ai\stable-diffusion-webui\venv\lib\site-packages\omegaconf\omegaconf.py", line 187, in load with io.open(os.path.abspath(file), "r", encoding="utf-8") as f: FileNotFoundError: [Errno 2] No such file or directory: 'E:\ai\stable-diffusion-webui\configs\instruct-pix2pix.yaml'

Steps to reproduce the problem

  1. Install pix2pix and load it once
  2. Go to /configs/ and delete instruct-pix2pix.yaml
  3. try to load pix2pix model

What should have happened?

Not sure. Maybe try to create a new .yaml file?

Commit where the problem happens

commit: 48a15821

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Mozilla Firefox

Command Line Arguments

--xformers

List of extensions

booru2prompt sd_dreambooth_extension sd-dynamic-prompts sd-webui-controlnet stable-diffusion-webui-promptgen stable-diffusion-webui-text2prompt stable-diffusion-webui-wd14-tagger ultimate-upscale-for-automatic1111 a1111-sd-webui-tagcomplete

Console logs

venv "E:\ai\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)]
Commit hash: 48a15821de768fea76e66f26df83df3fddf18f4b
Installing requirements for Web UI
Installing sd-dynamic-prompts requirements.txt

Installing requirement for sd-webui-controlnet

#######################################################################################################
Initializing Dreambooth
If submitting an issue on github, please provide the below text for debugging purposes:

Python revision: 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)]
Dreambooth revision: 43ae9d55531004f1dedaea7ac2443e9b16739913
SD-WebUI revision: 48a15821de768fea76e66f26df83df3fddf18f4b

Checking Dreambooth requirements...
[+] bitsandbytes version 0.35.0 installed.
[+] diffusers version 0.10.2 installed.
[+] transformers version 4.25.1 installed.
[+] xformers version 0.0.16rc425 installed.
[+] torch version 1.13.1+cu117 installed.
[+] torchvision version 0.14.1+cu117 installed.

#######################################################################################################

Launching Web UI with arguments: --xformers
Loading booru2prompt settings
SD-Webui API layer loaded
[text2prompt] Following databases are available:
    all-mpnet-base-v2 : danbooru_strict
Loading weights [db6b14037a] from E:\ai\stable-diffusion-webui\models\Stable-diffusion\cornflowerStylizedAnime_v8.safetensors
Creating model from config: E:\ai\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(1): Cornflower
Model loaded in 17.2s (load weights from disk: 0.8s, create model: 0.5s, apply weights to model: 13.1s, apply half(): 0.4s, move model to device: 0.5s, load textual inversion embeddings: 1.8s).
[text2prompt] Loading database with name "all-mpnet-base-v2 : danbooru_strict"...
[text2prompt] Database loaded
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Loading weights [ffd280ddcf] from E:\ai\stable-diffusion-webui\models\Stable-diffusion\instruct-pix2pix-00-22000.ckpt
changing setting sd_model_checkpoint to instruct-pix2pix-00-22000.ckpt [ffd280ddcf]: FileNotFoundError
Traceback (most recent call last):
  File "E:\ai\stable-diffusion-webui\modules\shared.py", line 549, in set
    self.data_labels[key].onchange()
  File "E:\ai\stable-diffusion-webui\modules\call_queue.py", line 15, in f
    res = func(*args, **kwargs)
  File "E:\ai\stable-diffusion-webui\webui.py", line 120, in <lambda>
    shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: modules.sd_models.reload_model_weights()))
  File "E:\ai\stable-diffusion-webui\modules\sd_models.py", line 467, in reload_model_weights
    load_model(checkpoint_info, already_loaded_state_dict=state_dict, time_taken_to_load_state_dict=timer.records["load weights from disk"])
  File "E:\ai\stable-diffusion-webui\modules\sd_models.py", line 384, in load_model
    sd_config = OmegaConf.load(checkpoint_config)
  File "E:\ai\stable-diffusion-webui\venv\lib\site-packages\omegaconf\omegaconf.py", line 187, in load
    with io.open(os.path.abspath(file_), "r", encoding="utf-8") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'E:\\ai\\stable-diffusion-webui\\configs\\instruct-pix2pix.yaml'

Additional information

No response

vladmandic commented 1 year ago

so why not download it and place it there? https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/configs/instruct-pix2pix.yaml

celloh123 commented 1 year ago

i did not know it came with the web-ui, i thought web-ui created a config in the first run. Thanks a bunch anyways