Skip to content

Some PyTorch Demo Scripts based on MNIST Datasets, so that you can get started with the PyTorch Deep Learning FrameWork.

License

Notifications You must be signed in to change notification settings

Crisescode/pytorch-mnist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyTorch MNIST DEMO

Some pytorch demo scripts based on mnist datasets, so that everyone can get started with the pytorch deep learning framework.

Requirement

  • Python3
  • PyTorch~=1.0.0
  • TorchVision
  • Scikit-Image

Usage

single cpu

cd single_cpu
python main.py -b 256 -e 20 

single gpu

cd single_gpu
python main.py -b 256 -e 20 -g 1 

DataParallel

cd data_parallel
python main.py -b 256 -e 20 -g 2\3\4

DistributedDataParallel

pass

Performance

single gpu / DataParallel

  • batch size: 256
  • batch time: 6s
  • training time: 5min
  • gpu util: 99%
  • gpu memory: 10G

About

Some PyTorch Demo Scripts based on MNIST Datasets, so that you can get started with the PyTorch Deep Learning FrameWork.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages