Learn practical skills, build real-world projects, and advance your career
!pip install opendatasets --upgrade --quiet
import opendatasets as od
import os
import torch
import torchvision
import tarfile
import torch.nn as nn
import numpy as np
import torch.nn.functional as F
from torchvision.datasets import ImageFolder
from torch.utils.data import DataLoader
import torchvision.transforms as tt
from torch.utils.data import random_split
from torchvision.utils import make_grid
import matplotlib
import matplotlib.pyplot as plt
%matplotlib inline

matplotlib.rcParams['figure.facecolor'] = '#ffffff'
project_name = 'cifar100-resnet'
from torchvision.datasets.utils import download_url

# Download the CIFAR 100 dataset
dataset_url = 'https://www.kaggle.com/minbavel/cifar-100-images/download'
Please provide your Kaggle credentials to download this dataset. Learn more: http://bit.ly/kaggle-creds Your Kaggle username: nikhil1e9 Your Kaggle Key: ··········
6%|▋ | 9.00M/140M [00:00<00:01, 87.7MB/s]
Downloading cifar-100-images.zip to ./cifar-100-images
100%|██████████| 140M/140M [00:00<00:00, 265MB/s]