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

Visualization code #5

Open
Gorluxor opened this issue Dec 22, 2023 · 0 comments
Open

Visualization code #5

Gorluxor opened this issue Dec 22, 2023 · 0 comments

Comments

@Gorluxor
Copy link

Dear authors,

I have checked the repo for the custom visualization code but did not find anything, thus assuming something like detectron2:

from detectron2.utils.visualizer import Visualizer

meta_data = # metadata of the dataset 
data = # first image of the dataset in the detectron2 dict format

v = Visualizer(data['image'].permute(1,2,0).numpy(), metadata=meta_data, scale=1.0)
out = v.draw_sem_seg(one_data[0]['obj_part_sem_seg'])
Image.fromarray(out.get_image())

The problem is that I get a nonsense class label visualized compared to the image (using ground truth) with the code above.

Is there an example of any of the following:

  1. a script that uses the inference output
  2. a single inference example from image input to visualization (as seen in the paper)?
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

1 participant