BMT代码调通bug解决合集

论文标题:A Better Use of Audio-Visual Cues: Dense Video Captioning with Bi-modal Transformer

环境:window11

1.pycocoevalcap安装

安装失败,报错子进程pycocotools安装错误

(18条消息) 深度学习部署:Windows安装pycocotools报错解决方法_Jsper0420的博客-CSDN博客_pycocotools报错

其中安装visualcppbuildtools_full.exe ,报错安装包缺失或损坏

(18条消息) (已解决)win10安装visual studio C++ build tools 提示安装包丢失或毁坏_小灰机大的博客-CSDN博客_visualcppbuildtools_full.exe

2.AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'

解决方法:安装GPU版本的pytorch

(19条消息) pytorch gpu版本的最全安装教程,含环境配置、CUDA(百度云下载)安装程序失败解决方案_识久的博客-CSDN博客_cuda 安装

问题一:

换了清华源安装还是报错。 

问题解决:使用anaconda prompt命令行用conda安装命令;检查pytorch的安装环境和项目的环境是否一致

 问题二:anaconda环境下不能直接安装pycocotools工具

(19条消息) Anaconda环境安装pycocotools工具_高祥xiang的博客-CSDN博客_conda安装pycocotools

问题解决:之后在anaconda prompt中用 pip3 install pycocoevalcap

3.OSError: [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.

OSError: [E050] Can't find model 'en_core_web_sm'. It doesn't seem to be a Python package or a valid path to a data directory.

问题解决:换参数名称了,要新下载包(版本对)。修改该参数所有出现的地方(三处)

(20条消息) [E050] Can‘t find model ‘en_core_web_sm‘. 错误_Medlen的博客-CSDN博客

4.AttributeError: module 'torchtext.data' has no attribute 'ReversibleField'

问题解决:torchtext版本回退0.4.0;本地pip安装旧版本

(20条消息) Torchtext深度解析_林子要加油的博客-CSDN博客_torchtext版本

(20条消息) Anaconda 安装本地包_BreakingBar的博客-CSDN博客

5.OverflowError: Python int too large to convert to C long

(20条消息) OverflowError: Python int too large to convert to C long 在Windows环境下Python报错_Wumbuk的博客-CSDN博客

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值