hako-mikan / sd-webui-supermerger

model merge extention for stable diffusion web ui
GNU Affero General Public License v3.0
746 stars 113 forks source link

Suddenly a new error: FileNotFoundError: [WinError 3] The system cannot find the path specified: '' #89

Closed CCpt5 closed 1 year ago

CCpt5 commented 1 year ago

First off I love this extension, so thanks a lot for all of the time/effort to create and maintain it!!

Suddenly, after weeks of using the merge feature w/o any issues, I'm receiving the below error whenever I try to merge checkpoints. It references a filenotfound and seems to hint it's related to Gradio (but I'm not a developer nor an expert on python etc).

The only change I've made recently is trying pytorch 2.1 along w/ XFormers 0.0.20 - but I've since rolled both of those back and this issue still occurs. I'm on the latest commits afaik otherwise.

I have doublechecked and I still use the recommended version of diffusers 0.14.0 (that caused me problems when first installing).

Edit: Just remembered I did git pull to the newest Release Candidate for A1111 - Might that be the problem? It's available to the public using the pulldown on the A1111 repo. Branch: Realease_Candidate. I assume that'll be merged w/ the Master in the next few days.

Any idea why I may be getting this error all of a sudeen?

Thanks for any help!!


version: v1.2.1  •  python: 3.10.9  •  torch: 2.1.0.dev20230524+cu121  •  xformers: N/A  •  gradio: 3.29.0  •  checkpoint: [e1441589a6]

Other extensions: sd-dynamic-thresholding sd-dynamic-prompts sd-webui-tagcomplete
sd-webui-controlnet sd-webui-segment-anything frame2frame sd-webui-supermerger
sd-webui-text2video stable-diffusion-webui-model-toolkit
stable-diffusion-webui-rembg ultimate-upscale-for-automatic1111
LDSR
Lora [ ScuNET SwinIR


Full console error:

venv "E:\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.9 | packaged by conda-forge | (main, Jan 11 2023, 15:15:40) [MSC v.1916 64 bit (AMD64)] Version: v1.2.1 Commit hash: 89f9faa63388756314e8a1d96cf86bf5e0663045 Installing requirements

Installing frame2frame requirement: opencv-python

Launching Web UI with arguments: --opt-sdp-attention --no-half-vae --opt-channelslast --skip-torch-cuda-test --skip-version-check --ckpt-dir e:\Stable Diffusion Checkpoints No module 'xformers'. Proceeding without it. ControlNet v1.1.191 ControlNet v1.1.191 Loading weights [43ef1f3bed] from e:\Stable Diffusion Checkpoints\2023-05-24 - Arnold - [No Flip]- 50img - 7000 steps.ckpt Create LRU cache (max_size=16) for preprocessor results. Create LRU cache (max_size=16) for preprocessor results. Creating model from config: E:\stable-diffusion-webui\configs\v1-inference.yaml LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params.

Thanks for being a Gradio user! If you have questions or feedback, please join our Discord server and chat with us: https://discord.gg/feTf9x3ZSB Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch(). Create LRU cache (max_size=16) for preprocessor results. Startup time: 13.3s (import torch: 2.1s, import gradio: 1.4s, import ldm: 0.4s, other imports: 2.7s, list SD models: 1.4s, load scripts: 2.5s, create ui: 2.5s, gradio launch: 0.1s). Loading VAE weights specified in settings: E:\stable-diffusion-webui\models\VAE\vae-ft-mse-840000-ema-pruned.ckpt Applying scaled dot product cross attention optimization. Textual inversion embeddings loaded(0): Model loaded in 6.0s (load weights from disk: 1.2s, create model: 0.6s, apply weights to model: 0.7s, apply channels_last: 0.3s, apply half(): 0.3s, load VAE: 0.2s, move model to device: 2.6s). model A : v1-5-pruned-full-7-gb model B : 2023-05-18- Topnotch 2.5 - (Electronics - Not sure the numbers) - prob not great model C : alpha,beta : (0.5, 0.25) weights_alpha : weights_beta : mode : Weight sum:A(1-alpha)+Balpha MBW : False CalcMode : normal Elemental : Tensors : Loading weights [297eae4f0d] from e:\Stable Diffusion Checkpoints\2023-05-18- Topnotch 2.5 - (Electronics - Not sure the numbers) - prob not great.ckpt Creating model from config: E:\stable-diffusion-webui\configs\v1-inference.yaml LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Loading VAE weights specified in settings: cached vae-ft-mse-840000-ema-pruned.ckpt Applying scaled dot product cross attention optimization. Model loaded in 10.9s (load weights from disk: 1.1s, create model: 0.2s, apply weights to model: 0.4s, apply channels_last: 0.3s, apply half(): 0.4s, move model to device: 8.5s). Loading weights [2023-05-18- Topnotch 2.5 - (Electronics - Not sure the numbers) - prob not great] from cache Loading weights [e1441589a6] from e:\Stable Diffusion Checkpoints\v1-5-pruned-full-7-gb.ckpt Creating model from config: E:\stable-diffusion-webui\configs\v1-inference.yaml LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Loading VAE weights specified in settings: cached vae-ft-mse-840000-ema-pruned.ckpt Applying scaled dot product cross attention optimization. Model loaded in 5.7s (load weights from disk: 3.1s, create model: 0.2s, apply weights to model: 0.4s, apply channels_last: 0.2s, apply half(): 0.3s, load VAE: 0.3s, move model to device: 1.2s). Loading weights [v1-5-pruned-full-7-gb] from cache Stage 1/2: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1143/1143 [00:01<00:00, 870.76it/s] Stage 2/2: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1143/1143 [00:00<?, ?it/s] Applying scaled dot product cross attention optimization. Loading VAE weights specified in settings: cached vae-ft-mse-840000-ema-pruned.ckpt 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:05<00:00, 3.72it/s] Traceback (most recent call last):███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋ | 18/20 [00:02<00:00, 9.53it/s] File "E:\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 408, in run_predict output = await app.get_blocks().process_api( File "E:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1315, in process_api result = await self.call_function( File "E:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1043, in call_function prediction = await anyio.to_thread.run_sync( File "E:\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "E:\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "E:\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run result = context.run(func, *args) File "E:\stable-diffusion-webui\extensions\sd-webui-supermerger\scripts\mergers\mergers.py", line 81, in smergegen images = simggen(prompt,nprompt,steps,sampler,cfg,seed,w,h,hireson,hrupscaler,hr2ndsteps,denoise_str,hr_scale,batch_size,currentmodel,id_sets,modelid) File "E:\stable-diffusion-webui\extensions\sd-webui-supermerger\scripts\mergers\mergers.py", line 692, in simggen images.save_image(image, opts.outdir_txt2img_samples, "",p.seed, p.prompt,shared.opts.samples_format, p=p,info=infotext) File "E:\stable-diffusion-webui\modules\images.py", line 526, in save_image os.makedirs(path, exist_ok=True) File "C:\Users\Jason\Miniconda\lib\os.py", line 225, in makedirs mkdir(name, mode) FileNotFoundError: [WinError 3] The system cannot find the path specified: ''

Total progress: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:21<00:00, 9.53it/s]

CCpt5 commented 1 year ago

Fixed it - User error - I'd deleted the individual paths in settings for "Output directory for txt2img images" etc when making a set of generations I wanted to be put in a certain drive/folder. Re-adding those path has resolved this issue.

Thansk!