Skip to content

tolusophy/Classification-Algorithms-Pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Classification-Algorithms-Pytorch

Algorithms for classification written in pytorch

Introduction

I tried to implement algorithms used for classification using the pytorch library. I implemented the following algorithms

  1. AlexNet (https://proceedings.neurips.cc/paper/2012/file/c399862d3b9d6b76c8436e924a68c45b-Paper.pdf) AlexNet-architecture-used-as-the-baseline-model-for-the-analysis-of-results-on-the

  2. VGGNet (https://arxiv.org/abs/1409.1556) minerals-10-00958-g001

  3. EfficientNet (https://arxiv.org/abs/1905.11946)![1_vIZhPImFr9Gjpx6ZB7IOJg](https://user-images.githubusercontent.com/45424924/137969852-6e203b55-3551-478d-88b8-f0bdb810fa6a.png)

The-EffecientNet-B0-general-architecture

  1. InceptionNet (https://arxiv.org/abs/1409.4842) Inception-block-of-the-proposed-network-architecture-Here-n-stands-for-the-number-of

  2. ResNet (https://arxiv.org/abs/1512.03385v1) The-representation-of-model-architecture-image-for-ResNet-152-VGG-19-and-two-layered

  3. PreActResNet (https://arxiv.org/abs/1603.05027v3)

  4. WideResNet (https://arxiv.org/abs/1605.07146v4)

  5. ResNeXt (https://arxiv.org/abs/1611.05431v2) A-block-of-ResNet-Left-and-ResNeXt-with-cardinality-8-Right-A-layer-is-shown-as

  6. DenseNet (https://arxiv.org/abs/1608.06993v4) O8ntGzS

How to use

Requirements:software

Requirements for PyTorch

Requirements:hardware

For most experiments, one or two K40(~11G of memory) gpus is enough cause PyTorch is very memory efficient. However, to train DenseNet on cifar(10 or 100), you need at least 4 K40 gpus.

Usage

  1. Clone this repository
git clone https://github.com/Ti-Oluwanimi/Classification-Algorithms-Pytorch.git
  1. Edit main.py and run.sh

In the main.py, you can specify the network you want to train(for example):

model = resnet20_cifar(num_classes=10)

##Note
Please contact me if there are issues within the codebase. 

About

algorithms for classification written in pytorch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages