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

Failed to prepare for TPU #23

Open
Snail124 opened this issue Oct 1, 2022 · 6 comments
Open

Failed to prepare for TPU #23

Snail124 opened this issue Oct 1, 2022 · 6 comments
Assignees
Labels
comp:model Model related isssues Hardware:Coral Camera Coral Camera issues Hardware:Dev Board Mini Coral Dev Board Mini Issues subtype:Mendel Linux Mendel Linux Build/installation issues type:support Support question or issue

Comments

@Snail124
Copy link

Snail124 commented Oct 1, 2022

Description

I tried to retrain an "EfficientDet-Lite" detection with the "Retrain EfficientDet-Lite detector for the Edge TPU (TF2)" guide (https://colab.research.google.com/github/google-coral/tutorials/blob/master/retrain_efficientdet_model_maker_tf2.ipynb) and to use it with this example object tracker.
When I try to execute the detect.py file with the retrained model, I get the error: "Failed to prepare for TPU". Does somebody know a solution for this problem? Or is there any other option to retrain a model to use it with this detect.py file?

Click to expand!

Issue Type

Support

Operating System

Mendel Linux

Coral Device

Dev Board Mini, Coral Camera

Other Devices

No response

Programming Language

Python 3.7

Relevant Log Output

RuntimeError: Failed to prepare for TPU. Failed precondition: Package requires runtime version (14), which is newer than this runtime version (13).Node number 4 (EdgeTpuDelegateForCustomOp) failed to prepare.
@google-coral-bot google-coral-bot bot added comp:model Model related isssues Hardware:Coral Camera Coral Camera issues Hardware:Dev Board Mini Coral Dev Board Mini Issues subtype:Mendel Linux Mendel Linux Build/installation issues type:support Support question or issue labels Oct 1, 2022
@hjonnala
Copy link
Contributor

hjonnala commented Oct 4, 2022

Hi @Snail124 this project hasn't been implemented for Dev Board Mini.

RuntimeError: Failed to prepare for TPU. Failed precondition: Package requires runtime version (14), which is newer than this runtime version (13).Node number 4 (EdgeTpuDelegateForCustomOp) failed to prepare.

Please update the packages to resolve the failed to preprare for TPU error. https://coral.ai/docs/dev-board-mini/get-started/#6-update-the-mendel-software

sudo apt-get update
sudo apt-get dist-upgrade
sudo reboot now

@Snail124
Copy link
Author

Snail124 commented Oct 5, 2022

@hjonnala thank you for your answer. I did the update and rebooted the Dev Board Mini. Then I tried to run the object detection with the default .tflite file. This worked, but with the retrained model, I got the same error. Then I tried to reflash the board with the latest OS version (https://coral.ai/docs/dev-board-mini/reflash/) , but the Dev Board Mini wasn't detected by the flash.sh script. The fastboot script also didn't detect the board, but the LED turns to red. Now the Board doesn't boot anymore. When I try to boot the Board, the LED stays green-red and doesn't turn to green. Is there an solution to get the board working again? Or is it broken?

@hjonnala
Copy link
Contributor

hjonnala commented Oct 6, 2022

please try flashing the board using force boot method: https://coral.ai/docs/dev-board-mini/reflash/#force-boot-into-fastboot-mode

@Snail124
Copy link
Author

Snail124 commented Oct 6, 2022

I tried to flash the Board using the force bood method. The LED turned to red, but the board wasn't detected by the linux devices. I executed it with 2 different Raspberry Pi's and with one MX-Linux computer and with different USB-C cables, but it didn't work. Is there another solution?

@Snail124
Copy link
Author

Snail124 commented Oct 6, 2022

I reflashed the board, but I had to interrupt the flash script. When I power the board, no LED lights.

@Snail124
Copy link
Author

Hi @hjonnala, after I had to cancel the fastboot flash script, the red and green LEDs do no longer light up when I power the board, because the Dev Board Mini does no longer boot. The operating system is probably no longer complete after the script has been aborted. I have already tried to start the fastboot mode a few times, but it does not work. I also tried to power the board, connected with an screen, but it also does not work. Is there another way to reinstall the operating system?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:model Model related isssues Hardware:Coral Camera Coral Camera issues Hardware:Dev Board Mini Coral Dev Board Mini Issues subtype:Mendel Linux Mendel Linux Build/installation issues type:support Support question or issue
Projects
None yet
Development

No branches or pull requests

2 participants