Skip to content

common neural network models tested on MNIST, pytorch.

Notifications You must be signed in to change notification settings

mattian7/common-NN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

The pytorch code of some common neural network models, running on MNIST dataet.

Requirements

Python >=3.8

pip install -r requirements.txt

Dataset

MNIST

  • num of train data : num of valid data = 9 : 1

Models

Instructions

Run inference:

python inference.py \
--model AlexNet \
--lr 0.005 \
--dropout 0.5 \
--batchsize 64 \
--num_epochs 10

The output will be written to log\$model_name.txt

Add new model or dataset

  • Add new model : Define new model class in model.py
  • Add new dataset : Define new Dataset and Dataloader class in utils.py

About

common neural network models tested on MNIST, pytorch.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages