Learn practical skills, build real-world projects, and advance your career
Updated a year ago
Flowers Image Classification
This is my first attempt to implement an image classifier model since I began to learn Deep Learning with PyTorch.
As the name suggests, this project model is going to classify the type of different flowers using Deep Learning with PyTorch.
!pip install jovian --upgrade --quiet
# Installing prerequisites
!pip install jovian opendatasets --upgrade -q
# System level
import os
import random
import statistics
import math
import shutil
import jovian
import opendatasets
import PIL
import IPython.display
import matplotlib.pyplot as plt
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import torchvision.transforms as tt
import numpy as np
# Shortcuts
from torch.utils.data.dataset import Dataset
from torch.utils.data.dataloader import DataLoader
from torch.utils.data import random_split
from torchvision.datasets import ImageFolder
from torchvision.utils import make_grid
%matplotlib inline
project_name = 'Flower-Classification-Project'
The dataset is taken from Kaggle.
opendatasets.download('https://www.kaggle.com/alxmamaev/flowers-recognition')
Please provide your Kaggle credentials to download this dataset. Learn more: http://bit.ly/kaggle-creds
Your Kaggle username: priyanshukr
Your Kaggle Key: ··········
1%| | 5.00M/450M [00:00<00:14, 31.8MB/s]
Downloading flowers-recognition.zip to ./flowers-recognition
100%|██████████| 450M/450M [00:07<00:00, 59.0MB/s]