I am trying to understand the following code from https://github.com/rezazad68/BCDU-Net/blob/master/Retina%20Blood%20Vessel%20Segmentation/evaluate.py:
patches_imgs_test = np.einsum('klij->kijl', patches_imgs_test)
and also the following:
predictions = np.einsum('kijl->klij', predictions)
I tried looking up the einsum
operands klij->kijl
and kijl->klij
but lady luck has yet to be on my side. The closest I got (probably) are the following which do not explain cases with '4 charcters':
https://docs.scipy.org/doc/numpy/reference/generated/numpy.einsum.html Understanding NumPy's einsum
My intuition is that its just rotations of the images based on how the characters are shifting. Am I right or close on this? Some insights will be appreciated!
P.S. The numpy einsum
documentation is killing me..