question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How do I run keypoints model using a video?

See original GitHub issue

Firstly, I am very thankful for the work done on this piece of work! It is a million times simpler to set up and run than the alternatives!

I wanted to know if I am doing the demo.py script incorrectly for videos. I have tried running it using the --video-input tag, and the videos attempted were .mp4 .mov and .avi, but when I check the output folder, the result doesn’t appear as it did for the image.

This is the command I’ve run: python3.6 demo/demo.py --config-file configs/COCO-Keypoints/keypoint_rcnn_R_50_FPN_1x.yaml --video-input ~/IMG_2172.avi --output output/test.mp4 --opts MODEL.WEIGHTS detectron2://COCO-Keypoints/keypoint_rcnn_R_50_FPN_1x/137261548/model_final_04e291.pkl

I believe it is a case where I’m missing something, but I’m not sure what.

Any advice or suggestions are welcomed. Let me know if any further information is needed. Much thanks in advance.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

6reactions
ppwwyyxxcommented, Nov 14, 2019

Just changing “x264” to some other codec (e.g. “MPEG”) should work.

1reaction
malcolmgarner-movementcommented, Nov 14, 2019

Aha that wooorrrkkkssss!!!

Thanks a lot @ppwwyyxx! Much appreciated. I changed it to “mp4v” and that solved it’s issue with opencv for mp4

Read more comments on GitHub >

github_iconTop Results From Across the Web

Real-Time Pose Estimation from Video in Python with YOLOv7
In this guide, learn how to perform real-time pose estimation (keypoint detection) with state-of-the-art YOLOv7 and OpenCV, in Python, ...
Read more >
Keypoint Detection with Transfer Learning - Keras
Description: Training a keypoint detector with data augmentation and transfer learning. ... Keypoint detection consists of locating key object ...
Read more >
Pose Detection in Twilio Video with TensorFlow.js
Draw Segments and Points on the Poses​​ Then, given keypoints like the array returned from PoseNet, loop through those given points, extract ...
Read more >
Intro to Computer Vision with PoseNet - Processing with AI
PoseNet is a computer vision model that does an operation called pose ... in the video, when using PoseNet, you will get an...
Read more >
Simple Facial Keypoint Detection using TensorFlow and Keras
The Configuration File · Helper Functions and Utilities · Preparing the Dataset · The Neural Network Model · The Training Script · Executing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found