digitalbrain79 / pyyolo

Simple python wrapper for YOLO.
126 stars 65 forks source link

Compiling without GPU #13

Closed Nicolas99-9 closed 7 years ago

Nicolas99-9 commented 7 years ago

I don't have any GPU. Is it possible to use your wrapper ? I cannot compile it (missing cuda files)

digitalbrain79 commented 7 years ago

I changed GPU=0 in Makefile by default. Try again.

Nicolas99-9 commented 7 years ago

Now I have a problem with python setup.py build :

python setup.py build
running build
running build_ext
building 'pyyolo' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/nicolas/miniconda2/lib/python2.7/site-packages/numpy/core/include -I/home/nicolas/miniconda2/include/python2.7 -c module.c -o build/temp.linux-x86_64-2.7/module.o
In file included from libyolo.h:3:0,
                 from module.c:5:
./darknet/src/image.h:107:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
 image **load_alphabet();
 ^
In file included from /home/nicolas/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:27:0,
                 from /home/nicolas/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from module.c:3:
/home/nicolas/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1453:1: warning: ‘_import_array’ defined but not used [-Wunused-function]
 _import_array(void)
 ^
gcc -pthread -shared -L/home/nicolas/miniconda2/lib -Wl,-rpath=/home/nicolas/miniconda2/lib,--no-as-needed build/temp.linux-x86_64-2.7/module.o -L. -L/usr/local/cuda/lib64 -L/usr/local/ -L/home/nicolas/miniconda2/lib -lyolo -lcuda -lcudart -lcublas -lcurand -lcudnn -lpython2.7 -o build/lib.linux-x86_64-2.7/pyyolo.so
/usr/bin/ld : ne peut trouver -lcuda
/usr/bin/ld : ne peut trouver -lcudart
/usr/bin/ld : ne peut trouver -lcublas
/usr/bin/ld : ne peut trouver -lcurand
/usr/bin/ld : ne peut trouver -lcudnn
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
digitalbrain79 commented 7 years ago

I made setup.py for non-GPU. Refer to the README.

Nicolas99-9 commented 7 years ago

Thank your for your help, it works well now