Closed ourpubliccodes closed 1 year ago
请问使用IS for COCO评估生成效果的时候,运行_init_inception()函数就会在 91行 读取shape的时候报错,就像这样:
debug的时候查看这部分的shape有的是(),或者(None,None,3),但这是加载的'http://download.tensorflow.org/models/image/imagenet/inception-2015-12-05.tgz',请问要怎么处理这个问题呢?
Tensorflow版本不一致导致的错误,此版本是据Tensorflow 1.x写的,我的是Tensorflow 2.x。将这行代码改为shape = [s for s in shape] #TF 2.x即可正常运行。
请问使用IS for COCO评估生成效果的时候,运行_init_inception()函数就会在 91行 读取shape的时候报错,就像这样:
debug的时候查看这部分的shape有的是(),或者(None,None,3),但这是加载的'http://download.tensorflow.org/models/image/imagenet/inception-2015-12-05.tgz',请问要怎么处理这个问题呢?