Sorry another question, is there a reason why my kernel keeps getting dead whenever it runs until this code:
pred_imgs = [cityscapes_map[p] for p in pred.cpu().numpy()]
Somehow, I have having issue visualizing how my predicted output looks like. I am using the same format as @sal with _,predicted = torch.max(output, dim=1).
Thank you