lllyasviel / lllyasviel/ControlNet

Slow convergence on training on toy dataset that you provided

Open
#685 4 comments 1 reaction 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

First of all, thanks for your amazing work! @lllyasviel

However, I met the problem that as I followed your steps to retrain the model to fill the circle with your toy dataset, the model converges really slow.

Below is the sampling result of 3900 steps with batch size of 4 (all the parameters remain unchanged as your tutorial_train.py).

G.T. [reconstruction_gs-003900_e-000000_b-003900]:

![reconstruction_gs-003900_e-000000_b-003900](https://github.com/lllyasviel/ControlNet/assets/50691494/5a971eaf-6573-440a-ba06-3bdb5f483559)

Output [samples_cfg_scale_9 00_gs-003900_e-000000_b-003900]:

![samples_cfg_scale_9 00_gs-003900_e-000000_b-003900](https://github.com/lllyasviel/ControlNet/assets/50691494/8f0de017-84dc-431c-a6c4-33e11f187813)

The model seems to be able to understand the color, but cannot understand the position of the circle.

\

While continuing the training, the sampling result of 11875 steps:

G.T. [reconstruction_gs-011875_e-000001_b-003000]:

![reconstruction_gs-011875_e-000001_b-003000](https://github.com/lllyasviel/ControlNet/assets/50691494/4a287052-9e45-4ea5-acfb-466c0c81e763)

Output [samples_cfg_scale_9 00_gs-011875_e-000001_b-003000]:

![samples_cfg_scale_9 00_gs-011875_e-000001_b-003000](https://github.com/lllyasviel/ControlNet/assets/50691494/bab820bb-5c7f-495b-9bae-3bd18f56e2df)

The model finally learns the position of the circle, but seems no longer understand the color anymore.

Do you have any insights on this problem, or do you have any instructions on helping me solve this? Thank you in advance!

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

Start with the tutorial_train.py procedure and the reported batch size of 4, then compare the sampling results at 3,900 and 11,875 steps. Check whether the slow convergence and changing color or position behavior can be reproduced with the toy dataset. Done means identifying a likely cause or documenting concrete training guidance backed by reproducible observations.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.