Script for calculating the entropy of the batch of images on GPU with Pytorch. Two options are available
- Calculate entropy of the whole image - pass
--patch_size 0
- Calculate entropy of patches in the image - pass
--patch_size 'size of the patch'
(default is 64)
for installing required packages run
pip install -r requirements.txt
To test the code run
python main.py --data_path 'path to images'
Calculation of the pdf function is modified from kornia.