@胖煜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