Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zdavatz opened this issue Apr 14, 2021 · 8 comments
Open

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

zdavatz opened this issue Apr 14, 2021 · 8 comments

Comments

@zdavatz
Copy link

zdavatz commented Apr 14, 2021

  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
Copy link
Contributor

mrd commented Apr 14, 2021

  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
Copy link
Author

zdavatz commented Apr 14, 2021

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
Copy link
Author

zdavatz commented Apr 15, 2021

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
Copy link
Author

zdavatz commented Apr 15, 2021

  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
Copy link
Author

zdavatz commented Apr 15, 2021

  1. Ok, I installed Docker version Docker version 18.09.6, build 481bc77 according to:
  2. Install and Run Docker on Google Coral Dev Board f0cal/google-coral#32 (comment)
  3. now I get
  4. unknown flag: --gpus

@zdavatz
Copy link
Author

zdavatz commented Apr 15, 2021

  1. Ok, now doing
  2. sudo dockerd
  3. sudo make docker

@zdavatz
Copy link
Author

zdavatz commented Apr 15, 2021

  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
Copy link
Author

zdavatz commented Apr 15, 2021

  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
  1. This package libcudnn7=7.6.5.32-1+cuda10.0 does not seem to be available in Mendel Linux.
  2. Do I need to configure any special apt-sources?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants