论文标题: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 ,报错安装包缺失或损坏
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