-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
| def closest_simplified_direction_matrix(direction): | |
| closest = (np.abs(direction) + 0.5).astype(int) | |
| closest[direction < 0] *= -1.0 | |
| return closest |
causes an error in some installations of python / numpy / tensorflow / antspynet ( can reproduced on ubuntu 18.04 with recent install )
the issue is in multiplying float with int. fixed with this ffe9b24:
def closest_simplified_direction_matrix(direction):
closest = (np.abs(direction) + 0.5).astype(int).astype(float)
closest[direction < 0] *= -1.0
return closest
looked at results and saw:
maybe multiply the output probabilities with brain mask after mapping back to original space?
Metadata
Metadata
Assignees
Labels
No labels
