gluon-cv: OSError: libcudart.so.9.0: cannot open shared object file: No such file or directory

when i was trying to prepare voc dataset for training pre trained model https://gluon-cv.mxnet.io/build/examples_datasets/detection_custom.html#derive-from-pascal-voc-format i got this error OSError: libcudart.so.9.0: cannot open shared object file: No such file or directory from gluoncv.data import VOCDetection class VOCLike(VOCDetection): CLASSES = ['iris'] def __init__(self, root, splits, transform=None, index_map=None, preload_label=True): super(VOCLike, self).__init__(root, splits, transform, index_map, preload_label) dataset = VOCLike(root='/home/dell/Bureau/myDataset', splits=((2019, 'train'),)) print(dataset[0][1]) Knowing that I can’t use cuda or gpu because i haven’t a graphic card nvidia python 3.6 os ubuntu 18 Pillow-5.4.1 gluoncv-0.4.0 scipy-1.2.1 tqdm-4.31.1

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

make sure you cuda version is 9.0. And add below to ~/.bashrc.

export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH

run

source  ~/.bashrc

Add below to /etc/ld.so.conf.d/cuda.conf

/usr/local/cuda/lib64

run

sudo ldconfig

@xinyu-intel yes, it does work

@essalahsouad try “import mxnet as mx”, does this work well?