Closed DrewWalkup closed 1 year ago
Hey @dnwalkup,
We don't know what YOUR_VAR
is - could you please specify this?
YOUR_VAR is your variable. Is it beneficial for me to define the output dir for tests on your end?
Some examples below:
accelerate launch --mixed_precision='fp16' train_dreambooth.py --train_text_encoder --save_steps=500 --pretrained_model_name_or_path=path/to/official/stable/diffusion/model/ --instance_data_dir=path/to/your/instance/images/ --class_data_dir=path/to/your/class/images/ --output_dir=path/for/your/new/model/ --instance_prompt="your instance prompt for testing purposes" --with_prior_preservation --prior_loss_weight=1.0 --seed=156516168661 --resolution=512 or 768 depending on which model you're testing with (should test on v1.5, v2-512-base and v2 768) --train_batch_size=1 --gradient_accumulation_steps=1 --use_8bit_adam --learning_rate=1.0e-6 --lr_scheduler="polynomial" --lr_warmup_steps=10 --max_train_steps=750
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
Describe the bug
When attempting to execute dreambooth on any version of transformers >4.21 run into the issue outlined in LOGS with vanilla SDv1.5.
Reproduction
accelerate launch --mixed_precision='fp16' train_dreambooth.py \ --train_text_encoder \ --save_steps=500 \ --pretrained_model_name_or_path=YOUR_VAR \ --instance_data_dir=YOUR_VAR \ --class_data_dir=YOUR_VAR \ --output_dir=YOUR_VAR \ --instance_prompt=YOUR_VAR \ --with_prior_preservation --prior_loss_weight=1.0 \ --seed=YOUR_VAR \ --resolution=YOUR_VAR \ --train_batch_size=1 \ --gradient_accumulation_steps=1 \ --use_8bit_adam \ --learning_rate=YOUR_VAR \ --lr_scheduler="polynomial" \ --lr_warmup_steps=10 \ --max_train_steps=YOUR_VAR
Logs
System Info
diffusers version: 0.9.0 Platform: Linux-5.15.65+-x86_64-with-debian-bullseye-sid Python version: 3.7.12 PyTorch version (GPU?): 1.12.0+cu113 (True) Huggingface_hub version: 0.11.1 Transformers version: 4.22.1 Using GPU in script?: P100 Using distributed or parallel set-up in script?: no