Skip to content

Instantly share code, notes, and snippets.

View youngjung's full-sized avatar

Youngjung youngjung

View GitHub Profile
@youngjung
youngjung / cifar10_to_imagefolder.py
Created April 18, 2019 07:17
create an imagefolder and save images in subdirs with classnames in cifar10
import os
import argparse
import numpy as np
from PIL import Image
from tqdm import tqdm
import torch
import torchvision
import torchvision.transforms as transforms