Skip to content
Snippets Groups Projects
Unverified Commit a2fb78bc authored by NBouteldja's avatar NBouteldja Committed by GitHub
Browse files

Update test.py

parent 07f20ca1
Branches
No related tags found
No related merge requests found
......@@ -101,13 +101,12 @@ for s, stain in enumerate(stainsToValidate):
for i in range(numberClassesToEvaluate):
classEvaluators[s][i].add_example(classInstancePredictionList[i], classInstanceGTList[i])
prediction = torch.softmax(prediction, 1)
STAIN_to_PAS_img = STAIN_to_PAS_img.flip(2)
prediction += torch.softmax(segModel(STAIN_to_PAS_img), 1).flip(2)
prediction += segModel(STAIN_to_PAS_img).flip(2)
STAIN_to_PAS_img = STAIN_to_PAS_img.flip(3)
prediction += torch.softmax(segModel(STAIN_to_PAS_img), 1).flip(3).flip(2)
prediction += segModel(STAIN_to_PAS_img).flip(3).flip(2)
STAIN_to_PAS_img = STAIN_to_PAS_img.flip(2)
prediction += torch.softmax(segModel(STAIN_to_PAS_img), 1).flip(3)
prediction += segModel(STAIN_to_PAS_img).flip(3)
STAIN_to_PAS_img = STAIN_to_PAS_img.flip(3)
prediction /= 4.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment