-
Notifications
You must be signed in to change notification settings - Fork 1.5k
ProbMap indexing has an error #4795
Copy link
Copy link
Closed
Labels
Pathology/MicroscopyDigital Pathology and Microscopy relatedDigital Pathology and Microscopy relatedbugSomething isn't workingSomething isn't working
Description
Describe the bug
The location values of probability mask is not being used correctly in the numpy output. The locations are a numpy array (instead of a tuple) so when used in indexing an ndarray, they are not being interpreted as the location in two/three dimension. Instead they are treated as the index of the first dimension. Explicit conversion to tuple can solve this issue.
MONAI/monai/handlers/probability_maps.py
Line 98 in c1eaf42
| self.prob_map[name][loc] = prob |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Pathology/MicroscopyDigital Pathology and Microscopy relatedDigital Pathology and Microscopy relatedbugSomething isn't workingSomething isn't working
Type
Projects
Status
💯 Complete