|
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?
ANTsPyNet/antspynet/utilities/white_matter_hyperintensity_segmentation.py
Lines 76 to 79 in d39ee83
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:
looked at results and saw:
maybe multiply the output probabilities with brain mask after mapping back to original space?