File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ def main(tempdir):
7272 # compute metric for current iteration
7373 dice_metric (y_pred = val_outputs , y = val_labels )
7474 for val_output in val_outputs :
75+ val_output = (val_output * 255 ).to (torch .uint8 )
7576 saver (val_output )
7677 # aggregate the final mean dice result
7778 print ("evaluation metric:" , dice_metric .aggregate ().item ())
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ def main(tempdir):
8787 # compute metric for current iteration
8888 dice_metric (y_pred = val_outputs , y = val_labels )
8989 for val_output in val_outputs :
90+ val_output = (val_output * 255 ).to (torch .uint8 )
9091 saver (val_output )
9192 # aggregate the final mean dice result
9293 print ("evaluation metric:" , dice_metric .aggregate ().item ())
You can’t perform that action at this time.
0 commit comments