lllyasviel / lllyasviel/ControlNet

question about data preprocessing?

Open
#473 4 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
34.1k
Forks
3k
PR merge metrics
No merged PRs in 30d

Description

image
I see in the data preprocess, you normalize the control image to 0-1, but the target image to -1-1,in face, the cv2->float will brought some 0.5 error delta as you minus 127.5,why don't you use the same normalize method for the source and image. And anthor question, in your scripts it unsupport multi-size images, all images must resize to some fixed size by some methods, could you please give some advice to train with large amout of different size images, (eg. 1:4-->4:1)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report names data preprocessing and training scripts but no specific files or tests; begin by locating those entry points and reviewing the source and target normalization paths. Then examine how image dimensions are handled during training, with completion requiring a documented decision or implementation for normalization consistency and varied aspect ratios.

Written by the indexing model from the issue text.

Assessment

Tech stack
opencv, python
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.