AUTOMATIC1111 / stable-diffusion-webui

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

webui-user error, Waifu Diffusion ckpt #2465

Closed FyebriesRolandia closed 1 year ago

FyebriesRolandia commented 2 years ago

Describe the bug I've tried deleting and reinstalling stable diffusion again and again, want to try if using Waifu diffusion ckpt files would make any difference. It able to pass the Taming Transformers process (a bug when i used the official stable diffusion ckpt, another Issue Report), but now i had a lot more errors, one even containing "The file may be malicious, so the program is not going to read it"

To Reproduce Steps to reproduce the behavior:

  1. Installing Python 3.10.7 with "Add to PATH" checked
  2. Installing git with all the recommended options
  3. Download ckpt file from https://huggingface.co/hakurei/waifu-diffusion-v1-3/tree/main. Saved it in another drive in case I need to recopy it again.
  4. Download GFPGAN file from https://github.com/TencentARC/GFPGAN. Saved it in another drive in case i need to recopy it again.
  5. Make a new folder that you want to put the Stable Diffusion on, in the same drive as the Python and git (forgot to document the error that happened when you put it on a different drive. Probably on another bug report), in this case, C:/AI
  6. Within the folder, right-click and GitBash Here
  7. Type: git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
  8. Making sure that everything is 100% and done. There's one occurrence where there's a process that stops at under 100% and just goes to another process (again, forgot to document), but this aren't it.
  9. Copy the GFPGAN file to /stable-diffusion-1-4
  10. Copy the ckpt file to stable-diffusion-1-4/models/Stable Diffusion
  11. Run the webui-user.bat NOT in Administrator

Expected behavior To smoothly installs all of the ckpts. There haven't even any installing progress bar unlike on many tutorial videos

Screenshots waifudiffusion ckpt waifudiffusion ckpt(2)

Desktop (please complete the following information):

Additional context

mezotaken commented 2 years ago

2235 Seems identical to your problem and it was solved. You may try to do the same steps?

Clear this huggingface dir: image Add "--disable-safe-unpickle" argument to your webui-user.bat file before running it for the first time. It should look like this: image Btw i believe this extra step with putting gfpgan model to root directory is outdated. Every upscale/facefix model will download automatically when you'll use it for the first time (at least it happened for me). Its certainly not a model issue, nor a model name issue, and probably not a python issue (i use 3.10.7 and it worked with WD and NAI model).

FyebriesRolandia commented 2 years ago

Fixed

Fix solution is as mezotaken wrote :

This successfully creates the local Stable Diffusion. Any ckpt pasted to model folder became an option that can be changed at will image

If you didn't choose any ckpt, it will brought up blank black image

xioren commented 2 years ago

This is a workaround not a solution. This problem should not be occurring. I only started getting this exception after git pulling updates today. Something else is wrong here and this should be left open.

standby commented 1 year ago

I got the same issue. It is found that git lfs is not initialized. So go to https://git-lfs.com/ and install it.

You need to git lfs install once before running the webui.sh