View meanStd_PyTorch.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
computing the mean and the standard deviation per channel of any datasets with PyTorch | |
""" | |
import numpy as np | |
import torch | |
import torch.nn as nn | |
import torchvision | |
from torch.utils.data import DataLoader | |
from torch.utils.data.dataset import Dataset |