Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Movenet and Posenet models not working on CPU #98

Open
suyash-narain opened this issue Jul 11, 2023 · 0 comments
Open

Movenet and Posenet models not working on CPU #98

suyash-narain opened this issue Jul 11, 2023 · 0 comments
Labels
comp:model Model related isssues comp:thirdparty Thirdparty related issues Hardware:Dev Board Coral Dev Board issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:support Support question or issue

Comments

@suyash-narain
Copy link

suyash-narain commented Jul 11, 2023

Description

Hi,
I am trying to run posenet project on aarch64 device (raspberry pi 4) on CPU. I am using gstreamer. But on running the pose_camera.py script, no pose is detected. No line drawings can be seen as well. I have a USB camera connected as /dev/video0. Confidence scores for keypoints remains at 0;

When I switch over to using opencv, I get accurate pose detections with non-zero confidence scores.

My input command is:
$python3 pose_camera.py --model model.tflite --videosrc /dev/video0

my model.tflite is downloaded from https://raw.githubusercontent.com/google-coral/test_data/master/posenet/posenet_mobilenet_v1_075_353_481_16_quant_decoder.tflite

movenet model used: https://tfhub.dev/google/lite-model/movenet/singlepose/lightning/tflite/int8/4

On running, I see the video on the screen, with live fps and NPoses=1, but i don't see any actual pose detected using the drawn lines.
If i use it using opencv, i get pose outputs, but not using gstreamer. I even installed the posenet_decoder.so

How do I run this project on CPU using the CPU based models?
I get the same issue when using movenets on gstreamer too.

As a follow- up, how can I port it to run on movenets, using gstreamer? I can run movenet using opencv, but would like to use gstreamer without opencv.

Some help would be really appreciated. thanks

Click to expand!

Issue Type

Support

Operating System

Linux

Coral Device

Dev Board

Other Devices

Rapsberry Pi 4

Programming Language

Python 3.9

Relevant Log Output

No response

@google-coral-bot google-coral-bot bot added comp:model Model related isssues comp:thirdparty Thirdparty related issues Hardware:Dev Board Coral Dev Board issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:support Support question or issue labels Jul 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
comp:model Model related isssues comp:thirdparty Thirdparty related issues Hardware:Dev Board Coral Dev Board issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:support Support question or issue
Projects
None yet
Development

No branches or pull requests

1 participant