Skip to content

fail to get expected results on sdxl+controlnet on fill50k #4476

Closed

Description

@YongtaoGE

Describe the bug

The generated images seem not to correspond to the input condition images after around 10000 iterations.

Reproduction

CUDA_VISIBLE_DEVICES='0' accelerate launch train_controlnet_sdxl.py \
 --pretrained_model_name_or_path=$MODEL_DIR \
 --output_dir=$OUTPUT_DIR \
 --pretrained_vae_model_name_or_path=$VAE_DIR \
 --train_data_dir "examples/controlnet/data/fill50k" \
 --resolution=1024 \
 --learning_rate=1e-5 \
 --max_train_steps=15000 \
 --validation_image "./data/condition_images/fill50k_conditioning_image_1.png" \
 --validation_prompt "red circle with blue background" \
 --validation_steps=100 \
 --train_batch_size=2 \
 --gradient_accumulation_steps=1 \
 --report_to="wandb" \
 --enable_xformers_memory_efficient_attention \
 --max_grad_norm=1.0 \
 --tracker_project_name sd_xl_train_controlnet_fill50k \
 --seed=12 \
 --logging_dir='logs_fill50k' \
 --num_validation_images=2 \

Logs

Here are the results on 9899 iters.

validation_9899_625e1ee3a3046dd10554
validation_9899_43b527f55827e9f7781a

System Info

a100x1

Who can help?

No response

Activity

  1. added
    bug
    on Aug 5, 2023
  2. sayakpaul commented on Aug 9, 2023

    @sayakpaul
    Member

    With almost the similar script, we're getting promising results on a different dataset. So, i highly doubt if this is a script-problem. Could use some hyperparameter tuning sweeps.

    Ccing @okotaku who recently shared some cool results.

  3. haoqiangyu commented on Aug 29, 2023

    @haoqiangyu

    With almost the similar script, we're getting promising results on a different dataset. So, i highly doubt if this is a script-problem. Could use some hyperparameter tuning sweeps.

    Ccing @okotaku who recently shared some cool results.

    @sidthekidder The link (results) can't be accessed, maybe I didn't join the discord channel.

  4. okotaku commented on Aug 29, 2023

    @okotaku
    Contributor

    @haoqiangyu
    okotaku/diffengine#31

    Here is my results.

    https://discord.com/channels/879548962464493619/1014556868829532210/1137955469546233946

    Here is the message link;)

    I feel my model was under fitting. I plan to use more epochs or higher lr.

  5. okotaku commented on Sep 5, 2023

    @okotaku
    Contributor

    @haoqiangyu I trained ControlNet small and mid for SDXL for 3 epochs. The results look promising.

    okotaku/diffengine#49

    stable_diffusion_xl_controlnet_small_fill50k

    input1

    example1

    stable_diffusion_xl_controlnet_mid_fill50k

    input1

    example1

  6. github-actions commented on Oct 18, 2023

    @github-actions
    Contributor

    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.

  7. added
    stale
    on Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions