Skip to content

Instantly share code, notes, and snippets.

View mil-ad's full-sized avatar
🍉

Milad Alizadeh mil-ad

🍉
View GitHub Profile
@mil-ad
mil-ad / train-cifar.py
Created January 10, 2020 19:09 — forked from y0ast/train_cifar.py
Getting a high accuracy on CIFAR-10 is not straightforward. This self-contained script gets to 94% accuracy with a minimal setup.
import argparse
from tqdm import tqdm
import torch
import torch.nn.functional as F
from torchvision import models, datasets, transforms
def get_CIFAR10(root="./"):