Hello, I am using Dreambooth with the runwayml/stable-diffusion-v1-5 model and after executing it I am getting the following folders:
Nothing else is being generated. Thus, when trying the make an inference the following error is obtained:
OSError: Error no file named model_index.json found in directory
The most interesting thing is that the pipeline that I had was working perfectly before upgrading the diffusers library. Thus, I assume that something has changed and now the flow training-inference is not working. I really appreciate any help with this issue. Thanks.
I’m not able to reproduce this problem, a
model_index.json file is being correctly generated for me.
Could you please post the exact command line invocation you are using, as well as the output from
Pedro, thank you for taking the time to respond. I appreciate it.
The exact command line invocation I am using is the following:
accelerate launch train_dreambooth.py \
--instance_prompt="a photo of sks dog" \
On the other hand, the output from
diffusers-cli env is:
--diffusers version: 0.17.0.dev0
--Python version: 3.8.13
--PyTorch version (GPU?): 1.13.1+cu117 (False)
--Huggingface_hub version: 0.14.1
--Transformers version: 4.28.1
--Accelerate version: 0.18.0
--xFormers version: not installed
--Using GPU in script?: Yes, I am using an A100 from a computing cluster
--Using distributed or parallel set-up in script?: No
I notice the error when I updated version 0.13.1 to 0.17.0. I have a script that automatically makes inferences to generate images from a model trained using Dreambooth. Everything was working smoothly. But I notice an error I realised that dreambooth is not longer outputing the same files it used to. I am using the recommended pipeline for inference.
from diffusers import DiffusionPipeline
model_id = "path_to_saved_model"
pipe = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16).to("cuda")
prompt = "A photo of sks dog in a bucket"
image = pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images
Everything’s very similar to my setup, and in my case the
model_info.json file is indeed saved. Could you maybe open an issue in GitHub and reference this post so we can get more eyes on it?
Sure! I’ll do it! Thank you very much for your time Pedro.
Having same issue here.
- `diffusers` version: 0.17.0.dev0
- Platform: Linux-5.15.0-69-generic-x86_64-with-glibc2.27
- Python version: 3.10.9
- PyTorch version (GPU?): 2.0.1+cu117 (True)
- Huggingface_hub version: 0.14.1
- Transformers version: 4.29.2
- Accelerate version: 0.19.0
- xFormers version: not installed
- Using GPU in script?: 4090
- Using distributed or parallel set-up in script?: No
training `DreamBooth` using `Stable-Diffusion-v1-5`