Denken
Menu
  • About Me
  • Deep Learning with Pytorch
  • Generative AI: Tutorial Series
  • Python Tutorials
  • Contact Me
Menu

Deep Learning with Pytorch -CNN from Scratch with Data Augmentation – 2.1

Posted on April 30, 2019May 1, 2019 by Aritra Sen

In the last post we went through all the building blocks of ConVNets. Now let’s put all the concepts together and see how to do it in Pytorch. Before going into the implementation , lets see what is Data Augmentation.

Augmentation:
Using pytorch’s torchvision.transforms operations , we can do data augmentation.With data augmentation we can flip/shift/crop images to feed different forms of single image to the Network to learn. Your training set may have certain images of particular form , example – in cat images , cat may appear centrally in the image .
However in unseen test data set cat may appear in left / right side of the images. Using data augmentation we can solve this problem by training out model with different forms of a single image.
The transforms operations are applied to your original images at every batch generation. So your dataset is left unchanged, only the batch images are copied and transformed in every iteration.

Image Augmentation in Action

Let’s lets put everything together and build a ConvNet image classifier from scratch.
Press up/down/right/left arrow to browse the below notebook.

Do like , share and comment if you have any questions.

Category: Machine Learning, Python

Post navigation

← Deep Learning with Pytorch-CNN – Getting Started – 2.0
Deep Learning with Pytorch -CNN – Transfer Learning – 2.2 →

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

RSS Feeds

Enter your email address:

Delivered by FeedBurner

Pages

  • About Me
  • Contact Me
  • Deep Learning with Pytorch
  • Generative AI: Tutorial Series
  • Python Tutorials

Tag Cloud

Anrdoid Bias Celebration Cricket CyanogenMod deep-learning Denken Experience Facebook Features Finetuning GCN GenerativeAI GettingStarted GNN Google HBOOT HBOOT downgrading HTC Wildfire huggingface India Launch Life LLM LLMs LoRA Lumia 520 MachineLearning message-passing mobile My Space Orkut People Python pytorch pytorch-geometric Rooting Sachin Share Social Network Stats transformers Tutorials Twitter Windows Phone

WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.

Categories

Random Posts

  • Generative AI: LLMs: Getting Started 1.0
  • New Features in Windows Phone 8.1
  • Merry Christmas
  • 1.1 – Fine Tune a Transformer Model (1/2)
  • Python Tutorials – 1.5 – Numpy

Recent Comments

  • Generative AI: LLMs: Reduce Hallucinations with Retrieval-Augmented-Generation (RAG) 1.8 – Denken on Generative AI: LLMs: Semantic Search and Conversation Retrieval QA using Vector Store and LangChain 1.7
  • vikas on Domain Fuss
  • Kajal on Deep Learning with Pytorch -Text Generation – LSTMs – 3.3
  • Aritra Sen on Python Tutorials – 1.1 – Variables and Data Types
  • Aakash on Python Tutorials – 1.1 – Variables and Data Types

Visitors Count

AmazingCounters.com

Archives

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright

AritraSen’s site© This site has been protected from copyright by copyscape.Copying from this site is stricktly prohibited. Protected by Copyscape Original Content Validator
© 2023 Denken | Powered by Minimalist Blog WordPress Theme