mirror of
https://github.com/lllyasviel/ControlNet.git
synced 2026-04-24 03:00:54 -04:00
training
This commit is contained in:
@@ -258,3 +258,11 @@ However, this option is also very useful when you are training on images with so
|
||||
Also, if your dataset is large, you may want to end the training with a few thousands of steps with those layer unlocked. This usually improve the "problem-specific" solutions a little. You may try it yourself to feel the difference.
|
||||
|
||||
Also, if you unlock some original layers, you may want a lower learning rate, like 2e-6.
|
||||
|
||||
## Other Considerations: the sudden converge phenomenon and gradient accumulation
|
||||
|
||||

|
||||
|
||||
Because we use zero convolutions, the SD should always be able to predict meaningful images. You will always find that at some iterations, the model "suddenly" be able to fit some training conditions. This means that you will get a basically usable model at about 3k to 7k steps (future training will improve it, but that model after the first "sudden converge" should be basically functional).
|
||||
|
||||
Note that 3k to 7k steps is not very large, and you should consider larger batch size rather than more training steps. If you can observe the fitting at 3k step, rather than train it with 300k steps, a better idea is to use 100× gradient accumulation to train that 3k steps with 100× batch size. Note that perhaps we should not do this *too* extremely, but you should consider that, since "sudden converge" will always happen at some point, getting a better converge is more important.
|
||||
|
||||
BIN
github_page/ex1.jpg
Normal file
BIN
github_page/ex1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 301 KiB |
Reference in New Issue
Block a user