win10系统,python3.5运行GitHub中经典算法FCN,tensorflow版本0.12
代码链接:https://github.com/shekkizh/FCN.tensorflow
1、Cannot feed value of shape (0,) for Tensor 'input_image:0', which has shape '(?, 224, 224, 3)']
解决:删除Data_zoo\MIT_SceneParsing路径下的MITSceneParsing.pickle文件。
2、Annotation file not found for ADEChallengeData2016\images\validation\ADE_val_00001994 - Skipping
解决:修改read_MITSceneParsingData.py文件中的filename = os.path.splitext(f.split("/")[-1])[0],改为filename = os.path.splitext(f.split("\\")[-1])[0]
3、AttributeError: module 'scipy.misc' has no attribute 'imread'
解决:安装PIL
第三方库,pip install Pillow
pip install Pillow
降级scipy
的版本, 降级到scipy==1.2.1
pip install scipy==1.2.1
4、numpy.AxisError: axis 3 is out of bounds for array of dimension 3
解决:self.annotations = np.array(
[np.expand_dims(self._transform(filename['annotation']), axis=3) for filename in self.files])将2改为2
self.annotations = np.array(
[np.expand_dims(self._transform(filename['annotation']), axis=2) for filename in self.files])