Generally the class indices start at 0, so if you are dealing with 19 classes, you would use indices in [0, 18] unless you want to reserve class index 0 for a specific class such as the background class.