Closed TuanDTr closed 6 years ago
I see you are using Python 2.7. I have only tested on python 3.5. Most likely you have a rounding error e.g. I/255=0 and log(0) is not defined (or = - infinity). So maybe import division from future?
Let me know if you're still having any issues. For now I assume it's sorted
n=stainNorm_Vahadane.normalizer() n.fit(i1) normalized=utils.build_stack((i1,n.transform(i2),n.transform(i3),n.transform(i4),n.transform(i5),n.transform(i6))) stain_utils.py:143: RuntimeWarning: divide by zero encountered in log return -1 * np.log(I / 255) NotImplementedError Traceback (most recent call last)