Code Monkey home page Code Monkey logo

speedupcnn-pytorch-master's Introduction

SpeedUpCNN-Pytorch-master

This Code describes how to seed up the training of CNN (Convolutional Neural Network), and also shows whether the results change. there are some my Chinese communication websites such as CSDN and Quora (Chinese)-Zhihu where I explain this code.

CSDN

Quora (Chinese)-Zhihu

GPU is RTX 2060 (6G), So the experiment didn't work well. (No Money)

This is just a Demo of how to speed up training on a single and multi-GPU (simulation).

AlexNet was taken as the network architecture(image size required for input was 227x227x3) , CIFAR10 as the datset, Adamw as the gradient descent function, and learning rate mechanism as ReduceLROnPlateau for example.

You should create your own data(dataset), checkpoint(model save) and tenshorboard(loss visualization) file package.


1.The results of the model without DP or DDP

Run Training Code: python Normal/train_XXX.py or train.py

Run Evaluation Code: python Normal/eval.py

Original Model autocast autocast+GradScaler
AP 81.91 84.03 82.20
traing time 22m22s 21m21s 27m27s

2.The results of the model with DP

Run Training Code: python DP/train_XXX.py or train.py

Run Evaluation Code: python DP/eval.py

Original Model autocast autocast+GradScaler
AP 82.16 81.89 84.09
traing time 22m22s 21m21s 27m27s

3.The results of the model with DDP

Run Training Code: python DDP/train_XXX.py or train.py

Run Evaluation Code: python DDP/eval.py

Original Model autocast autocast+GradScaler
AP 82.25 81.63 82.52
traing time 21m21s 20m20s 20m20s

speedupcnn-pytorch-master's People

Contributors

hanxiaoyigithub avatar

Watchers

James Cloos 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.