Post detection

download image tensor fail

pi@reachy:~/jo/project-posenet $ python3 simple_pose.py
--2020-12-21 12:51:36--  <https://upload.wikimedia.org/wikipedia/commons/thumb/3/38/Hindu_marriage_ceremony_offering.jpg/640px-Hindu_marriage_ceremony_offering.jpg>
Resolving upload.wikimedia.org (upload.wikimedia.org)... 198.35.26.112, 2620:0:863:ed1a::2:b
Connecting to upload.wikimedia.org (upload.wikimedia.org)|198.35.26.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 83328 (81K) [image/jpeg]
Saving to: ‘couple.jpg’

couple.jpg          100%[===================>]  81.38K  --.-KB/s    in 0.09s   

2020-12-21 12:51:36 (934 KB/s) - ‘couple.jpg’ saved [83328/83328]

Traceback (most recent call last):
  File "simple_pose.py", line 25, in <module>
    engine = PoseEngine('models/mobilenet/posenet_mobilenet_v1_075_481_641_quant_decoder_edgetpu.tflite')
  File "/home/pi/jo/project-posenet/pose_engine.py", line 85, in __init__
    BasicEngine.__init__(self, model_path)
  File "/home/pi/.local/lib/python3.7/site-packages/edgetpu/basic/basic_engine.py", line 92, in __init__
    self._engine = BasicEnginePythonWrapper.CreateFromFile(model_path)
RuntimeError: Internal: Unsupported data type in custom op handler: 1006632960Node number 0 (edgetpu-custom-op) failed to prepare.
Failed to allocate tensors.

camera feed fail

pi@reachy:~/jo/project-posenet $ python3 pose_camera.py
Loading model:  models/mobilenet/posenet_mobilenet_v1_075_481_641_quant_decoder_edgetpu.tflite
Traceback (most recent call last):
File "pose_camera.py", line 163, in <module>
main()
File "pose_camera.py", line 159, in main
run(run_inference, render_overlay)
File "pose_camera.py", line 115, in run
engine = PoseEngine(model)
File "/home/pi/jo/project-posenet/pose_engine.py", line 85, in **init**
BasicEngine.**init**(self, model_path)
File "/home/pi/.local/lib/python3.7/site-packages/edgetpu/basic/basic_engine.py", line 92, in **init**
self._engine = BasicEnginePythonWrapper.CreateFromFile(model_path)
RuntimeError: Internal: Unsupported data type in custom op handler: 1006632960Node number 0 (edgetpu-custom-op) failed to prepare.
Failed to allocate tensors.

Attempt 1: (Failed)

Solve this by pip3 install https://dl.google.com/coral/python/tflite_runtime-2.1.0-cp37-cp37m-linux_aarch64.whl

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a2be67c1-8f4f-4e5f-8570-43edb6ef0925/Untitled.png

pip3 install tflite-runtime==2.1.0