ZFTurbo / volumentations

Library for 3D augmentations
MIT License
220 stars 35 forks source link

untimeWarning: invalid value encountered in power img = np.power(img, gamma) #17

Open oslo71 opened 1 year ago

oslo71 commented 1 year ago

when I use the RandomGamma after ElasticTransform, sometimes this warning will arise. It seems that some of the volumn data after ElasticTransform will be negative, so applying np.power to it will trigger this warning, please tell me how to deal with it?