添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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

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

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!!

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?

ricardodeazambuja, johnathan-greenaway, Powerlax, ldhagen, pr0gr4mmer4fun, and dersch81 reacted with thumbs up emoji magicalhobo, mrkking, and geezagonk reacted with thumbs down emoji All reactions

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 :)

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

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.

    mrkking, vinot, emilmerle, helloworlde, GeorgiiGoriachev, and giyoon21c reacted with thumbs up emoji Lorttexwolf reacted with laugh emoji All reactions

    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

    Looks like the tflite runtime link needs update.

    For 3.9.17 install:

    pip install https://github.com/google-coral/pycoral/releases/download/v2.0.0/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