Updated 4 years ago
!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.utils import download_url
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 = 'image_classification_resnet'
# Download the dataset
dataset_url = 'https://www.kaggle.com/puneet6060/intel-image-classification/download'
od.download(dataset_url)
Please provide your Kaggle credentials to download this dataset. Learn more: http://bit.ly/kaggle-creds
Your Kaggle username: nikhil1e9
Your Kaggle Key: ··········
5%|▌ | 18.0M/346M [00:00<00:01, 186MB/s]
Downloading intel-image-classification.zip to ./intel-image-classification
100%|██████████| 346M/346M [00:03<00:00, 109MB/s]