'Label map in TensorFlow API

My dataset does not have labels in order like 1,2,3,4,5. It has labels like 1,23,43,67 etc. When I am making a label map, do I need to somehow map my labels to 1,2,3,4 etc for the API to work or can I just use 1,23,43,67 etc ?

item { name: "car" id: 1} item { name: "rodent" id: 53} …

Or does it need to be

item { name: "car" id: 1} item { name: "rodent" id: 2}

If it is the second method, do I need to map my original ids to this or does the API do this anyway ? Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source