consts.py 573 B

12345678910111213141516
  1. """Setup constants, ymmv."""
  2. PIN_MEMORY = True
  3. NON_BLOCKING = False
  4. BENCHMARK = True
  5. MULTITHREAD_DATAPROCESSING = 4
  6. cifar10_mean = [0.4914672374725342, 0.4822617471218109, 0.4467701315879822]
  7. cifar10_std = [0.24703224003314972, 0.24348513782024384, 0.26158785820007324]
  8. cifar100_mean = [0.5071598291397095, 0.4866936206817627, 0.44120192527770996]
  9. cifar100_std = [0.2673342823982239, 0.2564384639263153, 0.2761504650115967]
  10. mnist_mean = (0.13066373765468597,)
  11. mnist_std = (0.30810782313346863,)
  12. imagenet_mean = [0.485, 0.456, 0.406]
  13. imagenet_std = [0.229, 0.224, 0.225]