1.在使用diffusionDet的时候,需要安装detectron2。我使用docker

docker run --gpus all -itd nvcr.io/nvidia/pytorch:21.07-py3

cuda:11.4 pytorch:11.10

使用Pre-Built的detectron2,版本使用最接近的,即11.3的cuda,torch为11.10

2.运行diffusionDet的demo.py,报错:

ImportError: libtorch_cuda_cu.so: cannot open shared object file: No such file or directory

网上查找教程,说检查mmcv mmdet mmdet3d有没有安装,在本文出现的情况中,反复重新安装依旧没有用

本文具体问题:

ImportError: libtorch_cpu.so: cannot open shared object file: No such file or directory · Issue #1365 · facebookresearch/detectron2 (github.com)中提到了针对本文问题的解决方案。

注意在pre-built detectron2中提到:

使用下列安装命令解决:

python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'
# (add --user if you don't have permission)
Logo

欢迎来到FlagOS开发社区,这里是一个汇聚了AI开发者、数据科学家、机器学习爱好者以及业界专家的活力平台。我们致力于成为业内领先的Triton技术交流与应用分享的殿堂,为推动人工智能技术的普及与深化应用贡献力量。

更多推荐