You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
724 B

6 years ago
  1. // Message to store the mapping from class label strings to class id. Datasets
  2. // use string labels to represent classes while the object detection framework
  3. // works with class ids. This message maps them so they can be converted back
  4. // and forth as needed.
  5. syntax = "proto2";
  6. package object_detection.protos;
  7. message StringIntLabelMapItem {
  8. // String name. The most common practice is to set this to a MID or synsets
  9. // id.
  10. optional string name = 1;
  11. // Integer id that maps to the string name above. Label ids should start from
  12. // 1.
  13. optional int32 id = 2;
  14. // Human readable string label.
  15. optional string display_name = 3;
  16. };
  17. message StringIntLabelMap {
  18. repeated StringIntLabelMapItem item = 1;
  19. };