YOLOv3 fatal error:


#1

Has anyone implemented Yolo version 3 in neptune environment? I get the following error when attempting to run this lines of code:

# Build gpu version darknet
!cd darknet && sed '1 s/^.*$/GPU=1/; 2 s/^.*$/CUDNN=1/' -i Makefile

# -j <The # of cpu cores to use>. Chang 999 to fit your environment. Actually i used '-j 50'.
!cd darknet && make -j 50 -s
!cp darknet/darknet darknet_gpu

n file included from ./src/cuda.h:4:0,
             from ./src/convolutional_layer.h:4,
             from ./src/convolutional_layer.c:1:
include/darknet.h:12:24: fatal error: curand.h: No such file or directory
compilation terminated.
Makefile:89: recipe for target 'obj/convolutional_layer.o' failed
make: *** [obj/convolutional_layer.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from ./src/activations.h:3:0,
             from ./src/crnn_layer.h:5,
             from ./src/crnn_layer.c:1:
include/darknet.h:12:24: fatal error: curand.h: No such file or directory
compilation terminated.
Makefile:89: recipe for target 'obj/crnn_layer.o' failed
make: *** [obj/crnn_layer.o] Error 1
In file included from ./src/utils.h:5:0,
             from ./src/gemm.c:2:

#2

Hi @dskswu,

It seems that some cuda dev libraries are required - we do not install them by default.

I haven’t tested it, but you should probably install cuda from nvidia distribution: https://developer.nvidia.com/cuda-90-download-archive

Best,
Piotr


#3

Thank you piotr. I imagine this would have be installed on my local environment vice neptune. Correct?


#4

I’m not sure if I understood your question - if you have required libraries installed on your local machine, then neptune run will work. If you want to compile darknet via neptune send or in a notebook you need to install the required libraries on the remote machine first.


#5

I was confirming whether or not I could run darknet via neptune.