Again thank you for the quick responses and the help i really appreciate it.
My labels look like this
[[[0.00392157 0.06274509 0.        ]
[0.15686274 0.01176471 0.03921568]
[0.15686274 0.         0.01176471]
…
[0.7411765  0.00392157 0.00784314]
[0.7529412  0.         0.01568621]
[0.74509805 0.         0.02352941]]
[[0.00392157 0.         0.03529412]
[0.15686274 0.         0.09411764]
[0.16470587 0.         0.0862745 ]
…
[0.7411765  0.00392157 0.00784314]
[0.7529412  0.         0.01568621]
[0.74509805 0.         0.02352941]]
[[0.03921568 0.         0.08235294]
[0.14509803 0.         0.11764705]
[0.14509803 0.         0.0862745 ]
…
[0.74509805 0.         0.00784314]
[0.7529412  0.         0.01568621]
[0.74509805 0.         0.02352941]]
…
[[0.0078432  0.00392157 0.06666666]
[0.         0.00784314 0.05882347]
[0.         0.00784314 0.05882347]
…
[0.74509805 0.         0.00784314]
[0.74509805 0.         0.00784314]
[0.74509805 0.         0.00784314]]
[[0.04313725 0.         0.05882347]
[0.03921568 0.         0.05882347]
[0.03921568 0.         0.05490196]
…
[0.74509805 0.         0.00784314]
[0.74509805 0.         0.00784314]
[0.74509805 0.         0.00784314]]
[[0.05490196 0.         0.01176471]
[0.05098039 0.         0.01176471]
[0.05098039 0.         0.00392157]
…
[0.74509805 0.         0.00784314]
[0.74509805 0.         0.00784314]
[0.74509805 0.         0.00784314]]]
I think i need some sort of color mapping where i need to find the red pixels and name it class 2, green pixels to class 1 and black pixels to class 0.
I am unsure on how to read the raw pixel values and create a function for color mapping any guidance on that will be really helpful