We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a40380 commit b1010d4Copy full SHA for b1010d4
2 files changed
2d_segmentation/torch/unet_evaluation_array.py
@@ -72,6 +72,7 @@ def main(tempdir):
72
# compute metric for current iteration
73
dice_metric(y_pred=val_outputs, y=val_labels)
74
for val_output in val_outputs:
75
+ val_output = (val_output * 255).to(torch.uint8)
76
saver(val_output)
77
# aggregate the final mean dice result
78
print("evaluation metric:", dice_metric.aggregate().item())
2d_segmentation/torch/unet_evaluation_dict.py
@@ -87,6 +87,7 @@ def main(tempdir):
87
88
89
90
91
92
93
0 commit comments