problem with adaptive streaming #1039
Description
PLEASE FOLLOW THESE INSTRUCTIONS BEFORE POSTING
- Please thoroughly read README.md, INSTALL.md, GETTING_STARTED.md, and FAQ.md
- Please search existing open and closed issues in case your issue has already been reported
- Please try to debug the issue in case you can solve it on your own 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.:
def main(args):
'rest (caches and auto-tuning need to warm up)'
)
image_ret = vis_utils.vis_one_image_opencv_copy(
image_ret = vis_utils.vis_one_image_opencv(
im,
cls_boxes,
cls_segms,
System information
- Operating system: window 11
- Compiler version: Jupyter Notebook
- CUDA version: cuda-10.2
- cuDNN version: cuDNN v8.7.0
- NVIDIA driver version: 285.27
- GPU models (for all devices if they are not all the same): Nvidia Quadro RTX 4000
PYTHONPATH
environment variable: c:\ user \ Administrator \ Desktoppython --version
output: Python 3.7.0- Anything else that seems relevant: - Revise the description if our APIs have changed