I encountered a quite weird problem. After running some images through my neural network and trying to display the segmentation as follows:
print(label.shape)
torch.Size([1, 3, 321, 321])
Now displaying the image with matplotlib shows everything correctly:
plt.imshow(fake_seg_tb[0].permute(1,2,0))
When I throw the image into tensorboard (pytorch API), I get a red version of the image, which is not what I have as pixel values.
writer_semisuper = SummaryWriter()
writer_semisuper.add_image('My Label: ', torchvision.utils.make_grid(label), some_step)
The library I am importing is (PyTorch 1.5.0):
from torch.utils.tensorboard import SummaryWriter
With the tensorboard --version beeing 2.1.0.
I have no clue why in matplotlib and in the tensor the RGB values are correct but when i display it, it is just not right.

