We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a53cc41 commit 4c8920cCopy full SHA for 4c8920c
examples/instruct_pix2pix/train_instruct_pix2pix.py
@@ -974,7 +974,7 @@ def collate_fn(examples):
974
edited_images = []
975
# pipeline.torch_dtype = weight_dtype
976
# pipeline.unet = pipeline.unet.to(weight_dtype)
977
- with torch.autocast(str(accelerator.device), enabled=accelerator.mixed_precision == "fp16"):
+ with torch.autocast(str(accelerator.device)):
978
for _ in range(args.num_validation_images):
979
# print(f"Pipeline device: {pipeline.device}")
980
# print(
0 commit comments