spyrit.misc.statistics.cov_1

spyrit.misc.statistics.cov_1(dataloader, mean, device, n_loop=1)[source]

The covariance is computed across batches, channels, and image rows.

nloop > 1 is relevant for dataloaders with random crops such as that provided by data_loaders_ImageNet