sd-scripts
sd-scripts copied to clipboard
Adjustments to resuming training
Currently skips the resumed epoch if partway through and calculates global steps as only the number of steps into the current epoch.
These changes make it resume mid epoch on the appropriate step, with the right global step count, so max steps will be honored.
This also includes a change to just do a multiplication instead of a for loop over every elapsed epoch.