Skip to content

Commit bf30a18

Browse files
authored
Merge pull request #269 from andreistirb/master
np.inf returns float but the flags.DEFINE requests an int in main.py
2 parents 539fbad + 3321d71 commit bf30a18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
flags.DEFINE_integer("epoch", 25, "Epoch to train [25]")
1212
flags.DEFINE_float("learning_rate", 0.0002, "Learning rate of for adam [0.0002]")
1313
flags.DEFINE_float("beta1", 0.5, "Momentum term of adam [0.5]")
14-
flags.DEFINE_integer("train_size", np.inf, "The size of train images [np.inf]")
14+
flags.DEFINE_float("train_size", np.inf, "The size of train images [np.inf]")
1515
flags.DEFINE_integer("batch_size", 64, "The size of batch images [64]")
1616
flags.DEFINE_integer("input_height", 108, "The size of image to use (will be center cropped). [108]")
1717
flags.DEFINE_integer("input_width", None, "The size of image to use (will be center cropped). If None, same value as input_height [None]")

0 commit comments

Comments
 (0)