Hi. I’m new to HF Transformers, so please excuse this simple question.
I’m working through the Fine-Tune a Semantic Segmentation Model with a Custom Dataset blog post and continue to receive the IndexError: Target 4 is out of bounds.
error that many folks reference here. I understand that i need my labels to be 0-3 rather than 1-4, however i’m not sure how best to do this with my custom HF dataset that i created using Segments.ai
I’ve attempted to update the groundtruth labels using .map()
and np.where()
, as well as updating the label ids on Segments.ai
I’ve reconfigured the id2label.json
to reflect 0-3 rather than 1-4. what am i missing here?