mateuszbuda / brain-segmentation-pytorch

U-Net implementation in PyTorch for FLAIR abnormality segmentation in brain MRI
https://mateuszbuda.github.io/2017/12/01/brainseg.html
MIT License
722 stars 187 forks source link

compatibiity with scipy-1.3 #8

Open hugues-talbot opened 5 years ago

hugues-talbot commented 5 years ago

Repository is no longer compatible with scipy as of version 1.3 ; this is due to a deprecated call to scipy.misc.toimage

See: https://docs.scipy.org/doc/scipy/reference/release.1.3.0.html?highlight=toimage

There are two call in logger.py to this function. I've changed it to the recommended alternative, using Pillow.