Merge pull request #49 from orenwang/main

fix validation_steps handling in dreambooth example
This commit is contained in:
Sourab Mangrulkar
2023-02-01 15:42:35 +05:30
committed by GitHub
+1 -1
View File
@@ -978,7 +978,7 @@ def main(args):
if (
args.validation_prompt is not None
and step + num_update_steps_per_epoch * epoch % args.validation_steps == 0
and (step + num_update_steps_per_epoch * epoch) % args.validation_steps == 0
):
logger.info(
f"Running validation... \n Generating {args.num_validation_images} images with prompt:"