Learn practical skills, build real-world projects, and advance your career
!pip install jovian --upgrade --quiet
project_name = 'image-classification-imagewoof-practice-improved'
jovian.commit(project = project_name)
[jovian] Attempting to save notebook..
import os
import torch
import torchvision
import tarfile
from torchvision.datasets.utils import download_url
from torch.utils.data import random_split
import torchvision.transforms as tt
from torchvision.datasets import ImageFolder
#download the dataset
dataset_url = "https://s3.amazonaws.com/fast-ai-imageclas/imagewoof-160.tgz"
download_url(dataset_url, '.')

# extract the archive

with tarfile.open('./imagewoof-160.tgz', 'r:gz') as tar: #read file in r mode
  tar.extractall(path = './data') #extract all folders from zip file and store under folder named data
HBox(children=(FloatProgress(value=1.0, bar_style='info', max=1.0), HTML(value='')))