Maazwaheed commited on
Commit
8a6e094
Β·
verified Β·
1 Parent(s): 84d3a15

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +199 -3
README.md CHANGED
@@ -1,3 +1,199 @@
1
- ---
2
- license: mpl-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ license: mpl-2.0
4
+ task_categories:
5
+ - image-to-text
6
+ - visual-question-answering
7
+ task_ids:
8
+ - image-captioning
9
+ language:
10
+ - en
11
+ size_categories:
12
+ - 10K<n<100K
13
+ tags:
14
+ - computer-vision
15
+ - synthetic-data
16
+ - geometric-shapes
17
+ - motion-analysis
18
+ - multi-object
19
+ - spatial-reasoning
20
+ ---
21
+
22
+ # πŸŒ€ SHAPES Motion Dataset
23
+
24
+ <div align="center">
25
+
26
+ ![Dataset Preview](https://img.shields.io/badge/πŸ“Š-10,000%20Images-blue)
27
+ ![Resolution](https://img.shields.io/badge/πŸ–ΌοΈ-1024x1024-green)
28
+ ![License](https://img.shields.io/badge/πŸ“œ-MPL--2.0-orange)
29
+ ![Motion Types](https://img.shields.io/badge/🎯-Dynamic%20%2B%20Static-purple)
30
+
31
+ *A high-quality synthetic dataset of geometric shapes in motion with rich textual descriptions*
32
+
33
+ </div>
34
+
35
+ ## 🌟 Dataset Highlights
36
+
37
+ - **10,000 high-resolution images** (1024Γ—1024 pixels)
38
+ - **Rich captions** with motion dynamics and spatial relationships
39
+ - **Diverse geometric shapes** with realistic motion trails
40
+ - **Multi-object scenes** with complex interactions
41
+ - **Synthetic but realistic** rendering with gradient backgrounds
42
+
43
+ ## πŸ“Š Dataset Structure
44
+
45
+ ```bash
46
+ set_SHAPES/
47
+ β”œβ”€β”€ images/
48
+ β”‚ β”œβ”€β”€ 00001.jpg
49
+ β”‚ β”œβ”€β”€ 00002.jpg
50
+ β”‚ └── ... (10,000 files)
51
+ └── captions.csv
52
+ ```
53
+
54
+ ### πŸ“‹ Metadata Columns
55
+ - `filename`: Unique image identifier
56
+ - `caption`: Detailed natural language description
57
+ - `motion_type`: [moving, sliding, drifting, streaking, arcing]
58
+ - `dynamics`: [constant, accelerating, decelerating, rotating, curving]
59
+ - `num_objects`: Number of objects in scene (1-3)
60
+
61
+ ## 🎨 Visual Features
62
+
63
+ ### 🟦 Geometric Shapes
64
+ - **Basic**: Circle, Square, Rectangle, Ellipse
65
+ - **Complex**: Triangle, Pentagon
66
+ - **Size Variations**: Tiny β†’ Huge (5 scales)
67
+ - **Color Palette**: 14 distinct colors with contrasting outlines
68
+
69
+ ### 🎬 Motion Dynamics
70
+ ```python
71
+ # Motion Types
72
+ MOTION_VERBS = ['moving', 'sliding', 'drifting', 'streaking', 'arcing']
73
+
74
+ # Dynamics
75
+ MOTION_DYNAMICS = [
76
+ 'at constant speed',
77
+ 'while accelerating',
78
+ 'while decelerating',
79
+ 'while rotating',
80
+ 'in a curve while rotating'
81
+ ]
82
+ ```
83
+
84
+ ### 🎯 Spatial Relations
85
+ - **Positional**: top-left, center, bottom-right, etc.
86
+ - **Relative**: passing by, near, adjacent to
87
+ - **Size comparisons**: larger than, smaller than
88
+
89
+ ## πŸ“ Example Captions
90
+
91
+ **Motion Scene**:
92
+ *"A large wide blue rectangle with a yellow outline is sliding while accelerating from the top left towards the bottom center, passing by a static medium standard red circle with a black outline in the middle."*
93
+
94
+ **Static Scene**:
95
+ *"An image with a huge green pentagon with magenta outline in the bottom right and a tiny tall orange ellipse with cyan outline in the top center."*
96
+
97
+ ## πŸš€ Quick Start
98
+
99
+ ### Installation
100
+ ```bash
101
+ pip install datasets pillow
102
+ ```
103
+
104
+ ### Load Dataset
105
+ ```python
106
+ from datasets import load_dataset
107
+
108
+ dataset = load_dataset("Maazwaheed/set_SHAPES")
109
+ print(f"Dataset size: {len(dataset['train'])}")
110
+ print(f"Sample caption: {dataset['train'][0]['caption']}")
111
+ ```
112
+
113
+ ### Advanced Usage
114
+ ```python
115
+ # Filter motion scenes
116
+ motion_scenes = [item for item in dataset['train']
117
+ if 'moving' in item['caption'] or 'sliding' in item['caption']]
118
+
119
+ # Get multi-object scenes
120
+ multi_object = [item for item in dataset['train']
121
+ if 'and' in item['caption']]
122
+ ```
123
+
124
+ ## πŸ“Š Statistics
125
+
126
+ | Metric | Value |
127
+ |--------|-------|
128
+ | Total Images | 10,000 |
129
+ | Motion Scenes | ~6,000 |
130
+ | Static Scenes | ~4,000 |
131
+ | Avg. Caption Length | 35 words |
132
+ | Color Variations | 14 colors |
133
+ | Shape Types | 6 shapes |
134
+
135
+ ## 🎯 intended Use
136
+
137
+ ### βœ… Primary Tasks
138
+ - **Image Captioning** - Rich descriptions for training
139
+ - **Visual Question Answering** - Spatial reasoning
140
+ - **Motion Understanding** - Dynamic scene analysis
141
+ - **Object Detection** - Multi-object recognition
142
+ - **Synthetic-to-Real Transfer** - Domain adaptation
143
+
144
+ ### ⚠️ Limitations
145
+ - Synthetic data (not real-world)
146
+ - Limited to geometric shapes
147
+ - Predetermined color palette
148
+ - Simplified physics model
149
+
150
+ ## πŸ”§ Technical Details
151
+
152
+ ### Generation Process
153
+ 1. **Background**: Gradient generation with smooth transitions
154
+ 2. **Shapes**: Anti-aliased rendering with outlines
155
+ 3. **Motion**: BΓ©zier curves with trail effects
156
+ 4. **Composition**: Multi-object placement with occlusion handling
157
+ 5. **Captions**: Rule-based natural language generation
158
+
159
+ ### Technical Specs
160
+ - **Format**: JPEG (quality=95)
161
+ - **Color Space**: RGB
162
+ - **Resolution**: 1024Γ—1024
163
+ - **Size per Image**: ~150-250KB
164
+ - **Total Dataset Size**: ~2.5GB
165
+
166
+ ## πŸ“œ License
167
+
168
+ **MPL-2.0** - Allows commercial use, modification, and distribution with appropriate attribution.
169
+
170
+ ## 🀝 Contributing
171
+
172
+ We welcome contributions! Please:
173
+ 1. Fork the repository
174
+ 2. Create a feature branch
175
+ 3. Submit a pull request
176
+ 4. Open issues for suggestions
177
+
178
+ ## πŸ“ž Contact
179
+
180
+ **Maintainer**: Maaz Waheed
181
+ **Email**: [Your Email]
182
+ **Hugging Face**: [Maazwaheed](https://huggingface.co/Maazwaheed)
183
+
184
+ ## πŸ™ Acknowledgments
185
+
186
+ - Hugging Face for dataset hosting
187
+ - PIL/Pillow community for image processing
188
+ - Open-source community for inspiration
189
+
190
+ ---
191
+
192
+ <div align="center">
193
+
194
+ **⭐ Star this dataset if you find it useful!**
195
+
196
+ [![Hugging Face](https://img.shields.io/badge/πŸ€—-View%20on%20HF-yellow)](https://huggingface.co/datasets/Maazwaheed/set_SHAPES)
197
+ [![License](https://img.shields.io/badge/πŸ“œ-MPL--2.0-lightgrey)](https://www.mozilla.org/en-US/MPL/2.0/)
198
+
199
+ </div>