[Object Tracking][环境配置流程][Ubuntu16.04]ATOM【CVPR2019】pytracking

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda install pytorch torchvision cudatoolkit=10.0
[Object Tracking][环境配置流程][Ubuntu16.04]ATOM【CVPR2019】pytracking_第1张图片
环境配好后所遇问题:
test:python run_tracker.py dimp dimp50 --dataset otb --sequence Soccer
Evaluating 1 trackers on 1 sequences
Tracker: dimp dimp50 None , Sequence: Soccer
/home/zlz/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/nn/functional.py:2494: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details.
“See the documentation of nn.Upsample for details.”.format(mode))
Using /tmp/torch_extensions as PyTorch extensions root…
Detected CUDA files, patching ldflags
Emitting ninja build file /tmp/torch_extensions/prroi_pooling/build.ninja…
Building extension module prroi_pooling…
[1/3] :/usr/local/cuda-10.1/bin/nvcc -DTORCH_EXTENSION_NAME=prroi_pooling -DTORCH_API_INCLUDE_EXTENSION_H -isystem /home/zlz/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/include -isystem /home/zlz/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -isystem /home/zlz/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/include/TH -isystem /home/zlz/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/include/THC -isystem :/usr/local/cuda-10.1/include -isystem /home/zlz/anaconda3/envs/pytracking/include/python3.7m -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS
-D__CUDA_NO_HALF_CONVERSIONS
_ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_61,code=sm_61 --compiler-options ‘-fPIC’ -std=c++11 -c /media/zlz/dataC1/pytracking/ltr/external/PreciseRoIPooling/pytorch/prroi_pool/src/prroi_pooling_gpu_impl.cu -o prroi_pooling_gpu_impl.cuda.o
FAILED: prroi_pooling_gpu_impl.cuda.o
:/usr/local/cuda-10.1/bin/nvcc -DTORCH_EXTENSION_NAME=prroi_pooling -DTORCH_API_INCLUDE_EXTENSION_H -isystem /home/zlz/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/include -isystem /home/zlz/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -isystem /home/zlz/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/include/TH -isystem /home/zlz/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/include/THC -isystem :/usr/local/cuda-10.1/include -isystem /home/zlz/anaconda3/envs/pytracking/include/python3.7m -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS_ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_61,code=sm_61 --compiler-options ‘-fPIC’ -std=c++11 -c /media/zlz/dataC1/pytracking/ltr/external/PreciseRoIPooling/pytorch/prroi_pool/src/prroi_pooling_gpu_impl.cu -o prroi_pooling_gpu_impl.cuda.o
/bin/sh: 1: :/usr/local/cuda-10.1/bin/nvcc: not found
[2/3] c++ -MMD -MF prroi_pooling_gpu.o.d -DTORCH_EXTENSION_NAME=_prroi_pooling -DTORCH_API_INCLUDE_EXTENSION_H -isystem /home/zlz/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/include -isystem /home/zlz/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -isystem /home/zlz/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/include/TH -isystem /home/zlz/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/include/THC -isystem :/usr/local/cuda-10.1/include -isystem /home/zlz/anaconda3/envs/pytracking/include/python3.7m -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++11 -c /media/zlz/dataC1/pytracking/ltr/external/PreciseRoIPooling/pytorch/prroi_pool/src/prroi_pooling_gpu.c -o prroi_pooling_gpu.o
FAILED: prroi_pooling_gpu.o
c++ -MMD -MF prroi_pooling_gpu.o.d -DTORCH_EXTENSION_NAME=_prroi_pooling -DTORCH_API_INCLUDE_EXTENSION_H -isystem /home/zlz/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/include -isystem /home/zlz/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -isystem /home/zlz/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/include/TH -isystem /home/zlz/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/include/THC -isystem :/usr/local/cuda-10.1/include -isystem /home/zlz/anaconda3/envs/pytracking/include/python3.7m -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++11 -c /media/zlz/dataC1/pytracking/ltr/external/PreciseRoIPooling/pytorch/prroi_pool/src/prroi_pooling_gpu.c -o prroi_pooling_gpu.o
In file included from /home/zlz/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h:5:0,
from /media/zlz/dataC1/pytracking/ltr/external/PreciseRoIPooling/pytorch/prroi_pool/src/prroi_pooling_gpu.c:15:
/home/zlz/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/include/c10/cuda/CUDAStream.h:6:30: fatal error: cuda_runtime_api.h: 没有那个文件或目录
compilation terminated.
ninja: build stopped: subcommand failed.
Error building extension ‘_prroi_pooling’
Done

conda切换回默认源conda config --remove-key channels

解决fatal error: cuda_runtime_api.h: 没有那个文件或目录问题:
locate cuda_runtime_api.h没有该文件,但已添加cuda环境变量。
解决方法:重新安装cuda10.0,安装过程中不添加链接文件夹cuda。有一项选no。

运行:python run_tracker.py atom default --dataset otb --sequence Soccer --debug 0 --threads 8
debug=0无画面
debug=8:有画面,有响应图,有loss

你可能感兴趣的:(cuda,ubuntu,anaconda)