当前位置: 代码迷 >> 综合 >> (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‘>

热度:75   发布时间:2024-02-06 01:01:12.0

运行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]")
  相关解决方案