packyan/PyTorch-YOLOv3-kitti

RuntimeError: cuda runtime error (48) : no kernel image is available for execution on the device

Opened this issue · 0 comments

MY ENVIROMENT:

Name Version Build Channel

_libgcc_mutex 0.1 conda_forge https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
_openmp_mutex 4.5 2_kmp_llvm https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
blas 2.17 openblas https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
ca-certificates 2023.01.10 h06a4308_0 anaconda
certifi 2021.10.8 pypi_0 pypi
cffi 1.10.0 py35_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
chardet 4.0.0 pypi_0 pypi
cudatoolkit 7.5 2 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
cycler 0.10.0 pypi_0 pypi
freetype 2.5.5 2 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
future 0.18.3 pypi_0 pypi
idna 2.10 pypi_0 pypi
imageio 2.9.0 pypi_0 pypi
jbig 2.1 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
jpeg 9b 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
jsonpatch 1.32 pypi_0 pypi
jsonpointer 2.3 pypi_0 pypi
kiwisolver 1.1.0 pypi_0 pypi
libblas 3.8.0 17_openblas https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
libcblas 3.8.0 17_openblas https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
libffi 3.2.1 1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
libgcc-ng 12.2.0 h65d4601_19 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
libgfortran 3.0.0 1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
libgfortran-ng 7.5.0 h14aa051_20 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
libgfortran4 7.5.0 h14aa051_20 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
liblapack 3.8.0 17_openblas https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
liblapacke 3.8.0 17_openblas https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
libopenblas 0.3.10 h5a2b251_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libpng 1.6.30 1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
libsodium 1.0.10 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
libstdcxx-ng 12.2.0 h46fd767_19 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
libtiff 4.0.6 3 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
llvm-openmp 12.0.1 h4bd325d_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
matplotlib 2.1.0 pypi_0 pypi
mkl 2022.0.1 h8d4b97c_803 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
networkx 2.4 pypi_0 pypi
ninja 1.7.2 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
numpy 1.13.1 py35_nomkl_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
olefile 0.44 py35_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
openblas 0.2.19 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
openssl 1.0.2l 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
pillow 7.2.0 pypi_0 pypi
pip 20.3.4 pypi_0 pypi
pycparser 2.18 py35_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
python 3.5.4 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
pytorch 0.4.1 py35_py27__9.0.176_7.1.2_2 pytorch
pytz 2022.7.1 pypi_0 pypi
pywavelets 1.1.1 pypi_0 pypi
pyzmq 16.0.2 py35_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
readline 6.2 2 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
requests 2.25.1 pypi_0 pypi
scikit-image 0.15.0 pypi_0 pypi
setuptools 36.4.0 py35_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
six 1.10.0 py35_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
sqlite 3.13.0 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
tbb 2021.7.0 h924138e_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
tk 8.5.18 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
torchfile 0.1.0 pypi_0 pypi
torchvision 0.2.0 pypi_0 pypi
tornado 4.5.2 py35_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
urllib3 1.26.9 pypi_0 pypi
version 0.1.0 pypi_0 pypi
visdom 0.1.8.3 pypi_0 pypi
websocket-client 0.59.0 pypi_0 pypi
wheel 0.29.0 py35_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
xz 5.2.3 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
zeromq 4.1.5 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
zlib 1.2.11 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free

QUESTION:
(pytroch-yolov3) siat@siat-Precision-3640-Tower:~/work/object_detection/PyTorch-YOLOv3-kitti-master$ python detect.py
Config:
Namespace(batch_size=1, class_path='./data/kitti.names', conf_thres=0.8, config_path='./config/yolov3-kitti.cfg', image_folder='./data/samples/', img_size=416, n_cpu=4, nms_thres=0.4, use_cuda=True, weights_path='./weights/kitti.weights')
/home/siat/Downloads/ENTER/envs/pytroch-yolov3/lib/python3.5/site-packages/torch/nn/functional.py:52: UserWarning: size_average and reduce args will be deprecated, please use reduction='elementwise_mean' instead.
warnings.warn(warning.format(ret))
model path: ./weights/kitti.weights
using cuda model
data size : 20

Performing object detection:
THCudaCheck FAIL file=/opt/conda/conda-bld/pytorch_1535490206202/work/aten/src/THC/THCGeneral.cpp line=663 error=8 : invalid device function
Traceback (most recent call last):
File "detect.py", line 72, in
detections = model(input_imgs)
File "/home/siat/Downloads/ENTER/envs/pytroch-yolov3/lib/python3.5/site-packages/torch/nn/modules/module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "/home/siat/work/object_detection/PyTorch-YOLOv3-kitti-master/models.py", line 256, in forward
x = module(x)
File "/home/siat/Downloads/ENTER/envs/pytroch-yolov3/lib/python3.5/site-packages/torch/nn/modules/module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "/home/siat/Downloads/ENTER/envs/pytroch-yolov3/lib/python3.5/site-packages/torch/nn/modules/container.py", line 91, in forward
input = module(input)
File "/home/siat/Downloads/ENTER/envs/pytroch-yolov3/lib/python3.5/site-packages/torch/nn/modules/module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "/home/siat/Downloads/ENTER/envs/pytroch-yolov3/lib/python3.5/site-packages/torch/nn/modules/activation.py", line 447, in forward
return F.leaky_relu(input, self.negative_slope, self.inplace)
File "/home/siat/Downloads/ENTER/envs/pytroch-yolov3/lib/python3.5/site-packages/torch/nn/functional.py", line 755, in leaky_relu
return torch._C._nn.leaky_relu(input, negative_slope)
RuntimeError: cuda runtime error (48) : no kernel image is available for execution on the device at /opt/conda/conda-bld/pytorch_1535490206202/work/aten/src/THCUNN/generic/LeakyReLU.cu:29