𝑶𝒗𝒆𝒓𝒗𝒊𝒆𝒘 : The goal of this project is able to identify chess pieces on a board or in a video using yolov5.
📁 𝑫𝒂𝒕𝒂𝒔𝒆𝒕 𝑼𝒔𝒆𝒅 : https://universe.roboflow.com/projects-ehrjz/chess-detection-i0woo
The dataset consists of 13 classes:
- 'bishop'
- 'black-bishop'
- 'black-king'
- 'black-knight'
- 'black-pawn'
- 'black-queen'
- 'black-rook'
- 'white-bishop'
- 'white-king'
- 'white-knight'
- 'white-pawn'
- 'white-queen'
- 'white-rook
- Create a bounding boxes with the help of label-img And makesense.ai website according to YoloV5.
- Prepare folder structure that can be accept by YoloV5.
- Cloning the YoloV5 file from official repository.
- Changing the directory of yolov5
- Installing the dependencies
- Download all versions pre-trained weights.
- Go to yolov5/data/.
- Open data.yaml
- Edit the following inside it:
- Training and Validation file path
- Number of classes and Class names.
- Set images size 640 with batch of 8.
- Total 606 images for training and 58 images for validation present in 13 classes.
- Train model around 600 epochs .Stopping training early as no improvement observed in last 100 epochs. Best results observed at epoch 201, best model saved as best.pt.
- Visualise the training metrics with the help of tensorboard.