Skip to content

Commit 265a182

Browse files
add in predict
1 parent 1a15331 commit 265a182

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

main_tpu.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ def parse_args():
7575
parser.add_argument('--ld' , type=float , default=10.0 , help='The gradient penalty lambda')
7676
parser.add_argument('--n-critic' , type=int , default=2 , help='The number of critic')
7777

78-
parser.add_argument('--inception-score-num' , type=int , default=50000 , help='The number of sample images to use in inception score')
78+
# IGoodfellow says sould be 50k
79+
parser.add_argument('--inception-score-num' , type=int , default=512 , help='The number of sample images to use in inception score')
7980
parser.add_argument('--sample-num' , type=int , default=36 , help='The number of sample images to save')
8081
parser.add_argument('--test-num' , type=int , default=10 , help='The number of images generated by the test')
8182

@@ -249,8 +250,8 @@ def main():
249250
logger.info(f"Generate predictions {epoch}")
250251
predictions = tpu_estimator.predict(input_fn=predict_input_fn)
251252

252-
# logger.info(f"Save predictions")
253-
# save_predictions(args, args.result_dir, eval_file, predictions, epoch, total_steps, experiment)
253+
logger.info(f"Save predictions")
254+
save_predictions(args, args.result_dir, eval_file, predictions, epoch, total_steps, experiment)
254255

255256

256257

0 commit comments

Comments
 (0)