-
This is an API for sports gesture image classification
-
Features
- The model use Swin Transformer (accuracy = 80% on validation dataset)
- Run training and flask API on Docker container
- Provide
onnx
(CPU device)
- Build a docker based on
DockerFile
- Train:
bash train.sh
- Flask api:
bash api.sh
- Browser:
http://localhost:12000/
- Browser:
- Classes: 100
- Size: 224 X224 X 3
- Format:
.jpg
- Number of images: 14572 (train: 4572 , valid: 500, test: 500)
The training code is from Kaggle Sports Gesture Competition: SwinTransformer from Timm
python3 train.py --config {config_file}
- Check the process on Tensorboard:
tensorboard --logdir = sports_api