Coder Social home page Coder Social logo

s10's Introduction

S10

Session 10 - Assignment

Basic expectations

  • Custom ResNet architecture for CIFAR10 that has the following architecture:
    • PrepLayer - Conv 3x3 s1, p1) >> BN >> RELU [64k]
    • Layer 1
      • X = Conv 3x3 (s1, p1) >> MaxPool2D >> BN >> RELU [128k]
      • R1 = ResBlock( (Conv-BN-ReLU-Conv-BN-ReLU))(X) [128k]
      • Add(X, R1)
    • Layer 2
      • Conv 3x3 [256k]
      • MaxPooling2D
      • BN
      • ReLU
    • Layer 3
      • X = Conv 3x3 (s1, p1) >> MaxPool2D >> BN >> RELU [512k]
      • R2 = ResBlock( (Conv-BN-ReLU-Conv-BN-ReLU))(X) [512k]
      • Add(X, R2)
    • MaxPooling with Kernel Size 4
    • FC Layer
    • SoftMax
  • Uses One Cycle Policy such that:
    • Total Epochs = 24
    • Max at Epoch = 5
    • LRMIN = FIND
    • LRMAX = FIND
    • NO Annihilation
  • Uses this transform
    • RandomCrop 32, 32 (after padding of 4) >> FlipLR >> Followed by CutOut(8, 8)
  • Batch size = 512
  • Use ADAM and CrossEntropyLoss
  • Target Accuracy: 90%

Results:

  • Epochs: 24
  • Parameters: 6,573,130
  • Training Batch size: 512
  • Testing Batch size: 512
  • max lr: 0.0006280291441834253
  • Training
    • Loss=0.0243
    • Accuracy=99.25%
  • Testing
    • Average loss: 0.2660
    • Accuracy: 9281/10000 (92.81%)

Observations:

  • Model is overfitting
  • Need to see if dropout can be added to have a better fit model
  • Should the Augmentations be applied only to few images
  • A couple of times saw that the steepest gradient lr is not good enough for model to converge - Rather the lr at the lowest point was better

s10's People

Contributors

chintanshahds 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.