File size: 2,604 Bytes
fe1eb9b
6d02bfe
 
 
 
 
 
 
 
 
965f976
 
 
 
fe1eb9b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6d02bfe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a38f1b2
6d02bfe
 
 
a38f1b2
6d02bfe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
---
language:
- en
license: apache-2.0
pretty_name: Basic Shapes Object Detection
tags:
- object-detection
- simple
- example
- basic-geometric-shapes
annotations_creators:
- machine-generated
task_categories:
- object-detection
dataset_info:
  features:
  - name: image_id
    dtype: int64
  - name: image
    dtype: image
  - name: width
    dtype: int32
  - name: height
    dtype: int32
  - name: objects
    sequence:
    - name: id
      dtype: int64
    - name: area
      dtype: int64
    - name: bbox
      sequence: float32
      length: 4
    - name: category
      dtype:
        class_label:
          names:
            '0': Square
            '1': Circle
            '2': Triangle
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: test
    path: data/test-*
---

# Basic Shapes Object Detection

## Description

This Basic Shapes Object Detection dataset has been created to test fine-tuning of object detection models. Fine-tuning some model to detect the basic shapes should be rather easy: just a bit of training should be enough to get the model to do correct object detection quite fast.

Each entry in the dataset has a RGB PNG image with a white background and 3 basic geometric shapes:

* A blue square
* A red circle
* A green triangle

All images have the same size. Each image has exactly 1 square, 1 circle and 1 triangle, with their fixed colors. Each entry in the dataset has consequently 3 bounding boxes. The shapes do not overlap.The category IDs are 0, 1 and 2, corresponding to the labels Square, Circle and Triangle.

The dataset has exactly the same structure as the https://huggingface.co/datasets/cppe-5 dataset, but fine-tuning some model to this dataset with basic geometric shapes should require considerable less training compared to the cppe-5 dataset. Once you have tested your fine-tuning code on this dataset, it should also work on more complicated datasets such as the cppe-5 dataset.

![](https://github.com/DriesVerachtert/basic_shapes_object_detection_dataset/blob/main/examples.png)

## Links

The Python code to generate the images can be found at https://github.com/DriesVerachtert/basic_shapes_object_detection_dataset
The dataset can be downloaded from https://huggingface.co/datasets/driesverachtert/basic_shapes_object_detection

## Structure

The bounding boxes are in COCO format (x_min, y_min, width, height).

## License

This dataset is released under Apache 2.0.

## Usage

```python
from datasets import load_dataset
dataset = load_dataset("driesverachtert/basic_shapes_object_detection")
```