-
Notifications
You must be signed in to change notification settings - Fork 56
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
How can I transfer the label number to its class name? #5
Comments
The mapping is available here: which is copied from here: |
@airsplay Thank you! |
Hi @coldtomatojuice , |
And do you have a mapping from these to COCO categories? :) |
Did you get these mappings of COCO? :) |
❓ How to use Detectron2
edit 1: Sorry It's from LXMERT.. I was confused. but anyway It would be very helpful if I can get an answer!
Thanks for your great work!
I got the file "vg_gqa_obj36.tsv" from gdrive
and
among fields, there is objects_id
which i guess indicates a label of an object
then, How can I alias this label to the real class name?
Is there a kind of like LABEL2NAME file?
`"""
Example in obj tsv:
FIELDNAMES = ["img_id", "img_h", "img_w", "objects_id", "objects_conf", "attrs_id", "attrs_conf", "num_boxes", "boxes", "features"]
"""`
'
OrderedDict([('img_id', 'n116329'),
('img_h', 427),
('img_w', 640),
('objects_id',
array([177, 397, 453, 397, 453, 177, 291, 90, 397, 128, 177, 397, 299,
308, 50, 236, 397, 314, 291, 98, 364, 50, 601, 50, 50, 299,
50, 50, 209, 397, 51, 299, 50, 453, 51, 776])),
'
177 -> What?
Thank you!
The text was updated successfully, but these errors were encountered: