duangenquan / YoloV2NCS

This project shows how to run tiny yolo v2 with movidius stick.
148 stars 63 forks source link

Raspberry #17

Open keldrom opened 6 years ago

keldrom commented 6 years ago

How can I use make on a raspberry with raspbian? I think that the makefile has to be changed. This is my output:

Compiling: src/PythonWrapper.cpp src/PythonWrapper.cpp: In member function ‘boost::python::list YoloDetector::Detect(boost::python::api::object, int, int, int, int, int, int, float, float, int)’: src/PythonWrapper.cpp:37:66: error: invalid conversion from ‘long int*’ to ‘Py_ssize_t* {aka int*}’ [-fpermissive] bool isReadBuffer = !PyObject_AsReadBuffer(obj.ptr(), &buffer, &buflen); ^~~~~~~ In file included from /usr/include/python3.5m/Python.h:122:0, from /usr/include/boost/python/detail/wrap_python.hpp:151, from /usr/include/boost/python/detail/prefix.hpp:13, from /usr/include/boost/python/args.hpp:8, from /usr/include/boost/python.hpp:11, from src/PythonWrapper.cpp:2: /usr/include/python3.5m/abstract.h:487:22: note: initializing argument 3 of ‘int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)’ PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ Makefile:35: recipe for target 'src/PythonWrapper.o' failed make: *** [src/PythonWrapper.o] Error 1

PINTO0309 commented 6 years ago

@keldrom below.

11

keldrom commented 6 years ago

Perfect, the make is done successfully. Now the problem is that when I try to compile with mvNCCompile the system gives Error importing caffe. There is a way to fix it?

PINTO0309 commented 6 years ago

@keldrom https://ncsforum.movidius.com/discussion/comment/2241/ [POINT] Check the environment variable path.

PINTO0309 commented 6 years ago

@keldrom Please try below. sudo apt install caffe-cpu