AdaptiveCity / deepdish

Video object recognition, tracking and counting
GNU General Public License v3.0
13 stars 3 forks source link

Has this code been run/tested on a coral.ai Board? #1

Open zdavatz opened 3 years ago

zdavatz commented 3 years ago
  1. Thank you for the repository!
  2. Has this code been run/tested on an coral.ai Board?
  3. Do the README scripts refer to being run on a Raspberry Pi Board?
mrd commented 3 years ago
  1. You're welcome
  2. Yes!
  3. The examples could be run on a Linux PC or a Raspberry Pi however the third example specifically shows the --edgetpu option for running on the Coral board.

One annoyance with Coral is that Google has changed its interface/installation a bit over the course of a year. I've just pushed my latest Dockerfile.rpi and build-rpi.sh (example) scripts to show what worked for installing Coral under Docker in Hypriot OS on Raspberry Pi 4.

zdavatz commented 3 years ago

Thank you. Do I need to install Docker on my Coral.ai Board to be able to run your Code? I would like to run the code straight on my Coral.ai board if that is possible.

zdavatz commented 3 years ago

For the 3rd example can I view the output through gstreamer in my webbrowser as well or do I have to attach a monitor?

zdavatz commented 3 years ago
  1. Ok, I am now trying this:
  2. ./run.sh python3 deepdish.py --edgetpu --model=detectors/mobilenet/ssd_mobilenet_v2_coco_quant_postprocess_edgetpu.tflite --labels=detectors/mobilenet/labels.txt --encoder-model=encoders/mars-64x32x3.pb --wanted-labels car,bus,truck,bicycle
  3. but it results in
  4. ./run.sh: line 3: docker: command not found
  5. I did do sudo apt-get install docker
zdavatz commented 3 years ago
  1. Ok, I installed Docker version Docker version 18.09.6, build 481bc77 according to:
  2. https://github.com/f0cal/google-coral/issues/32#issuecomment-505442386
  3. now I get
  4. unknown flag: --gpus
zdavatz commented 3 years ago
  1. Ok, now doing
  2. sudo dockerd
  3. sudo make docker
zdavatz commented 3 years ago
  1. Ok, now
  2. # make docker
  3. is running into this error:
    Step 3/32 : RUN apt-get update -y && apt-get upgrade -y
    ---> Running in 0f0392dec72f
    standard_init_linux.go:207: exec user process caused "exec format error"
    The command '/bin/bash -c apt-get update -y && apt-get upgrade -y' returned a non-zero code: 1
    make: *** [Makefile:13: docker] Error 1
zdavatz commented 3 years ago
  1. Ok, then
  2. commenting out
  3. line 4 #RUN apt-get update -y && apt-get upgrade - in Dockerfile results in
    standard_init_linux.go:207: exec user process caused "exec format error"
    The command '/bin/bash -c apt-get install -y --allow-downgrades             git             python3-matplotlib             python3-numpy             python3-sklearn             python3-opencv             fonts-freefont-ttf             vim less wget             libcudnn7=7.6.5.32-1+cuda10.0 # force install of cuda10.0 compatible package' returned a non-zero code: 1
    make: *** [Makefile:13: docker] Error 1
  4. This package libcudnn7=7.6.5.32-1+cuda10.0 does not seem to be available in Mendel Linux.
  5. Do I need to configure any special apt-sources?