This project is focused on the problem of traffic sign recognition, where it adapts and tunes the Capsule Network architecture for this particular classification task. The resulting architecture is evaluated on different benchmarks and explained with the LIME approach of Explainable AI.
Reproduction:
- Clone the repository. Let us call to the root folder
project_root
, i.e. all python files are located inproject_root/capsnet
. - Download benchmarks from
https://drive.google.com/file/d/10Nl3ucj1b4u8H-yvl3JNTIBWLtiVN2Eu/view?usp=sharing - Unpack the contents in the folder
project_root
. The archived folderbenchmarks
should come right into the directoryproject_root
. I.e. the folder tree should lookproject_root/benchmarks/{belgium-TSC,china-TSRD,german-GTRSD,rtsd-r1}
. - Install prerequisites. For Anaconda under Windows, an option is to run the script
install.bat
insideproject_root/capsnet
. - Navigate to
project_root/capsnet
. Callpython run_capsnet.py --benchmark all
(alternatively,launch.bat
) and wait until execution is over. Results will be stored in the folderproject_root/capsnet/traindir
. - One can open traindir with TensorBoard by
calling
tensorboard --logdir=./traindir
fromproject_root/capsnet
. Execution summary is available atproject_root/capsnet/traindir/stats.json
.
Already processed traindir with execution results is available at: https://drive.google.com/file/d/1enFqS_TE7eQ5wB3AKLoJ3sTtjVFiuKgP
Other functionality:
- Script
executable.bat
prepares standalone executable. - Script
document.bat
prepares Sphinx-processed documentation.