MinfengZhu / DM-GAN

MIT License
187 stars 64 forks source link

IS for COCO报错? #37

Closed ourpubliccodes closed 1 year ago

ourpubliccodes commented 1 year ago

请问使用IS for COCO评估生成效果的时候,运行_init_inception()函数就会在 91行 读取shape的时候报错,就像这样:

16cbb24210ce68e12c1bfd589019d6a

ed015867e99db3fe08d4f424312da9b

debug的时候查看这部分的shape有的是(),或者(None,None,3),但这是加载的'http://download.tensorflow.org/models/image/imagenet/inception-2015-12-05.tgz',请问要怎么处理这个问题呢4bb80f9be69229f97e4b35075eafc39

ourpubliccodes commented 1 year ago

Tensorflow版本不一致导致的错误,此版本是据Tensorflow 1.x写的,我的是Tensorflow 2.x。将这行代码改为shape = [s for s in shape] #TF 2.x即可正常运行。