lmingyin / HOI-RT

This is the repo for an open project named detecting human object interactions in real-time
15 stars 3 forks source link

Questions about the caffe environment #1

Open Smicon opened 6 years ago

Smicon commented 6 years ago

@lmingyin Thank you very much for such a good code and paper, I can't wait to see it again and see the effect of the paper. But after almost a few attempts, I failed in the environment configuration. The most recent time I used the official caffe image to open a container, which was executed as you said, and this error occurred when executing make -j8: root@ecdc968b55d9:/data/detection/HOI-RT-master# make -j8 gcc -Iinclude/ -Isrc/ -DOPENCVpkg-config --cflags opencv-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Ofast -DOPENCV -DGPU -DCUDNN -c ./src/gemm.c -o obj/gemm.o gcc -Iinclude/ -Isrc/ -DOPENCVpkg-config --cflags opencv-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Ofast -DOPENCV -DGPU -DCUDNN -c ./src/utils.c -o obj/utils.o gcc -Iinclude/ -Isrc/ -DOPENCVpkg-config --cflags opencv-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Ofast -DOPENCV -DGPU -DCUDNN -c ./src/cuda.c -o obj/cuda.o gcc -Iinclude/ -Isrc/ -DOPENCVpkg-config --cflags opencv-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Ofast -DOPENCV -DGPU -DCUDNN -c ./src/deconvolutional_layer.c -o obj/deconvolutional_layer.o gcc -Iinclude/ -Isrc/ -DOPENCVpkg-config --cflags opencv-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Ofast -DOPENCV -DGPU -DCUDNN -c ./src/convolutional_layer.c -o obj/convolutional_layer.o gcc -Iinclude/ -Isrc/ -DOPENCVpkg-config --cflags opencv-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Ofast -DOPENCV -DGPU -DCUDNN -c ./src/list.c -o obj/list.o gcc -Iinclude/ -Isrc/ -DOPENCVpkg-config --cflags opencv-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Ofast -DOPENCV -DGPU -DCUDNN -c ./src/image.c -o obj/image.o gcc -Iinclude/ -Isrc/ -DOPENCVpkg-config --cflags opencv-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Ofast -DOPENCV -DGPU -DCUDNN -c ./src/activations.c -o obj/activations.o In file included from ./src/image.c:1:0: ./src/image.h:9:39: fatal error: opencv2/videoio/videoio_c.h: No such file or directory compilation terminated. Makefile:79: recipe for target 'obj/image.o' failed make: *** [obj/image.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from src/network.h:6:0, from src/activation_layer.h:6, from include/darknet.h:500, from ./src/list.h:3, from ./src/utils.h:5, from ./src/gemm.c:2: src/image.h:9:39: fatal error: opencv2/videoio/videoio_c.h: No such file or directory compilation terminated. In file included from src/network.h:6:0, from src/activation_layer.h:6, from include/darknet.h:500, from ./src/cuda.h:4, from ./src/cuda.c:5: src/image.h:9:39: fatal error: opencv2/videoio/videoio_c.h: No such file or directory compilation terminated. In file included from src/network.h:6:0, from src/activation_layer.h:6, from include/darknet.h:500, from ./src/cuda.h:4, from ./src/convolutional_layer.h:4, from ./src/convolutional_layer.c:1: src/image.h:9:39: fatal error: opencv2/videoio/videoio_c.h: No such file or directory compilation terminated. In file included from src/network.h:6:0, from src/activation_layer.h:6, from include/darknet.h:500, from ./src/list.h:3, from ./src/list.c:3: src/image.h:9:39: fatal error: opencv2/videoio/videoio_c.h: No such file or directory compilation terminated. In file included from src/network.h:6:0, from src/activation_layer.h:6, from include/darknet.h:500, from ./src/activations.h:3, from ./src/activations.c:1: src/image.h:9:39: fatal error: opencv2/videoio/videoio_c.h: No such file or directory Makefile:79: recipe for target 'obj/gemm.o' failed compilation terminated. make: *** [obj/gemm.o] Error 1 In file included from src/network.h:6:0, from src/activation_layer.h:6, from include/darknet.h:500, from ./src/list.h:3, from ./src/utils.h:5, from ./src/utils.c:11: src/image.h:9:39: fatal error: opencv2/videoio/videoio_c.h: No such file or directory compilation terminated. In file included from src/network.h:6:0, from src/activation_layer.h:6, from include/darknet.h:500, from ./src/cuda.h:4, from ./src/deconvolutional_layer.h:4, from ./src/deconvolutional_layer.c:1: src/image.h:9:39: fatal error: opencv2/videoio/videoio_c.h: No such file or directory compilation terminated. Makefile:79: recipe for target 'obj/cuda.o' failed make: *** [obj/cuda.o] Error 1 Makefile:79: recipe for target 'obj/activations.o' failed make: *** [obj/activations.o] Error 1 Makefile:79: recipe for target 'obj/convolutional_layer.o' failed make: *** [obj/convolutional_layer.o] Error 1 Makefile:79: recipe for target 'obj/list.o' failed make: *** [obj/list.o] Error 1 Makefile:79: recipe for target 'obj/deconvolutional_layer.o' failed make: *** [obj/deconvolutional_layer.o] Error 1 Makefile:79: recipe for target 'obj/utils.o' failed make: *** [obj/utils.o] Error 1

I think that using the official caffe image, it should be reasonable that there should be no environmental problems. Can you tell me how to solve this problem? thank you very much.

lmingyin commented 6 years ago

Can you tell me which step you can't do , this project need no caffe image, it's written only by C language!

Smicon commented 6 years ago

Thank you for your reply. I first clone this project, and as you said, I modified the makefile in HOI-RT: GPU=1 CUDNN=1 OPENCV=1 and executed : make -j8 I have encountered the above error. The environment I use is a image of bvlc/caffe.

Smicon commented 6 years ago

Maybe the error message above is a bit messy, and my screenshot is presented to you. Where root@ecdc968b55d9 is a container for the caffe image. image image

lmingyin commented 6 years ago

I guess it was cause by OpenCV version, the YOLO and Darknet was worked OK on OpenCV 2.4.xx, not 3.x and I participate the project used 2.4.xx too. So, I recommend you first make install opencv 2.4.xx,and install and make YOLO, with OpenCV=1, if it will be worked OK, then you can solve the problem.

lmingyin commented 6 years ago

You can refer this Cant make the YOLO when OPENCV=1 Ubuntu 17.10, and make sure you can run YOLO on your environment before you run this project.