Datasets:
Add dataset card
Browse files
README.md
CHANGED
|
@@ -1,32 +1,103 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
-
|
| 5 |
-
|
| 6 |
-
-
|
| 7 |
-
|
| 8 |
-
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
- name: is_last
|
| 14 |
-
dtype: bool
|
| 15 |
-
- name: n_real_points
|
| 16 |
-
dtype: int64
|
| 17 |
-
- name: circle_idx
|
| 18 |
-
dtype: int64
|
| 19 |
-
- name: chunk_idx
|
| 20 |
-
dtype: int64
|
| 21 |
-
splits:
|
| 22 |
-
- name: train
|
| 23 |
-
num_bytes: 69788547.232
|
| 24 |
-
num_examples: 21207
|
| 25 |
-
download_size: 37762168
|
| 26 |
-
dataset_size: 69788547.232
|
| 27 |
-
configs:
|
| 28 |
-
- config_name: default
|
| 29 |
-
data_files:
|
| 30 |
-
- split: train
|
| 31 |
-
path: data/train-*
|
| 32 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- robotics
|
| 5 |
+
tags:
|
| 6 |
+
- trajectory-prediction
|
| 7 |
+
- mouse-control
|
| 8 |
+
- computer-control
|
| 9 |
+
- quick-draw
|
| 10 |
+
- diffusion
|
| 11 |
+
size_categories:
|
| 12 |
+
- 10K<n<100K
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
+
|
| 15 |
+
# Quick, Draw! Circles - Trajectory Dataset
|
| 16 |
+
|
| 17 |
+
Dataset for training trajectory prediction models, specifically designed for the [Qwen-DiT-Draw](https://github.com/HusseinLezzaik/qwen-dit-draw) project.
|
| 18 |
+
|
| 19 |
+
## Dataset Description
|
| 20 |
+
|
| 21 |
+
This dataset contains chunked trajectory data from the [Quick, Draw!](https://quickdraw.withgoogle.com/data) circle category, formatted for training diffusion-based trajectory prediction models.
|
| 22 |
+
|
| 23 |
+
### Key Features
|
| 24 |
+
|
| 25 |
+
- **Variable-length trajectories** with stop signals (GR00T-style)
|
| 26 |
+
- **16-point chunks** with (x, y, state) format
|
| 27 |
+
- **Loss masking** for handling variable-length final chunks
|
| 28 |
+
- **512×512 canvas images** showing drawing progression
|
| 29 |
+
|
| 30 |
+
## Dataset Statistics
|
| 31 |
+
|
| 32 |
+
| Metric | Value |
|
| 33 |
+
|--------|-------|
|
| 34 |
+
| Total samples | 21207 |
|
| 35 |
+
| Source circles | 10000 |
|
| 36 |
+
| Chunk size | 16 points |
|
| 37 |
+
| Canvas size | 512×512 |
|
| 38 |
+
| Avg chunks/circle | 2.1 |
|
| 39 |
+
|
| 40 |
+
## Data Format
|
| 41 |
+
|
| 42 |
+
Each sample contains:
|
| 43 |
+
|
| 44 |
+
```python
|
| 45 |
+
{
|
| 46 |
+
"image": Image, # 512×512 canvas (white for first chunk, partial drawing for rest)
|
| 47 |
+
"instruction": str, # "draw a circle"
|
| 48 |
+
"trajectory": [[x, y, state], ...], # 16 points, normalized [0, 1]
|
| 49 |
+
"mask": [1, 1, ..., 0, 0], # 1=real point, 0=ignore in loss
|
| 50 |
+
"is_last": bool, # True if final chunk of trajectory
|
| 51 |
+
"n_real_points": int, # Number of real points in this chunk (1-16)
|
| 52 |
+
"circle_idx": int, # Source circle index
|
| 53 |
+
"chunk_idx": int, # Chunk index within circle
|
| 54 |
+
}
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
### State Signal
|
| 58 |
+
|
| 59 |
+
- `state = 0`: Continue drawing
|
| 60 |
+
- `state = 1`: Stroke complete (STOP)
|
| 61 |
+
|
| 62 |
+
The model learns WHERE to place the stop signal, not a fixed position.
|
| 63 |
+
|
| 64 |
+
### Loss Masking
|
| 65 |
+
|
| 66 |
+
For final chunks with fewer than 16 real points:
|
| 67 |
+
```
|
| 68 |
+
mask = [1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0]
|
| 69 |
+
↑ real points (count in loss) ↑ ignored
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
## Usage
|
| 73 |
+
|
| 74 |
+
```python
|
| 75 |
+
from datasets import load_dataset
|
| 76 |
+
|
| 77 |
+
dataset = load_dataset("TESS-Computer/quickdraw-circles")
|
| 78 |
+
|
| 79 |
+
# Access a sample
|
| 80 |
+
sample = dataset["train"][0]
|
| 81 |
+
image = sample["image"] # PIL Image
|
| 82 |
+
trajectory = sample["trajectory"] # List of [x, y, state]
|
| 83 |
+
mask = sample["mask"] # Loss mask
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
## Source
|
| 87 |
+
|
| 88 |
+
Data sourced from [Google Quick, Draw! Dataset](https://github.com/googlecreativelab/quickdraw-dataset) (circle category only).
|
| 89 |
+
|
| 90 |
+
## License
|
| 91 |
+
|
| 92 |
+
MIT License
|
| 93 |
+
|
| 94 |
+
## Citation
|
| 95 |
+
|
| 96 |
+
```bibtex
|
| 97 |
+
@misc{quickdraw-circles-trajectory,
|
| 98 |
+
title={Quick, Draw! Circles Trajectory Dataset},
|
| 99 |
+
author={TESS Computer},
|
| 100 |
+
year={2025},
|
| 101 |
+
url={https://huggingface.co/datasets/TESS-Computer/quickdraw-circles}
|
| 102 |
+
}
|
| 103 |
+
```
|