mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-08 22:35:09 +00:00
Fix validate_every_n_steps always running first step
This commit is contained in:
@@ -1385,6 +1385,7 @@ class NetworkTrainer:
|
||||
# VALIDATION PER STEP
|
||||
should_validate_step = (
|
||||
args.validate_every_n_steps is not None
|
||||
and global_step != 0 # Skip first step
|
||||
and global_step % args.validate_every_n_steps == 0
|
||||
)
|
||||
if validation_steps > 0 and should_validate_step:
|
||||
|
||||
Reference in New Issue
Block a user