edgetpu icon indicating copy to clipboard operation
edgetpu copied to clipboard

Update "Install the PyCoral library" instructions

Open Lockie85 opened this issue 1 year ago • 9 comments

Description

Hey, firstly I just want to note I've tried following numerous guides and nothing appears to work.

Setup: Intel NUC, NUC11PAHi7 32GB+1TB Ubuntu Server 22.04.2 LTS Linux ubuntu-whytings 5.15.0-75-generic #82-Ubuntu SMP Tue Jun 6 23:10:23 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Request: Can the following instructions be updated to work with varying setups and maybe a bit more direction if possible: https://coral.ai/docs/accelerator/get-started/#2-install-the-pycoral-library

From what I can tell it requires old versions of things to function. If that is the only way it can possibly function in the short term then it feels like that should ideally be a part of the instructions plus alittle extra direction for n00bs to get it working.

When I get to running command: sudo apt-get install python3-pycoral

I get the following error:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python3-pycoral : Depends: python3-tflite-runtime (= 2.5.0.post1) but it is not going to be installed
                   Depends: python3 (< 3.10) but 3.10.6-1~22.04 is to be installed
E: Unable to correct problems, you have held broken packages.

I can't find a way to get around this problem.

Many Thanks

Lockie85 avatar Jun 24 '23 18:06 Lockie85

sudo apt-get install python3-pycoral

HI, which python version are you using? If its python3.10, the command won't work. Please try to build wheels for it.

Thanks!!

hjonnala avatar Jun 26 '23 16:06 hjonnala

sudo apt-get install python3-pycoral

HI, which python version are you using? If its python3.10, the command won't work. Please try to build wheels for it.

Thanks!!

Thanks for the reply but I don't understand how to build wheels. Are the instructions on what exact commands need to be run?

Lockie85 avatar Jun 26 '23 17:06 Lockie85

What do you want to do with pycoral? You just want to learn AI or you want to perform some specific task? Google coral team doesn't respect us and dont care that it doesn't work. This pycoral library is real garbage and you don't need it at all. There is no documentation, updates and support for it.

easy-and-simple avatar Jun 27 '23 14:06 easy-and-simple

What do you want to do with pycoral? You just want to learn AI or you want to perform some specific task? Google coral team doesn't respect us and dont care that it doesn't work. This pycoral library is real garbage and you don't need it at all. There is no documentation, updates and support for it.

I could very well be mislead. What I'm trying to do is run Frigate NVR and utilise the Coral USB for object detection. This would be running on my Intel NUC which is running Ubuntu.

Am I looking to do the right thing? Or just making life hard for myself :)

Lockie85 avatar Jun 27 '23 15:06 Lockie85

To run frigate is enough to install coral driver sudo apt-get install libedgetpu1-std because frigate runs in docker container. This means that all required to have coral acceleration in frigate is installed inside frigate docker container. You could use libedgetpu1-max instead libedgetpu1-std that will give you better performance, but because coral device will run continuously it could overheat and hang/freeze

easy-and-simple avatar Jun 27 '23 16:06 easy-and-simple

I use Frigate as well, and it's working perfectly on a kubernetes node. However I would like to be able to run some pycoral projects, and I cannot install it, with the same error as above. Tried many things that were suggested online to no avail. Even installing python 3.9.x doesn't seem to help.

vavallee-wp avatar Jul 09 '23 14:07 vavallee-wp

Make sure you have python 3.9.17 installed. If not get it. Then

Perform the following- pyenv versions pyenv local 3.9.17

Verify your work $ pyenv versions system

  • 3.9.17 (set by /home/******/.python-version)

Then- pip install https://google-coral.github.io/py-repo/tflite-runtime/tflite_runtime-2.5.0.post1-cp39-cp39-linux_x86_64.whl

pip install https://github.com/google-coral/pycoral/releases/download/v2.0.0/pycoral-2.0.0-cp39-cp39-linux_x86_64.whl

That'll do it.

victoryred avatar Aug 19 '23 19:08 victoryred

I used python 3.8.19 and installed by this:

pip install https://github.com/google-coral/pycoral/releases/download/v2.0.0/pycoral-2.0.0-cp38-cp38-linux_x86_64.whl
pip install https://github.com/google-coral/pycoral/releases/download/v2.0.0/tflite_runtime-2.5.0.post1-cp38-cp38-linux_x86_64.whl

Dependency for different platform and python version could be found in https://github.com/google-coral/pycoral/releases

helloworlde avatar Jul 10 '24 00:07 helloworlde