@@ -75,7 +75,8 @@ def parse_args():
75
75
parser .add_argument ('--ld' , type = float , default = 10.0 , help = 'The gradient penalty lambda' )
76
76
parser .add_argument ('--n-critic' , type = int , default = 2 , help = 'The number of critic' )
77
77
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' )
79
80
parser .add_argument ('--sample-num' , type = int , default = 36 , help = 'The number of sample images to save' )
80
81
parser .add_argument ('--test-num' , type = int , default = 10 , help = 'The number of images generated by the test' )
81
82
@@ -249,8 +250,8 @@ def main():
249
250
logger .info (f"Generate predictions { epoch } " )
250
251
predictions = tpu_estimator .predict (input_fn = predict_input_fn )
251
252
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 )
254
255
255
256
256
257
0 commit comments