- Python 3.6
- PyTorch 0.4.1
-
Download SVHN Dataset format 1
-
Extract to data folder, now your folder structure should be like below:
SVHN-TODO.pytorch - data - extra - 1.png - 2.png - ... - digitStruct.mat - test - 1.png - 2.png - ... - digitStruct.mat - train - 1.png - 2.png - ... - digitStruct.mat
-
Train
$ python train.py -d=./data -c=./checkpoints
-
Evaluate
$ python eval.py ./checkpoint/model-100.pth -d=./data
-
Infer
$ python infer.py ./images/15.png -c=./checkpoints/model-100.pth $ python infer.py ./images/62.png -c=./checkpoints/model-100.pth