File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
examples/instruct_pix2pix Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -976,10 +976,10 @@ def collate_fn(examples):
976
976
# pipeline.unet = pipeline.unet.to(weight_dtype)
977
977
with torch .autocast (str (accelerator .device )):
978
978
for _ in range (args .num_validation_images ):
979
- # print(f"Pipeline device: {pipeline.device}")
980
- # print(
981
- # f"UNet: {pipeline.unet.device} Text Encoder: {pipeline.text_encoder.device} VAE: {pipeline.vae.device}"
982
- # )
979
+ print (f"Pipeline device: { pipeline .device } " )
980
+ print (
981
+ f"UNet: { pipeline .unet .device } Text Encoder: { pipeline .text_encoder .device } VAE: { pipeline .vae .device } "
982
+ )
983
983
# print(
984
984
# f"UNet: {pipeline.unet.dtype} Text Encoder: {pipeline.text_encoder.dtype} VAE: {pipeline.vae.dtype}"
985
985
# )
You can’t perform that action at this time.
0 commit comments