dopaul commited on
Commit
cc20bb9
·
verified ·
1 Parent(s): 0e67c9e

Upload folder using huggingface_hub

Browse files
Files changed (4) hide show
  1. README.dataset.txt +34 -0
  2. README.md +69 -43
  3. README.roboflow.txt +34 -0
  4. data.yaml +16 -0
README.dataset.txt ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Chess Pieces > 416x416_aug
2
+ https://universe.roboflow.com/joseph-nelson/chess-pieces-new
3
+
4
+ Provided by [Roboflow](https://roboflow.ai)
5
+ License: Public Domain
6
+
7
+ # Overview
8
+
9
+ This is a dataset of Chess board photos and various pieces. All photos were captured from a constant angle, a tripod to the left of the board. The bounding boxes of all pieces are annotated as follows: `white-king`, `white-queen`, `white-bishop`, `white-knight`, `white-rook`, `white-pawn`, `black-king`, `black-queen`, `black-bishop`, `black-knight`, `black-rook`, `black-pawn`. There are 2894 labels across 292 images.
10
+
11
+ ![Chess Example](https://i.imgur.com/nkjobw1.png)
12
+
13
+ **Follow [this tutorial](https://blog.roboflow.ai/training-a-yolov3-object-detection-model-with-a-custom-dataset/) to see an example of training an object detection model using this dataset or jump straight to the [Colab notebook](https://colab.research.google.com/drive/1ByRi9d6_Yzu0nrEKArmLMLuMaZjYfygO#scrollTo=WgHANbxqWJPa).**
14
+
15
+ # Use Cases
16
+
17
+ At Roboflow, we built a chess piece object detection model using this dataset.
18
+
19
+ ![ChessBoss](https://blog.roboflow.ai/content/images/2020/01/chess-detection-longer.gif)
20
+
21
+ You can see a video demo of that [here](https://www.youtube.com/watch?v=XLispu-Yb_0). (We did struggle with pieces that were occluded, i.e. the state of the board at the very beginning of a game has many pieces obscured - let us know how your results fare!)
22
+
23
+ # Using this Dataset
24
+
25
+ We're releasing the data free on a public license.
26
+
27
+ # About Roboflow
28
+
29
+ [Roboflow](https://roboflow.ai) makes managing, preprocessing, augmenting, and versioning datasets for computer vision seamless.
30
+
31
+ Developers reduce 50% of their boilerplate code when using Roboflow's workflow, save training time, and increase model reproducibility.
32
+
33
+ #### [![Roboflow Workmark](https://i.imgur.com/WHFqYSJ.png =350x)](https://roboflow.ai)
34
+
README.md CHANGED
@@ -1,45 +1,71 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: image
5
- dtype: image
6
- - name: image_id
7
- dtype: string
8
- - name: annotations
9
- sequence:
10
- - name: class_id
11
- dtype: int32
12
- - name: x_center
13
- dtype: float32
14
- - name: y_center
15
- dtype: float32
16
- - name: width
17
- dtype: float32
18
- - name: height
19
- dtype: float32
20
- - name: image_width
21
- dtype: int32
22
- - name: image_height
23
- dtype: int32
24
- splits:
25
- - name: train
26
- num_bytes: 14796314.0
27
- num_examples: 606
28
- - name: valid
29
- num_bytes: 1390937.0
30
- num_examples: 58
31
- - name: test
32
- num_bytes: 742690.0
33
- num_examples: 29
34
- download_size: 16901375
35
- dataset_size: 16929941.0
36
- configs:
37
- - config_name: default
38
- data_files:
39
- - split: train
40
- path: data/train-*
41
- - split: valid
42
- path: data/valid-*
43
- - split: test
44
- path: data/test-*
45
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - object-detection
5
+ tags:
6
+ - chess
7
+ - computer-vision
8
+ - yolo
9
+ - object-detection
10
+ size_categories:
11
+ - 1K<n<10K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  ---
13
+
14
+ # Chess Piece Detection Dataset: chess_pieces_roboflow
15
+
16
+ ## Dataset Description
17
+
18
+ This dataset contains chess piece detection annotations in YOLOv8 format.
19
+
20
+ Chess piece detection dataset from Roboflow with processed labels, cleaned and standardized for YOLOv8 format.
21
+
22
+ ## Dataset Structure
23
+
24
+ The dataset follows the YOLOv8 format with the following structure:
25
+ - `train/`: Training images and labels
26
+ - `valid/`: Validation images and labels
27
+ - `test/`: Test images and labels
28
+
29
+ ## Classes
30
+
31
+ The dataset contains 12 classes of chess pieces:
32
+
33
+ 0. black-bishop
34
+ 1. black-king
35
+ 2. black-knight
36
+ 3. black-pawn
37
+ 4. black-queen
38
+ 5. black-rook
39
+ 6. white-bishop
40
+ 7. white-king
41
+ 8. white-knight
42
+ 9. white-pawn
43
+ 10. white-queen
44
+ 11. white-rook
45
+
46
+ ## Usage
47
+
48
+ ```python
49
+ from datasets import load_dataset
50
+
51
+ # Load the dataset
52
+ dataset = load_dataset("dopaul/chess_pieces_roboflow")
53
+
54
+ # Access different splits
55
+ train_data = dataset["train"]
56
+ valid_data = dataset["valid"]
57
+ test_data = dataset["test"]
58
+
59
+ # Example: Access first training image and annotations
60
+ example = train_data[0]
61
+ image = example["image"]
62
+ annotations = example["annotations"]
63
+ ```
64
+
65
+ ## Citation
66
+
67
+ If you use this dataset, please consider citing the original sources and this repository.
68
+
69
+ ## License
70
+
71
+ This dataset is released under the CC BY 4.0 license.
README.roboflow.txt ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Chess Pieces - v24 416x416_aug
3
+ ==============================
4
+
5
+ This dataset was exported via roboflow.com on January 27, 2024 at 10:40 AM GMT
6
+
7
+ Roboflow is an end-to-end computer vision platform that helps you
8
+ * collaborate with your team on computer vision projects
9
+ * collect & organize images
10
+ * understand and search unstructured image data
11
+ * annotate, and create datasets
12
+ * export, train, and deploy computer vision models
13
+ * use active learning to improve your dataset over time
14
+
15
+ For state of the art Computer Vision training notebooks you can use with this dataset,
16
+ visit https://github.com/roboflow/notebooks
17
+
18
+ To find over 100k other datasets and pre-trained models, visit https://universe.roboflow.com
19
+
20
+ The dataset includes 693 images.
21
+ Pieces are annotated in YOLOv8 Oriented Object Detection format.
22
+
23
+ The following pre-processing was applied to each image:
24
+ * Auto-orientation of pixel data (with EXIF-orientation stripping)
25
+ * Resize to 416x416 (Stretch)
26
+
27
+ The following augmentation was applied to create 3 versions of each source image:
28
+ * 50% probability of horizontal flip
29
+ * Randomly crop between 0 and 15 percent of the image
30
+ * Random shear of between -6° to +6° horizontally and -6° to +6° vertically
31
+ * Random brigthness adjustment of between -10 and +10 percent
32
+ * Random exposure adjustment of between -10 and +10 percent
33
+
34
+
data.yaml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ train: ../train/images
2
+ val: ../valid/images
3
+ test: ../test/images
4
+ names:
5
+ 0: black-bishop
6
+ 1: black-king
7
+ 2: black-knight
8
+ 3: black-pawn
9
+ 4: black-queen
10
+ 5: black-rook
11
+ 6: white-bishop
12
+ 7: white-king
13
+ 8: white-knight
14
+ 9: white-pawn
15
+ 10: white-queen
16
+ 11: white-rook