-
Notifications
You must be signed in to change notification settings - Fork 5.5k
problem with adaptive streaming #1039
Comments
how do you want my response to be as a text response or a pull request |
here 's the text version let me know if you'd like a pull request The infer_simple.py utility provided by Detectron is designed to work on image files, not video files. However, you can modify the script to process video files frame by frame, draw the bounding boxes and masks on the frames, and save them as a new video. Here's an example of how you can modify the infer_simple.py script to work with video files: First, you need to install OpenCV Python package (if you haven't already) to handle video processing: pip install opencv-python import cv2
Modify the argument parser section to accept video files as input: parser.add_argument( python tools/infer_simple.py |
nice |
PLEASE FOLLOW THESE INSTRUCTIONS BEFORE POSTING
After following steps 1-3 above and agreeing to provide the detailed information requested below, you may continue with posting your issue
Video Support Issue
Expected results
We may do inference on a video file utilizing infer Simple video.py, and you can save the resulting video alongside the bounding boxes and/or masks.
Actual results
The infer simple.py utility may be used to execute inference on a directory of picture files (demo/*.jpg in this example). In this example, a ResNet-101-FPN foundation from the models zoo is used with a final generated Mask R-CNN model. The models should be downloaded by Detectron immediately from the URL supplied by the —wts parameter. The directory supplied by —output-dir will include PDF visualisations of the observations produced by this programme. Here is an illustration of the results you might anticipate seeing (for details on the copyright of the photos used in the demonstration, check demo/NOTICE).
What did you observe instead?
Mask R-CNN may be sluggish when performing inferences using your own high-quality photos since a lot of effort is required up sampling the projected filters to the actual picture quality . If the misc mask duration given by tools/infer simple.py is excessive, you can identify this problem . The fix is to first enlarge your photos so that the shorter side is somewhere between 600 and 800 pixels, and then perform inference on the smaller image.
E.g.:
System information
PYTHONPATH
environment variable: c:\ user \ Administrator \ Desktoppython --version
output: Python 3.7.0The text was updated successfully, but these errors were encountered: