代码参考链接:Deep Rectangling 代码地址
文章目录
1、keras模块错误
参考链接:Keras导包错误
2、‘tuple’ object has no attribute ‘layer’
百度了很多方法,都没发很好的解决,于是我按照作者要求的环境重新搭建了一下,这个问题就解决了,很离谱。
3、AttributeError: module ‘skimage’ has no attribute ‘measure’
出现这个错误,主要是由于 Skimage 的版本太高了,由于在配置环境时没注意,默认安装的 Skimage==0.17.2 ,这个版本中没有 “measure” 这个算法,于是我降低了 Skimage 的版本,就成功解决了。
pip install scikit-image==0.15.0
4、list index out of range
这个错误在前几次的代码中出现过,是分割字符串出错了,运行程序的时候注意修改一下。
错误出现在 util.py 文件中,如下图所示: