lxtGH / lxtGH/Panoptic-PartFormer

image_demo.py does not use inference result (result)

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.