ShivamShrirao / diffusers

🤗 Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch
https://huggingface.co/docs/diffusers
Apache License 2.0
1.89k stars 505 forks source link

[launch_inpaint.sh] AttributeError: 'LatentsDataset' object has no attribute 'class_images_path' #165

Open ZeroCool22 opened 1 year ago

ZeroCool22 commented 1 year ago

Describe the bug

Screenshot_11

My launch_inpaint.sh

export LD_LIBRARY_PATH=/usr/lib/wsl/lib:$LD_LIBRARY_PATH export MODEL_NAME="runwayml/stable-diffusion-inpainting" export INSTANCE_DIR="training" export OUTPUT_DIR="my_model"

accelerate launch train_inpainting_dreambooth.py \ --pretrained_vae_name_or_path="stabilityai/sd-vae-ft-mse" \ --pretrained_model_name_or_path=$MODEL_NAME \ --instance_data_dir=$INSTANCE_DIR \ --output_dir=$OUTPUT_DIR \ --instance_prompt="Greyalieninpa" \ --resolution=512 \ --train_batch_size=1 \ --learning_rate=1e-6 \ --lr_scheduler="constant" \ --lr_warmup_steps=0 \ --gradient_accumulation_steps=4 --gradient_checkpointing \ --use_8bit_adam \ --save_interval=500 \ --max_train_steps=5000

xzxzzzz

Reproduction

No response

Logs

No response

System Info

InB4DevOps commented 1 year ago

add --not_cache_latents to your launch_inpaint.sh and it should work

vivek-hirer-ai commented 1 year ago

--not_cache_latents leads to an out of memory error even on a 24gb system. Was there any workaround found to this? Running into the same issue with train_inpainting_dreambooth.py as the one mentioned i.e. 'LatentsDataset' object has no attribute 'class_images_path'