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

Object detection stops when it runs long time #5422

Open
pahotari opened this issue May 20, 2024 · 3 comments
Open

Object detection stops when it runs long time #5422

pahotari opened this issue May 20, 2024 · 3 comments
Assignees
Labels
platform:javascript MediaPipe Javascript issues task:object detection Issues related to Object detection: Track and label objects in images and video. type:support General questions

Comments

@pahotari
Copy link

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)

None

OS Platform and Distribution

Chrome Version 125.0.6422.61

MediaPipe Tasks SDK version

Mediapipe/task-vision 0.10.12

Task name (e.g. Image classification, Gesture recognition etc.)

Object detection

Programming Language and version (e.g. C++, Python, Java)

Javasrcipt

Describe the actual behavior

Object detection stops when it runs long time

Describe the expected behaviour

Object detection should not stop

Standalone code/steps you may have used to try to get what you need

I am using Mediapipe/task-vision 0.10.12 for object detection. I have made a JavaScript web application that uses Mediapipe/task-vision for object detection from a video stream. The solution works quite well.
My solution is based on these guidelines: https://ai.google.dev/edge/mediapipe/solutions/vision/object_detector/web_js

However, I noticed that if the object detection runs for over ten days, it stops, and I need to restart the detection. Additionally, I observed that the web browser logs the following messages:

Could this be the reason why the detection stops? Is there any way to work around the problem, and how can I increase the max_queue_size?

Other info / Complete Logs

AW0520 vision_wasm_internal.js:1
03:33:20.076000 1935920
calculator_graph.cc:1293] Resolved
a deadlock by increasing max_queue_size of input stream: "norm_rect" of a node "mediapipe_tasks_vision_objectdetectoraph__mediapipe_tasks_components_processors_imagepreprocessinggraph__ImageToTensorCalculator" to 101. Consider increasing max_queue_size for better performance.

AW0520 vision_wasm_internal.js:1
03:33:20.827000 1935920
calculator_graph.cc:1293] Resolved
a deadlock by increasing max_queue_size of input stream: "norm_rect" of a node "mediapipe_tasks_vision_objectdetectoraph__mediapipe_tasks_components_processors_imagepreprocessinggraph__ImageToTensorCalculator" to 201. Consider increasing max_queue_size for better performance.
@kuaashish kuaashish added platform:javascript MediaPipe Javascript issues task:object detection Issues related to Object detection: Track and label objects in images and video. type:support General questions labels May 21, 2024
@kuaashish
Copy link
Collaborator

Hi @pahotari,

Could you please try using version 0.10.14? If the issue persists, please provide the complete error logs for further analysis.

Thank you!!

@kuaashish kuaashish added the stat:awaiting response Waiting for user response label May 23, 2024
Copy link

This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.

@github-actions github-actions bot added the stale label May 31, 2024
@pahotari
Copy link
Author

Hi, I'll try new version and then I'll report how it goes. It will take for a while.

@google-ml-butler google-ml-butler bot removed stale stat:awaiting response Waiting for user response labels May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:javascript MediaPipe Javascript issues task:object detection Issues related to Object detection: Track and label objects in images and video. type:support General questions
Projects
None yet
Development

No branches or pull requests

2 participants