huggingface / huggingface/diffusers

Inconsistency in condition transforms across different ControlNet example scripts

Open
#10,821 1 comment 0 reactions 0 assignees View on GitHub
stale
Dominant language
Python
Stars
34.5k
Forks
7.3k
Avg merge
3d 3h
Merged PRs (30d)
91

Description

I've noticed an inconsistency in the transforms applied to condition images across different ControlNet training examples. In the [flux training script](https://github.com/huggingface/diffusers/blob/b75b204a584e29ebf4e80a61be11458e9ed56e3e/examples/controlnet/train_controlnet_flux.py#L755), the condition images are explicitly normalized.

However, in the [standard ControlNet training script](https://github.com/huggingface/diffusers/blob/b75b204a584e29ebf4e80a61be11458e9ed56e3e/examples/controlnet/train_controlnet.py#L689) and across all SD-based ControlNet training pipelines, normalization is not applied.

From my understanding, we generally avoid normalizing the condition image to prevent altering the input distribution. Does this reasoning also apply to flux?

Would this hold true for general condition images, such as a content image?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.