Implementation of CIFAR-10 classifier with PyTorch
- Python 2.7
- PyTorch
- LMDB
- Visdom
-
Convert to LMDB format
$ python convert_to_lmdb.py --data_dir ../data
-
(Optional) Test for reading LMDBs
Open
read_lmdb_sample.ipynb
in Jupyter -
Train
$ python train.py --data_dir ../data --logdir ./logs
-
Retrain if you need
$ python train.py --data_dir ./data --logdir ./logs_retrain --restore_checkpoint ./logs/model-100.tar
-
Evaluate
$ python eval.py --data_dir ../data ./logs/model-100.tar
-
Visualize
$ python -m visdom.server $ python visualize.py --logdir ./logs
-
(Optional) Try to make an inference
Open
inference_sample.ipynb
in Jupyter -
Clean
$ rm -rf ./logs or $ rm -rf ./logs_retrain