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

Video inferencing shows category IDs instead of class names #5161

Open
Kamal-Moha opened this issue Nov 24, 2023 · 1 comment
Open

Video inferencing shows category IDs instead of class names #5161

Kamal-Moha opened this issue Nov 24, 2023 · 1 comment

Comments

@Kamal-Moha
Copy link

I did object detection using detectron2 on a video. The output video does the detection, but it indicates category ids of either 1 or 2. But I want my detection to show the class names of either 'weed' or 'crop' instead.

image

Instructions To Reproduce the Issue:

  1. Here's the code to do the video inferencing:
%run detectron2/demo/demo.py --config-file /content/config2.yaml --video-input /content/crop-weed.mp4 --confidence-threshold 0.6 --output output_colab.mp4 \
--opts MODEL.WEIGHTS /content/output/model_final.pth

Expected behavior:

I expected detectron2 to do the video inference and show the class names of either 'weed' or 'crop' around the bounding box.

Environment:

  • Google Colab
@Programmer-RD-AI
Copy link
Contributor

Is this an issue with the visualization of the predictions or the predictions themselves?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants