Skip to content

Instantly share code, notes, and snippets.

View nstrodt's full-sized avatar

Nils Strodthoff nstrodt

View GitHub Profile
@nstrodt
nstrodt / build_tifs_from_ilsvrc2012.py
Created July 25, 2019 14:16
Create the Tiny ImageNet Full-Sized (TIFS) Dataset used in http://arxiv.org/abs/1906.00735
from pathlib import Path
import argparse
import os
import random
import shutil
parser = argparse.ArgumentParser()
parser.add_argument('--loc', type=lambda loc: Path(loc), required=True,
help='Location of ILSVRC2012 dataset')
parser.add_argument('--out', type=lambda loc: Path(loc), required=True,