Code Monkey home page Code Monkey logo

eva6's Introduction

EVA6/ Session 7

Our Team members are

  1. Pratima Verma

  2. L.Mahesh

Session 7 Assignment Problem Statement

Change the code such that it uses GPU Change the architecture to C1C2C3C40 (No MaxPooling, but 3 3x3 layers with stride of 2 instead) (If you can figure out how to use Dilated kernels here instead of MP or strided convolution, then 200pts extra!) Total RF must be more than 44 One of the layers must use Depthwise Separable Convolution One of the layers must use Dilated Convolution Use GAP (compulsory):- add FC after GAP to target #of classes (optional) Use albumentation library and apply: Horizontal flip ShiftScaleRotate CoarseDropout (max_holes = 1, max_height=16px, max_width=1, min_holes = 1, min_height=16px, min_width=16px, fill_value=(mean of your dataset), mask_fill_value = None) Achieve 85% accuracy, as many epochs as you want. Total Params to be less than 200k.

Assignment S7 brief

The Code flow will be as below

Data-> Dataset-> DataLoader-> Model-> Loss-> Optimizer

Package is torchvision Data is CIFAR10. Data loaders to be used is torch.utils.data.DataLoader CIFAR10 classes: ‘airplane’, ‘automobile’, ‘bird’, ‘cat’, ‘deer’, ‘dog’, ‘frog’, ‘horse’, ‘ship’, ‘truck’. The images in CIFAR-10 are of size 3x32x32, i.e. 3-channel color images of 32x32 pixels in size.

Approach steps GPU conversion and verification Load and normalizing the CIFAR10 training and test datasets using torchvision Define a Convolution Neural Network Define a loss function Train and Test the network Model Plot for the Accuracy

Model Summary

Requirement already satisfied: torchsummary in /usr/local/lib/python3.7/dist-packages (1.5.1) cuda

Total params: 96,352

Trainable params: 96,352

Non-trainable params: 0

Accuracy of the network on the 10000 test images: 80.620 %

EPOCHS = 30

Learning Rate lr=0.018

eva6's People

Contributors

lmaheshds avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.