lr value is not changed in training
From previous other trainers I used, I find lr learning rate is adjusted according to different steps by trainer method. But I find Ai toolkit keeps lr without any changes no matter what method I choose from start to end. I think it is not reasonable because different phase need different Ir setting to control quality. Now I stop training in process and reduce lr by manual operation instead. I wish developer could check if current method is workable or not? Thanks!
I don't know if it is related, but I have this error when the train starts: File "/D1/ai-toolkit/jobs/process/BaseSDTrainProcess.py", line 2282, in run 'learning_rate': learning_rate,'learning_rate': learning_rate, ^^^^^^^^^^^^^^^^^^^^^^^^^^ UnboundLocalErrorUnboundLocalError: : cannot access local variable 'learning_rate' where it is not associated with a valuecannot access local variable 'learning_rate' where it is not associated with a value
This is really needed. I find it disappointing it is not included. The latter stages of training need a lower learn rate. You could do this in Kohya_ss, but the only way to do it here is to babysit the training. Set up the job for 500 steps at 1-e4. When it finishes, modify the job to 1500 steps and set the learn rate to 8-e5. When that dings, modify the job again to 3000 steps and set the learn rate to 5-e5. It does matter. As was explained in Kohya_ss, when a sculptor starts on a block of rock, he uses big tools to get the basic shape. As the sculpt progresses he will use smaller and more precise tools. The same idea can be applied to training. The learn rate should decrease as the training progresses. FAL-AI does this automatically. Set the learn rate to 1-e4 and toward the end it is training at 5-e5. It shouldn't be hard to add that feature to AI-Toolkit. It really does matter.
This issue has been automatically closed due to inactivity. It has had no activity for 3 months.
If this issue is still relevant, please feel free to reopen it with updated information or context. We apologize for any inconvenience.