예제 #1
0
 def save_batch_samples(imgs, count, threshold):
     p = os.path.join(save_dir, "cgan_test_sample id:%04d_count:%04d_%.2f.png" % (self.experiment_id, count,
                                                                                  threshold))
     try:
         save_concat_images(imgs, img_path=p)
         # print("test batch samples saved!")
     except Exception as e:
         print(e)
예제 #2
0
 def save_imgs(imgs, count, threshold):
     p = os.path.join(save_dir,
                      "inferred_%04d_%.2f.png" % (count, threshold))
     save_concat_images(imgs, img_path=p)
     print("generated images saved at %s" % p)
예제 #3
0
 def save_imgs(imgs, count):
     p = os.path.join(save_dir, "inferred_%04d.png" % count)
     save_concat_images(imgs, img_path=p)
     print("generated images saved at %s" % p)
예제 #4
0
 def save_imgs(imgs, count, threshold):
     p = os.path.join(
         save_dir, "ave_inferred_id_%s_%04d_%.2f.png" %
         (self.experiment_id, count, threshold))
     save_concat_images(imgs, img_path=p)
     print("ave generated images saved at %s" % p)