当前位置:首页 » 《随便一记》 » 正文

Swin transformer目标检测复现object detection遇到的问题及解决_xyzxyzxyz1999的博客

12 人参与  2022年04月24日 15:07  分类 : 《随便一记》  评论

点击全文阅读


@胖煜Swin transformer目标检测复现object detection遇到的问题及解决

Swin transformer目标检测复现object detection遇到的问题及解决

这周的在实验室的任务是Swin transformer复现,配环境就遇到了一堆问题,足足配了三天,无语子。
activate openmmlab
bash: /home/techart/anaconda3/bin/activate: Permission denied
改为:source activate openmmlab
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-req-build-ur0nohjs/
1.更新 setuptools 和 pip:
pip install --upgrade setuptools
python -m pip install --upgrade pip
不好使
2.ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output
conda install pytorch1.8.0 torchvision0.9.0 torchaudio==0.8.0 cudatoolkit=11.0 -c pytorch -c conda-forge
不好使
3.Nvidia-smi查看CUDA版本可能不准,需要使用ncvv -V命令
Command not found
安装nc
不好使
4.sudo apt-get install nvidia-cuda-toolkit
不好使
5.whereis cuda
cuda: /usr/lib/cuda /usr/include/cuda.h
cuda竟然不在一般的/usr/local/里面
查看version.txt 果然和nvidia-smi命令下的不一样
Nvidia-smi里面显示的版本是11.0,而version.txt里面显示的是10.1
6.

所以是conda虚拟环境中的cuda有问题
7. conda env remove -n 环境名
重装环境 到pyotrch官网找和CUDA对应的pytorch版本
conda install pytorch1.7.1 torchvision0.8.2 torchaudio==0.7.2 cudatoolkit=10.1 -c pytorch
8. mim install mmdet报错
installing mmdet from https://github.com/open-mmlab/mmdetection.git.
Cloning into ‘/tmp/tmpf9xpof16/mmdetection’…
fatal: unable to access ‘https://github.com/open-mmlab/mmdetection.git/’: GnuTLS recv error (-110): The TLS connection was non-properly terminated.
9. git clone https://github.com/NVIDIA/apex
Cloning into ‘apex’…
fatal: unable to access ‘https://github.com/NVIDIA/apex/’: GnuTLS recv error (-110): The TLS connection was non-properly terminated.
改为:git clone git://github.com/NVIDIA/apex
10. CocoDataset: Incompatible version of pycocotools is installed
Run pip uninstall pycocotools first. Then run pip install mmpycocotools to install open-mmlab forked pycocotools.
11. No such file or directory: ‘data/coco/annotations/instances_train2017.json’
12. UserWarning: “ImageToTensor” pipeline is replaced by “DefaultFormatBundle” for batch inference.
在测试模式下, ImageToTensor pipeline 不建议使用,用 DefaultFormatBundle 来代替,使用手动替换配置文件中的测试数据管道。
在这个地方看到的这个解决办法


点击全文阅读


本文链接:http://www.zhangshiyu.com/post/38843.html

好使  复现  环境  
<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

最新文章

  • 新章速递如果你也爱我是什么小说(厉寒霆江映春)完本阅读无广告(如果你也爱我)
  • 完结文犹若清风梦了云高质量好文列表_完结文犹若清风梦了云高质量好文(晏临渊叶知薇谢执玉)
  • 医生老婆转行杀猪后,我离婚了一口气看完_小说后续在线阅读_无删减免费完结_
  • 因为买了二斤牛肉,我被儿媳逐出家门章节目录_宋川林淼养老完结爽文_小说后续在线阅读_无删减免费完结_
  • 如冷风吹凉月色(许栀夏盛南靳)全书免费_(许栀夏盛南靳)如冷风吹凉月色后续(许栀夏盛南靳)
  • 心动禁令小说(周斐任译)小说结尾+隐藏篇章(心动禁令)畅享阅读
  • 傲娇总裁低调宠小说(傲娇总裁低调宠)(丁千凝肖楚航)完整章节列表_笔趣阁
  • 终是庄周梦了蝶高口碑(南语沈聿珩乔清意)全书免费_(南语沈聿珩乔清意)终是庄周梦了蝶高口碑后续(南语沈聿珩乔清意)
  • 疯批小叔认错白月光,清醒的我杀疯了一口气完结_江寒小叔江南高分神作_小说后续在线阅读_无删减免费完结_
  • 重生未婚妻与我退婚后,傻眼了全文阅读_黎父沈旭沈浪隐藏剧情_小说后续在线阅读_无删减免费完结_
  • 在线阅读(重生八零,娇软美人把糙汉拿下了)温寒烟田政雄:结局+番外看点十足全文+后续
  • 全文爱已成殇情难自已完结精选作品(陆柯逸林舒月)列表_全文爱已成殇情难自已完结精选作品

    关于我们 | 我要投稿 | 免责申明

    Copyright © 2020-2022 ZhangShiYu.com Rights Reserved.豫ICP备2022013469号-1