Closed stpg06 closed 1 year ago
cc @williamberman for IF Dreambooth
hey @stpg06 this script currently doesn't support training the stage II model, please only train the stage I model for now. I'll be putting up some changes to support the stage II model later today :)
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.
Hi, wondering what the state of this is. I'm encountering the same error. What is the workaround for now?
Gentle ping @williamberman
Gentle ping again @williamberman
For IF stage II, you must pass --class_labels_conditioning timestep
to the training script. I double checked the readme for training and confirmed it's documented there and in all examples for training stage II. I'm going to close the issue but if there's an alternative location it's not documented please reopen the issue and let me know where or open a separate issue and tag me so I can add it to those docs :) thanks!
Describe the bug
Running into this issue and not entirely sure what i am doing wrong, do I need a metadata file or something?
Reproduction
!python3 train_dreambooth_lora.py \ --pretrained_model_name_or_path="DeepFloyd/IF-II-L-v1.0" \ --output_dir="/content/drive/MyDrive/stable_diffusion_weights/zwx23" \ --revision="main" \ --instance_data_dir="/content/i/" \ --class_data_dir="/content/c/" \ --instance_prompt="photo of a zwx man" \ --class_prompt="photo of a man" \ --validation_prompt="painting of a zwx man in a tuxedo" \ --max_train_steps=5000 \ --seed=1378 \ --checkpoints_total_limit=2 \ --num_class_images=20 \ --resolution=512 \ --train_batch_size=2 \ --pre_compute_text_embeddings \ --sample_batch_size=4 \ --mixed_precision="fp16" \ --num_validation_images=4 \ --validation_epochs=50 \ --gradient_accumulation_steps=1 \ --learning_rate=1e-4 \ --checkpointing_steps=2500 \ --lr_scheduler="constant" \ --lr_warmup_steps=0
Logs
System Info
Google colab