CVPR 2020 运行SGMN遇到的问题及解决办法
目录
- 文章简介
- Issues
- 环境配置
- Ref-Reasoning数据集格式
- train(val)_expression.json
- train(val)_sgs.json
- train(val)_sg_seqs.json
- gt_objects_info.json
- *_sgs.json
- *_sg_seqs.json
文章简介
Graph-Structured Referring Expressions Reasoning in The Wild
代码链接
论文链接
Issues
在作者代码的README中,有环境配置的步骤,不过python2.7+pytorch0.4.0支持的cuda版本和本机显卡支持的cuda版本存在冲突,无法正常运行代码,会出现以下错误:
# 错误1
RuntimeError: cuDNN version mismatch: PyTorch was compiled against 7102 but linked against 7605
# 错误2
CUDNN_STATUS_EXECUTION_FAILED
错误1可以通过以下命令解决:
conda install cudnn=7.1.2
错误2是版本冲突,我没解决,所以没办法和作者用一样的环境。但是,在python3的环境下,作者的代码稍作调整也可以运行,具体配置步骤见下文。
环境配置
本机环境:
- ubuntu18.04
- rtx 2080ti
- NVIDIA-SMI 450.57
基于本机环境,我配置的conda虚拟环境中,各软件版本如下:
- python 3.6.2
- pytorch 1.4.0 - py3.6_cuda10.0.130_cudnn7.6.3_0
- torchvision 0.5.0 - py36_cu100
- scipy 1.5.2
- numpy 1.19.1
- h5py 2.10.0
- cudatoolkit 10.0.130
在上述环境中,对代码稍微修改一下(主要是python2→\rightarrow→ python3,如print xxx,改为print(xxx)),即可正常运行。
环境配置代码:
conda create -n lchpy36 python=3.6
source activate lchpy36
conda install pytorch torchvision cudatoolkit=10.0 -c pytorch
pip install h5py
pip install scipy
运行程序代码:
git clone https://github.com/sibeiyang/sgmn.git && cd sgmn
# 建立软链接一定要用绝对路径
ln -s /home/mcislab/dist4T/chuanhao/dataset/Ref-Reasoning/refvg/ /home/mcislab/dist4T/chuanhao/code/sgmn/data/
ln -s /home/mcislab/dist4T/chuanhao/dataset/Ref-Reasoning/gt_objects/ /home/mcislab/dist4T/chuanhao/code/sgmn/data/
ln -s /home/mcislab/dist4T/chuanhao/others/sgmn_glove/word_embedding/ /home/mcislab/dist4T/chuanhao/code/sgmn/data/
bash experiments/script/train.sh $GPUs
Ref-Reasoning数据集格式
train(val)_expression.json
{"825670": {"num_nodes": 4, "referent_id": "4306103", "image_id": "2384229", "bbox": [215, 50, 43, 55], "expression": "There is a people to the right of man and to the left of a wine , and the man holding empty glass ."}, ...
}
train(val)_sgs.json
{"800000": {"words_info": [[1, "det", 0, "a"], [1, "amod", 0, "yellow"], [1, "head", 0, "frisbee"], [1, "none", 1, "to"], [1, "none", 1, "the"], [1, "none", 1, "left"], [1, "none", 1, "of"], [1, "head", 2, "man"], [0, "none", 3, "that"], [0, "none", 3, "is"], [1, "none", 3, "wearing"], [1, "amod", 4, "white"], [1, "head", 4, "socks"], [1, "none", 5, "and"], [0, "none", 5, "is"], [1, "none", 5, "wearing"], [1, "head", 6, "shorts"], [1, "none", 7, "."]], "co_index": {}},...
}
train(val)_sg_seqs.json
{"800000":{"seq_sg": [{"seq_rel": [], "type": "S", "seq": [7]}, {"seq_rel": [], "type": "SPO", "seq": [2, 5, 6]}, {"seq_rel": [[2, 1, "SUBANDSUB"]], "type": "SPO", "seq": [2, 3, 4]},{"seq_rel": [[3, 2, "OBJANDSUB"]], "type": "SPO", "seq": [0, 1, 2]}], "com_seq": [0, 3], "num_seq": 4, "split_to_seq": {"0": 3, "2": 3, "4": 2, "7": 0, "6": 1}},...
}
gt_objects_info.json
{"2379671":{"width": 500, "idx": 1541, "file": 2, "objectsNum": 15, "height": 438},...
}
*_sgs.json
basic info about language scene graph
{"expression_id":{"word_info": list of info (split id, dependent type, weight, word)"co_index": dictionary from one split id to its coreference's split id},...
}
*_sg_seqs.json
structured info about language scene graph
{"expression_id":{"seq_sg": list of nodes and edges. Each node and edge includes its phrase listed by split ids, its relations to other nodes and edges, and its type info."com_seq": list of indexes of elements with zero out-degree in seq_sg"num_seq": number of nodes and edges"split_to_seq": dictionary from one split id to the index of seq_sg},...
}
CVPR 2020 运行SGMN遇到的问题及解决办法相关推荐
- CVPR 2020 运行12-in-1遇到的问题及解决办法(持续更新中)
目录 文章简介 Issues 文章简介 本文是一篇vision&language跨模态的bert模型. 代码链接 论文链接 Issues ModuleNotFoundError: No mod ...
- python modulenotfounderror_python 服务器运行代码报错ModuleNotFoundError的解决办法
一.问题描述 一段 Python 代码在本地的 IDE 上运行正常,部署到服务器运行后,出现了 ModuleNotFoundError: No module named 'xxx" 错误. ...
- idea 2020 2021 maven不能下载jar包解决办法
idea 2020 2021 maven不能下载jar包解决办法 只需简单步骤就可以解决 打开idea 选择pom文件 右键 maven 选择 open 'settings.xml' 打开 修改mir ...
- 天地劫pc版不显示服务器,天地劫手游PC版无法运行怎么办 PC版无法进去解决办法?...
核心提示:天地劫手游PC版无法运行怎么办 PC版无法进去解决办法?,相信很多小伙伴对这一块不太清楚,接下来小编就为大家介绍一下天地劫手游PC版无法运行怎么办 PC版无法进去解决办法?,有兴趣的小伙伴可 ...
- java 报错404_Javaweb工程运行报错HTTP Status 404解决办法
最近在学习jsp和servlet,避免不了的要和tomcat打交道,但tomcat经常会出现各式各样的错误,下面是我总结的一些常见的解决方法,希望对大家有用. 1.未部署web应用 2.url输入错误 ...
- cad2020安装1603错误_AutoCAD 2020安装失败怎么办?官方有效解决办法
有不少小伙伴在安装AutoCAD 2020的时候,会碰到程序提示"安装失败,某些产品无法安装"的情况,这到底是怎么一回事呢?怎么才能解决这个问题呢?下面小编就给大家分享下解决办法, ...
- Android之运行Java.lang.UnsatisfiedLinkError的错误解决办法
1.问题 部分手机运行的时候在jni层出现这个错误,导致手机崩溃 Java.lang.UnsatisfiedLinkError 2.解决办法 是因为在我是这样写的 static {System.loa ...
- linux连接u盘是提示usb驱动错误,U盘提示无法访问,由于I/O设备错误,无法运行此项请求3种完美解决办法...
有时候我们的U盘会突然或者不正确的使用导致U盘提示无法访问,提示I/O错误等错误消息,U盘打不开了,里面的东西才是最重要的,那么怎么恢复U盘呢. 下面按复杂程度给出几个解决办法: 方法一.可能和强行拔 ...
- Vue 运行提示“没有注册类”的解决办法
在运行Vue项目时,突然弹出警告框"没有注册类",但项目依旧可以运行,只是未能自动启动浏览器,网上查阅了各种解决办法后,发现没一个是真正能解决问题的. 后来发现,自己电脑的默认浏览 ...
最新文章
- 计算两个日期之间的工作日
- HashMap HashTable和ConcurrentHashMap的区别
- rest-framework 响应器(渲染器)
- 2021-10-06
- STM8S105系列单片机管脚复用配置(选项字节的配置)
- 连表查询使用in_SQL 组合查询
- STL之Iterator(迭代器)
- ReactiveCocoa基础
- leetcode19. 删除链表的倒数第 N 个结点
- 1074. 元素和为目标值的子矩阵数量
- [2-sat][topsort输出解] POJ 3648 Wedding
- git同时推送项目到GitHub和Gitee
- 【广告技术】如何提升定向广告效果?腾讯广告提出高质量负实例生成新方法
- 广播信道的数据链路层和CSMA/CD协议
- python蓝桥杯跑步训练
- python文件中写中文_解决python中csv文件中文写入问题
- lock concurrence
- java获取网页表单数据,转发与重定向,使用application统计访问次数
- 如何进行项目管理?企业项目管理常见的组织形式有哪些?
- vb如何调用计算机日历,跪求vb.net简易日历制作的源代码