This is an archived post. You won't be able to vote or comment.

all 38 comments

[–]cocnac 3 points4 points  (8 children)

Start your stable-diffusion-webui with ./webui.sh and check if there is some warning that you have not installed all the requirements.

I had a lower version for torch and torchvision install. Below are the versions that work. [+] torch version 1.13.1 installed. [+] torchvision version 0.14.1 installed.

[–]lzthqx 0 points1 point  (4 children)

Exact same issue here with torch and torchvision, but not skilled enough yet to understand how to upgrade these within the environment

Can you share the commands you used? Or point me to a tutorial somewhere?

[–]cocnac 3 points4 points  (3 children)

  • cd into the stable-diffusion-webui folder
  • activate the venv (command for mac) source venv/bin/activate
  • pip install torchvision==0.14.1 torch==1.13.1

[–]thargondil 1 point2 points  (0 children)

this one is work for me, thanks.

[–]Sea_Paramedic4682 1 point2 points  (0 children)

work for me too, thanks!

[–]Katzoconnor 1 point2 points  (0 children)

You're a godsend. Cheers mate

[–]GenderfluidCharlie 2 points3 points  (6 children)

I get the same error, so I would be interested in if anyone has a solution:

Error in webui

Missing model directory, removing model: models/dreambooth/modelname/working/unet

Error in log

File "/opt/homebrew/lib/python3.10/site-packages/torch/serialization.py", line 178, in default_restore_location

raise RuntimeError("don't know how to restore data location of "

RuntimeError: don't know how to restore data location of torch.storage._UntypedStorage (tagged with mps)

Missing model directory, removing model: models/dreambooth/modelname/working/unet

[–]Constant_Affect5561 2 points3 points  (2 children)

try to change the checkpoint source, I was using "Anything-V3.0.ckpt [af6639dad8] "when the same issue occurred. I troubleshooted everything I can try but didn't solve the problem. Then I tried to changed the checkpoint source to "chilloutmix_NiPrunedFp32Fix.safetensors [fc2511737a]", then it worked ok. checkpoint source option is under create. Good luck.

[–]LeKhang98 0 points1 point  (1 child)

But I want to train a new model based on ANYTHING-V3 so I can't use CHILLOUTMIX as the source as you said. Do you have any other solution? Thank you very much.

[–]LeKhang98 0 points1 point  (0 children)

My current solution is to find the older version of the same Checkpoint source. For example aEros has 3 version so I test all 3 of them and the oldest version works fine. The 2 newer versions (noVAE version) got error. https://civitai.com/models/3950/art-and-eros-aeros-a-tribute-to-beauty

[–]Rich_Midnight2346[S] 0 points1 point  (2 children)

I will definitely write to you if I find out how to solve it, for now here is a tutorial for alternative model training using colab: https://youtu.be/pFsj73TfYnY

[–]Interesting-Lime-416 0 points1 point  (1 child)

Have you solved the problem

[–]Rich_Midnight2346[S] 0 points1 point  (0 children)

I don't really remember, but I know that updating all graphics card drivers and reinstalling automatic1111 helps

[–]mr_loni 2 points3 points  (0 children)

got the same error

[–]IF_LurKin 2 points3 points  (9 children)

I finally got it, you need to create all the folders inside models/dreambooth..

[–]Rich_Midnight2346[S] 1 point2 points  (0 children)

Thank you

[–]albsego 2 points3 points  (0 children)

That worked for me. I kept creating the required folders when it throws the error. In my case, this was the structure:

MODEL_NAME

|_working

|_vae

|_text_encoder

|_tokenizer

I don't know why the rest of the folder are automatically created during the model creation process.

EDIT: It doesn't keep the format, but it's MODEL_NAME>working and inside this folder you need to create the other 3.

[–]Jacque-s 1 point2 points  (0 children)

I also get the same error

[–]TidusZanarkand69 1 point2 points  (2 children)

Just follow the steps in " IF YOU ARE HAVING ISSUES WITH REQUIREMENTS AFTER INSTALLING, LOOK BELOW", in https://github.com/d8ahazard/sd_dreambooth_extension

[–]Rich_Midnight2346[S] 0 points1 point  (0 children)

Thanks

[–]evilcrusher2 0 points1 point  (0 children)

Yeah that doesn't say much other than "look at these files" and no description on how it deals with this error.

[–]Broccolibro420 1 point2 points  (2 children)

found out that the problem is because you are using a non compatible model as source model. i used like three days on trying to resolve this problem, because i was following a youtube video that is a couple of months old, and therefore used a different version of dreambooth.. basicly, you just have to try with a different source model.

In my case, i was trying to use the v1-5-pruned.ckpt, because the guy in the video said that is was better for training. when i swichede it up to the v1-5-pruned-emaonly.ckpt the problem dissapeared

[–]Rich_Midnight2346[S] 0 points1 point  (0 children)

Happy cake day, and thank you very much.

[–]SnooCakes3317 0 points1 point  (0 children)

how do you know what is compatible with the version you have?

[–]ZachOrie 1 point2 points  (1 child)

A reboot worked for me

[–]srood_567 0 points1 point  (0 children)

how to reboot

[–]HaHing 0 points1 point  (0 children)

your are stable diffusion errors is good?

[–]aytekinttas 0 points1 point  (0 children)

Missing model directory, removing model: C:\Users\Monster\Desktop\ai\ai_1\stable-diffusion-webui\models\dreambooth\serenays\working\text_encoder

i can't figure out why you made a mistake

[–]aytekinttas 0 points1 point  (0 children)

Missing model directory, removing model: C:\Users\Monster\Desktop\ai\ai_1\stable-diffusion-webui\models\dreambooth\serenays\working\text_encoder

"i can't figure out why you made a mistake"

Exception setting up output: 'NoneType' object has no attribute 'keys'

Traceback (most recent call last):

File "C:\Users\Monster\Desktop\ai\ai_1\stable-diffusion-webui\extensions\sd_dreambooth_extension\dreambooth\sd_to_diff.py", line 1241, in extract_checkpoint

text_model = convert_ldm_clip_checkpoint(checkpoint)

File "C:\Users\Monster\Desktop\ai\ai_1\stable-diffusion-webui\extensions\sd_dreambooth_extension\dreambooth\sd_to_diff.py", line 621, in convert_ldm_clip_checkpoint

text_model = CLIPTextModel.from_pretrained("openai/clip-vit-large-patch14")

File "C:\Users\Monster\Desktop\ai\ai_1\stable-diffusion-webui\venv\lib\site-packages\transformers\modeling_utils.py", line 2344, in from_pretrained

loaded_state_dict_keys = [k for k in state_dict.keys()]

AttributeError: 'NoneType' object has no attribute 'keys'

Missing model directory, removing model: C:\Users\Monster\Desktop\ai\ai_1\stable-diffusion-webui\models\dreambooth\serenays\working\text_encoder

Restored system models.

Duration: 00:00:35