Visualization of model evaluation (image, true mask, predicted mask) #607
-
Hello. I am trying to do a visualization after the evaluation on original images/masks. For example I have 10 images/masks that I would like the test my model and then would like to plot results of all of them with images, true masks and predicted masks. The solution below does not work efficiently as it is plotting only one case (image, true mask and predicted mask) multiple times. Let me know if you have more efficient solution for this visualization. Look forward to hearing from you. loader = LoadImage() with torch.no_grad():
P.S. If for evaluation of model I am using 10 images/masks, the metric_org is returning the average of all 10 scores? If yes, then how I can check dice score of each case individually? This is the target part: dice_metric(y_pred=test_outputs, y=test_labels) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Hi @HripsimeS , please put
|
Beta Was this translation helpful? Give feedback.
Hi @HripsimeS , please put
original_image = loader(test_data[0]["image_meta_dict"]["filename_or_obj"])[0]
within your for loop: