Update README for StepCountQA-RL-Dense-Plus
Browse files
README.md
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
dataset_info:
|
| 3 |
+
features:
|
| 4 |
+
- name: images
|
| 5 |
+
sequence: image
|
| 6 |
+
- name: problem
|
| 7 |
+
dtype: string
|
| 8 |
+
- name: answer
|
| 9 |
+
dtype: string
|
| 10 |
+
splits:
|
| 11 |
+
- name: train
|
| 12 |
+
num_bytes: 32158573685
|
| 13 |
+
num_examples: 192980
|
| 14 |
+
download_size: 0
|
| 15 |
+
dataset_size: 32158573685
|
| 16 |
+
configs:
|
| 17 |
+
- config_name: default
|
| 18 |
+
data_files:
|
| 19 |
+
- split: train
|
| 20 |
+
path: data/train-*
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
# StepCountQA-RL-Dense-Plus Dataset
|
| 24 |
+
|
| 25 |
+
## Dataset Description
|
| 26 |
+
|
| 27 |
+
StepCountQA-RL-Dense-Plus is a carefully filtered subset of StepCountQA-RL, containing **complete reasoning chains** where the final count is between 11 and 50.
|
| 28 |
+
|
| 29 |
+
**Key Feature**: Each sequence includes **ALL reasoning steps** from count=1 to the final count (11-50), making it ideal for training models on dense counting scenarios with complete reasoning processes.
|
| 30 |
+
|
| 31 |
+
## Dataset Statistics
|
| 32 |
+
|
| 33 |
+
- **Training Samples**: 192,980
|
| 34 |
+
- **Sequences**: ~7,800 complete reasoning chains
|
| 35 |
+
- **Count Range**: 11-50 (final count)
|
| 36 |
+
- **Average Steps per Sequence**: ~24 steps
|
| 37 |
+
|
| 38 |
+
## Data Structure
|
| 39 |
+
|
| 40 |
+
### Complete Reasoning Chain Format
|
| 41 |
+
|
| 42 |
+
Each counting task contains a full reasoning chain from the first to the last point:
|
| 43 |
+
|
| 44 |
+
```
|
| 45 |
+
image.jpg -> count=1, {"point_2d": [x1, y1], "label": "object", "count_number": 1}
|
| 46 |
+
image_1.jpg -> count=2, {"point_2d": [x2, y2], "label": "object", "count_number": 2}
|
| 47 |
+
image_2.jpg -> count=3, {"point_2d": [x3, y3], "label": "object", "count_number": 3}
|
| 48 |
+
...
|
| 49 |
+
image_N.jpg -> count=N+1 (where N+1 is between 11-50)
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
### Data Fields
|
| 53 |
+
|
| 54 |
+
- `images`: A sequence of images (typically one image per sample)
|
| 55 |
+
- `problem`: Question text with reasoning instructions (`<image>\nHow many [objects] are in the image?\n...`)
|
| 56 |
+
- `answer`:
|
| 57 |
+
- During reasoning steps: JSON format `{"point_2d": [x, y], "label": "...", "count_number": N}`
|
| 58 |
+
- Final answer: Simple number string `"N"`
|
| 59 |
+
|
| 60 |
+
## Dataset Characteristics
|
| 61 |
+
|
| 62 |
+
### 1. Complete Reasoning Chains
|
| 63 |
+
- Every sequence starts from count=1
|
| 64 |
+
- Includes all intermediate steps
|
| 65 |
+
- Ends with final count between 11-50
|
| 66 |
+
|
| 67 |
+
### 2. Dense Counting Scenarios
|
| 68 |
+
- Focus on moderately dense object counts (11-50 objects)
|
| 69 |
+
- Suitable for training on challenging counting tasks
|
| 70 |
+
- Balances complexity and tractability
|
| 71 |
+
|
| 72 |
+
### 3. Diverse Object Types
|
| 73 |
+
- People, vehicles, everyday objects
|
| 74 |
+
- Fine-grained object parts (hands, heads, etc.)
|
| 75 |
+
- Various scenes and contexts
|
| 76 |
+
|
| 77 |
+
## Usage Example
|
| 78 |
+
|
| 79 |
+
```python
|
| 80 |
+
from datasets import load_dataset
|
| 81 |
+
|
| 82 |
+
# Load the dataset
|
| 83 |
+
dataset = load_dataset("MING-ZCH/StepCountQA-RL-Dense-Plus")
|
| 84 |
+
|
| 85 |
+
# Access training data
|
| 86 |
+
train_data = dataset["train"]
|
| 87 |
+
|
| 88 |
+
# View a sample
|
| 89 |
+
sample = train_data[0]
|
| 90 |
+
print(sample['problem'])
|
| 91 |
+
print(sample['answer'])
|
| 92 |
+
# The answer may be JSON (intermediate step) or a number (final answer)
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
## Training Recommendations
|
| 96 |
+
|
| 97 |
+
This dataset is particularly useful for:
|
| 98 |
+
- **Incremental counting models**: Learn to count step-by-step
|
| 99 |
+
- **Dense object detection**: Train on moderately crowded scenes
|
| 100 |
+
- **Reasoning consistency**: Ensure models maintain coherent reasoning chains
|
| 101 |
+
- **Point-based annotation**: Learn precise spatial localization
|
| 102 |
+
|
| 103 |
+
## Citation
|
| 104 |
+
|
| 105 |
+
If you use this dataset, please cite the original StepCountQA-RL dataset.
|
| 106 |
+
|
| 107 |
+
## License
|
| 108 |
+
|
| 109 |
+
Follows the same license as the original StepCountQA-RL dataset.
|