Learn practical skills, build real-world projects, and advance your career
!pip install jovian --upgrade --quiet
project_name = 'Fashion MNIST Clothing Classification'
jovian.commit(project = project_name)
[jovian] Detected Colab notebook... [jovian] Please enter your API key ( from https://jovian.ai/ ): API KEY: ·········· [jovian] Uploading colab notebook to Jovian... [jovian] Capturing environment.. [jovian] Committed successfully! https://jovian.ai/abhiluvarkala/fashion-mnist-clothing-classification

Fashion MNIST Clothing Classification

  • The Fashion-MNIST dataset is proposed as a more challenging replacement dataset for the MNIST dataset.
  • It is a dataset of Zalando‘s article images—consisting of a training set of 60,000 examples and a test set of 10,000 examples.
  • Each image in the dataset is a 28×28 grayscale image, associated with a label from 10 classes.
  • The mapping of all 0-9 integers to class labels is listed below.
    • 0: T-shirt/top
    • 1: Trouser
    • 2: Pullover
    • 3: Dress
    • 4: Coat
    • 5: Sandal
    • 6: Shirt
    • 7: Sneaker
    • 8: Bag
    • 9: Ankle boot
#import libraries
import torchvision
import torchvision.transforms as transforms
import torch
import matplotlib.pyplot as plt
import numpy as np
import torch
from torchvision.datasets import FashionMNIST
import matplotlib.pyplot as plt
from torch.utils.data import random_split
from torch.utils.data import DataLoader
from torchvision.utils import make_grid
import torch.nn.functional as F
import torch.nn as nn
%matplotlib inline