spyrit.misc.statistics.stat_walsh_ImageNet
- spyrit.misc.statistics.stat_walsh_ImageNet(stat_root=PosixPath('stats'), data_root=PosixPath('data/ILSVRC2012_img_test_v10102019'), img_size=128, batch_size=256, n_loop=1, device=device(type='cpu'))[source]
- Args:
data_rootneeds to have all images in a subfolder- Example:
>>> from pathlib import Path >>> from spyrit.misc.statistics import stat_walsh_ImageNet >>> data_root = Path('../data/ILSVRC2012_v10102019') >>> stat_root = Path('../stat/ILSVRC2012_v10102019') >>> stat_walsh_ImageNet(stat_root = stat_root, data_root = data_root, img_size = 32, batch_size = 1024)