Open stmkjp opened 6 years ago
Did you try reinstalling google protobuf? I'm interpreting this from your error.
Also, could you specifiy the wheel (from Jenkins nightly RPI zero builds) that you have used? I'll try replicating the issue.
Hi @varun19299 ,
no, I didn't try reinstalling google protobuf manually.
From fresh installation of debian on rpi zero,
1) I built opencv 3.3.1 on pi zero following this instruction: https://www.pyimagesearch.com/2017/09/04/raspbian-stretch-install-opencv-3-python-on-your-raspberry-pi/
2) downloaded and installed tensorflow wheel from http://ci.tensorflow.org/view/Nightly/job/nightly-pi-zero-python3/72/ , on python3.5 venv activated. (I had to rename the wheel file from tensorflow-1.4.0-cp34-none-any.whl to tensorflow-1.4.0-cp35-none-any.whl )
3) installed cython through pip
3) after that, I git cloned https://github.com/thtrieu/darkflow.git and build with
python setup.py build_ext --inplace
4) tried
./flow --imgdir=sample_img --model cfg/tiny-yolo-voc.cfg --load bin/tiny-yolo-voc.weights --gpu 0
with no joy.
@stmkjp If you haven't already, can you try uninstalling and then reinstalling the protobuf
package?
@stmkjp did you figure this out?
Hi, currently I'm trying to run darkflow on RPi zero with it's camera installed.
detection using darkflow is a little bit slow but working quite well on pi 3. (took several hour to compile opencv3 though) So I thought it's similar on pi zero, but it wasn't.
I managed to install opencv 3.3.1 (took a day to build) and tensorflow ( using
tensorflow-1.4.0-cp35-none-any.whl renamed from tensorflow-1.4.0-cp34-none-any.whl ), and they are working fine (sort of... tensorflow shows some warning due to python version incompatibility - but it's working anyway according to Pete Warden's blog: https://petewarden.com/2017/08/20/cross-compiling-tensorflow-for-the-raspberry-pi )
built darkflow with
python setup.py build_ext --inplace
without any problem. ( it's actually python3, for I'm on venv with python3 )
But when I try to check if detection works with following commands:
./flow --imgdir=sample_img --model cfg/tiny-yolo-voc.cfg --load bin/tiny-yolo-voc.weights --gpu 0
it gives error:
I have no idea what's wrong and how to resolve this. Could you help?