-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
TensorFlow Object Detection Demo does not work #57
Comments
bbongcol@, thanks for filing this issue. I reproduced it on Ubuntu 16.04 and figured out the root cause. For some reason, cv::VideoCapture gives back two cv::mat objects with timestamp 0 but the calculator doesn't check if the timestamp of the current frame is greater than the one of the previous frame. Please modify the OpenCVVideoDecoderCalculator like the following. Then, rebuild and rerun the object detection demo.
We will fix this issue soon. |
Thanks!. It works fine. I think opencv installation via setup_opencv.sh can be unstable because it always builds the latest source code. So I think it would be better to build with a tested specpic opencv version. |
@jiuqiant For snowboarding.mp4, it was right, but it got the same error(not all frames decoded 532 vs 531) if I use life_at_google.mp4 |
Updating pyMediaPipe versions for the Python API to 0.9.1
Hi.
I tried to run the "TensorFlow Object Detection Demo" following the guide.
But the "TensorFlow Object Detection Demo" does not work and only logs related to video decoding are shown as below.
Test Environment
Build object_detection:object_detection_tensorflow
$ bazel build -c opt
--define MEDIAPIPE_DISABLE_GPU=1
--define no_aws_support=true
mediapipe/examples/desktop/object_detection:object_detection_tensorflow
Run object_detection:object_detection_tensorflow
$ export GLOG_logtostderr=1
$ bazel-bin/mediapipe/examples/desktop/object_detection/object_detection_tensorflow
--calculator_graph_config_file=mediapipe/graphs/object_detection/object_detection_desktop_tensorflow_graph.pbtxt
--input_side_packets=input_video_path=input_video_path=mediapipe/examples/desktop/object_detection/test_video.mp4,output_video_path=mediapipe/examples/desktop/object_detection/output.mp4
Output Log
W0827 10:46:38.084439 17235 opencv_video_decoder_calculator.cc:167] Not all the frames are decoded (total frames: 205 vs decoded frames: 2).
E0827 10:46:38.108150 17235 simple_run_graph_main.cc:65] Failed to run the graph: CalculatorGraph::Run() failed in Run:
; Packet timestamp mismatch on a calculator receiving from stream "input_video". Current minimum expected timestamp is 1 but received 0. Are you using a custom InputStreamHandler? Note that some InputStreamHandlers allow timestamps that are not strictly monotonically increasing. See for example the ImmediateInputStreamHandler class comment.
; Packet timestamp mismatch on a calculator receiving from stream "input_video". Current minimum expected timestamp is 1 but received 0. Are you using a custom InputStreamHandler? Note that some InputStreamHandlers allow timestamps that are not strictly monotonically increasing. See for example the ImmediateInputStreamHandler class comment.
The text was updated successfully, but these errors were encountered: