Unverified Commit 0d81e543 authored by Canberk Kandemir's avatar Canberk Kandemir Committed by GitHub
Browse files

Unet fix (#4769)

* Optional images variable train_custom_diffusion.py

* Fixed train_custom_diffusion.py

* Revert accidental changes to unet_2d_condition.py

* "Format code with black"
parent 3be0ff90
......@@ -1209,6 +1209,8 @@ def main(args):
break
if accelerator.is_main_process:
images = []
if args.validation_prompt is not None and global_step % args.validation_steps == 0:
logger.info(
f"Running validation... \n Generating {args.num_validation_images} images with prompt:"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment