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

Not able change to other coco classes #2

Open
roopalav opened this issue May 3, 2023 · 6 comments
Open

Not able change to other coco classes #2

roopalav opened this issue May 3, 2023 · 6 comments

Comments

@roopalav
Copy link

roopalav commented May 3, 2023

I have tested the demo_panoseg in Colab. I also had to compile Deformable-DETR and restart runtime in colab.
when i changed the thing classes to coco classes like cup, spoon, fork, bottle etc., i got this error.
Attribute 'thing_colors' in the metadata of 'demo' cannot be set to a different value!
if we can add text2seg or groundedsam type of prompt as class names, it would be useful.

@siglun88
Copy link

Got the same error

@HaoZhang534
Copy link
Contributor

@roopalav Do you want to change the class name set into a custom one? You may need to write a new data registration code with the classes defined by yourself.

@siglun88
Copy link

siglun88 commented May 16, 2023

I was using this code in colab, which might cause the issue. Seems like MetadataCatalog preserves the color values from previous runs. Changing the namespace from "demo" to something else for each run fixed the issue for me.

Not sure if this is a problem when running as a cli as intended, instead of running in colab.

@Mahmoud-Ali-FCIS
Copy link

@siglun88 Could you please share the link of your colab?

@HaoZhang534
Copy link
Contributor

@roopalav @siglun88 Have your change the class names in Line 54-55?

thing_classes = ['car','person','traffic light', 'truck', 'motorcycle']

@ZhuoZHI-UCL
Copy link

@roopalav Do you want to change the class name set into a custom one? You may need to write a new data registration code with the classes defined by yourself.

Hi HaoZhang, It's a great job! But I have a question, why open vocabulary panorama segmentation still need to set the metadata manually, does it mean that the segmentation will fail if the category of the item in the image does not exist in the metadata?

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

5 participants