Suggesting new Event.object_type_to_color property #529
Unanswered
mattdeitke
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For class-level (i.e., object type-level) segmentation, the documentation states:
Though this is incorrect in (2) ways:
object_id
's likeCounterTop|+00.69|+00.95|-02.48
, since the object types, not object instances, are the only things being color-coordinated.the
color_to_object_id
is always empty{}
, which means color mappings are not provided for class level segmentation. However, when initializing withthe
color_to_object_id
are provided for BOTH the classes and object instances (though obviously runs substantially slower).Since there are only 125ish possible object types, which are always the same color across scenes (see #528.). My suggestion is to simply add a property to each Event called
object_type_to_color
that always return a complete cached color dict in the formA problem might arise across versions of AI2-THOR, where adding in new object types both changes the color scheme and requires the cached color dict to be updated. But, I suspect this isn't much of a problem if there are just a few tests that check for the number of objects in the scene, and the color dict works for a few images.
Beta Was this translation helpful? Give feedback.
All reactions