Posts

Flower recognition

Image
 Classfication of flowers using pytorch Here, we will be learning about classification of flowers using pytorch using the kaggle dataset . In this tutorial we will be using conv2d neural network using pytorch to classify the flowers. We follow the following tutorial and change our code according to our requirements. https://pytorch.org/tutorials/beginner/blitz/cifar10_tutorial.html#sphx-glr-beginner-blitz-cifar10-tutorial-py Importing necessary packages import torch import torchvision import torchvision.transforms as transforms import os import random import pandas as pd import numpy as np import shutil pytorch package will not be available, so we have install it explicitly, the following command can be used to install pytorch. For windows:             conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch For Mac:               conda install pytorch torchvision torchaudio -c pytorch Splitting the Da...