Rbrq03 / ClassDiffusion

ClassDiffusion: Official impl. of Paper "ClassDiffusion: More Aligned Personalization Tuning with Explicit Class Guidance"
31 stars 0 forks source link

Can not reproduce the output #4

Closed htrvu closed 2 months ago

htrvu commented 2 months ago

Hello there. I followed your provided code and data to train the concept at data/dog. However, I can not achieve as good output as showed in your paper. Am I missed something?

My outputs:

Training scripts:

export CLS_TOKEN="dog"
export MODEL_NAME="runwayml/stable-diffusion-v1-5"
export OUTPUT_DIR="./ckpt/${CLS_TOKEN}_cls_1e-4"
export INSTANCE_DIR="./data/${CLS_TOKEN}"

accelerate launch train_class_diffusion.py \
  --pretrained_model_name_or_path=$MODEL_NAME  \
  --instance_data_dir=$INSTANCE_DIR \
  --output_dir=$OUTPUT_DIR \
  --instance_prompt="a photo of a <new1> ${CLS_TOKEN}"  \
  --resolution=512  \
  --train_batch_size=1  \
  --learning_rate=1e-4  \
  --lr_warmup_steps=0 \
  --max_train_steps=500 \
  --scale_lr \
  --hflip  \
  --modifier_token "<new1>" \
  --no_safe_serialization \
  --use_spl \
  --spl_weight=1 \
  --cls_token "${CLS_TOKEN}" \
  --validation_steps=50 \
  --validation_prompt="a <new1> ${CLS_TOKEN} is swimming" \
  --tracker_name "custom-diffusion-multi"
Rbrq03 commented 2 months ago

Hello @htrvu, Thanks for interest.

The following are the results I produce in your caption. dog5 dog4 dog3 dog2 dog1 dog

If you continue to experience issues, feel free to reach out.

htrvu commented 2 months ago

Thanks for your quick reply. The results are better now!

Rbrq03 commented 2 months ago

Glad to hear that!