现需要在CLEVR-Ref+数据集上测试LCGN模型,遇到了一些问题, 记录一下。
文章简介
Language-Conditioned Graph Networks for Relational Reasoning
文章链接
pytorch代码链接
tensorflow代码链接
Issues
- ImportError: cannot import name ‘imread’ from ‘scipy.misc’
这是由于scipy的版本过高导致,卸载scipy,安装1.2.1版本即可。(注:我的python版本是3.5) - 执行extract_features.py提取图片特征时,报错“ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:719)”
这是由于服务器下载resnet101-5d3b4d8f.pth失败造成的,在链接中下载模型,上传到服务器的“~/.cache/torch/checkpoints/”文件夹下即可。 - 使用conda(pip)命令时,出现“conda(pip) bad interpreter”错误
解决办法参见链接