(WaterGAN)TypeError: Expect argument to be a string or int, found <class ‘float‘>

运行WaterGAN出现错误:

TypeError: Expect argument to be a string or int, found <class 'float'>

将mainmhl.py中:

flags.DEFINE_integer("train_size", np.inf, "The size of train images [np.inf]")

改成:

flags.DEFINE_float("train_size", np.inf, "The size of train images [np.inf]")

猜你喜欢

转载自blog.csdn.net/demo_jie/article/details/107772834