lxtGH / lxtGH/Panoptic-PartFormer
image_demo.py does not use inference result (result)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 63
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I noticed that in demo/image_demo.py the script calls inference_detector(model, args.img) and stores the output in result, but result is never actually used.
result = inference_detector(model, args.img)
Instead, the script only loads a label image (label_path) and processes it, ignoring the actual model prediction. This means the demo does not visualize or save the model’s inference output.
Expected behavior:
The script should visualize or save the inference result (result) using show_result_pyplot or other visualization utilities, similar to standard MMDetection demos.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in demo/image_demo.py by tracing the result returned from inference_detector(model, args.img) and comparing it with the existing label_path processing. Check the available show_result_pyplot or other visualization utilities mentioned in the issue. Done means the demo visualizes or saves the model inference result rather than ignoring it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 58/100