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

Cannot find Renderer Subgraph #14

Open
Abhinav0002 opened this issue Jan 16, 2024 · 0 comments
Open

Cannot find Renderer Subgraph #14

Abhinav0002 opened this issue Jan 16, 2024 · 0 comments

Comments

@Abhinav0002
Copy link

_live.pbtxt
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1705417055.522904 30032 demo_run_graph_main.cc:50] Get calculator graph config contents: # MediaPipe graph that performs hands tracking on desktop with TensorFlow

Lite on CPU.

Used in the example in

mediapipe/examples/desktop/hand_tracking:hand_tracking_cpu.

CPU image. (ImageFrame)

input_stream: "input_video"

CPU image. (ImageFrame)

output_stream: "output_video"

Generates side packet cotaining max number of hands to detect/track.

node {
calculator: "ConstantSidePacketCalculator"
output_side_packet: "PACKET:num_hands"
node_options: {
[type.googleapis.com/mediapipe.ConstantSidePacketCalculatorOptions]: {
packet { int_value: 2 }
}
}
}

Detects/tracks hand landmarks.

node {
calculator: "HandLandmarkTrackingCpu"
input_stream: "IMAGE:input_video"
input_side_packet: "NUM_HANDS:num_hands"
output_stream: "LANDMARKS:landmarks"
output_stream: "HANDEDNESS:handedness"
output_stream: "PALM_DETECTIONS:multi_palm_detections"
output_stream: "HAND_ROIS_FROM_LANDMARKS:multi_hand_rects"
output_stream: "HAND_ROIS_FROM_PALM_DETECTIONS:multi_palm_rects"
}

Subgraph that renders annotations and overlays them on top of the input

images (see hand_renderer_cpu.pbtxt).

node {
calculator: "HandRendererSubgraph"
input_stream: "IMAGE:input_video"
input_stream: "DETECTIONS:multi_palm_detections"
input_stream: "LANDMARKS:landmarks"
input_stream: "HANDEDNESS:handedness"
input_stream: "NORM_RECTS:0:multi_palm_rects"
input_stream: "NORM_RECTS:1:multi_hand_rects"
output_stream: "IMAGE:output_video"
}

Add New Node

node {
calculator: "MyPassThroughCalculator"
input_stream: "LANDMARKS:hand_landmarks"
input_stream: "NORM_RECT:hand_rect"
input_stream: "DETECTIONS:palm_detections"
output_stream: "LANDMARKS:hand_landmarks_out"
output_stream: "NORM_RECT:hand_rect_out"
output_stream: "DETECTIONS:palm_detections_out"
}

Modify input_stream names of next node

Subgraph that renders annotations and overlays them on top of the input

images (see renderer_cpu.pbtxt).

node {
calculator: "RendererSubgraph"
input_stream: "IMAGE:input_video"
input_stream: "LANDMARKS:hand_landmarks_out"
input_stream: "NORM_RECT:hand_rect_out"
input_stream: "DETECTIONS:palm_detections_out"
output_stream: "IMAGE:output_video"
}

I0000 00:00:1705417055.523425 30032 demo_run_graph_main.cc:56] Initialize the calculator graph.
E0000 00:00:1705417055.525294 30032 demo_run_graph_main.cc:156] Failed to run the graph: ValidatedGraphConfig Initialization failed.
No registered object with name: RendererSubgraph; Unable to find Calculator "RendererSubgraph"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant