Skip to content

Instantly share code, notes, and snippets.

View Rm1n90's full-sized avatar
🎯
Focusing

Armin Mehri Rm1n90

🎯
Focusing
  • Computer Vision Center
  • Barcelona, Spain
View GitHub Profile
@Rm1n90
Rm1n90 / meanStd_PyTorch.py
Last active May 30, 2019 22:58
Computing the mean and std
"""
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