rishuKumar404 commited on
Commit
4f9c5fa
·
verified ·
1 Parent(s): aa464b1

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +145 -0
README.md ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 3D Slicer Medical Imaging GUI Benchmark Dataset (CSV Format)
2
+
3
+ ## Dataset Description
4
+
5
+ This dataset contains **315 end-to-end GUI automation tasks** for 3D Slicer medical imaging software, focusing on MRI brain analysis workflows.
6
+
7
+ ### Dataset Summary
8
+
9
+ - **Total Tasks**: 315
10
+ - **Total Images**: 100 unique screenshots (file paths only)
11
+ - **Application**: 3D Slicer (medical imaging software)
12
+ - **Domain**: Medical imaging, MRI brain analysis
13
+ - **Format**: CSV with file paths (ultra memory-efficient)
14
+
15
+ ### Supported Tasks
16
+
17
+ - GUI automation
18
+ - Medical imaging workflows
19
+ - Visual grounding
20
+ - Action prediction
21
+ - Task planning
22
+
23
+ ## Dataset Structure
24
+
25
+ The dataset is provided as a CSV file with the following columns:
26
+
27
+ - `serial_number`: Task number (1-315)
28
+ - `task_id`: Unique identifier (e.g., "3dslicer_endtoend_001")
29
+ - `task`: Natural language task description
30
+ - `image_sequence`: Screenshot sequence (→ separated)
31
+ - `json_data`: Complete task data in JSON format
32
+ - `num_steps`: Number of steps in the trajectory
33
+ - `num_images`: Number of images for this task
34
+ - `image_paths`: Pipe-separated file paths to images
35
+ - `images_dir`: Base directory for images
36
+
37
+ ### JSON Data Structure
38
+
39
+ The `json_data` field contains:
40
+
41
+ ```json
42
+ {
43
+ "id": "3dslicer_endtoend_001",
44
+ "initial_state": {
45
+ "application": "3D Slicer",
46
+ "display_resolution": [1920, 1080],
47
+ "loaded_image": "Import_Akash_Data.png"
48
+ },
49
+ "instruction": "Task description...",
50
+ "trajectory": [
51
+ {
52
+ "step": 1,
53
+ "action": "CLICK",
54
+ "target": "Load Data (Akash)",
55
+ "screenshot": "Import_Akash_Data.png",
56
+ "note": "Step 1: Interacting with UI elements",
57
+ "bbox": [1054, 0, 1089, 35]
58
+ }
59
+ ],
60
+ "outputs": {
61
+ "final_file": "task_1_output.png",
62
+ "verification": {...},
63
+ "success": true
64
+ }
65
+ }
66
+ ```
67
+
68
+ ### Action Types
69
+
70
+ - **CLICK**: Button clicks, menu selections (71.1%)
71
+ - **SEGMENT**: Drawing ROIs, measurements (15.9%)
72
+ - **COMPLETE**: Task completion (5.8%)
73
+ - **TEXT**: Text input (3.2%)
74
+ - **ZOOM**: Zoom operations (2.0%)
75
+ - **SCROLL**: Navigation (2.0%)
76
+
77
+ ## Usage
78
+
79
+ ```python
80
+ import pandas as pd
81
+ import json
82
+ from PIL import Image
83
+ import os
84
+
85
+ # Load CSV dataset
86
+ df = pd.read_csv("3dslicer_benchmark.csv")
87
+
88
+ # Access a task
89
+ task = df.iloc[0]
90
+ print(f"Task: {task['task']}")
91
+ print(f"Steps: {task['num_steps']}")
92
+
93
+ # Parse JSON data
94
+ task_json = json.loads(task['json_data'])
95
+ print(f"Trajectory: {len(task_json['trajectory'])} steps")
96
+
97
+ # Load images on-demand
98
+ image_paths = task['image_paths'].split('|')
99
+ for i, img_path in enumerate(image_paths):
100
+ if os.path.exists(img_path):
101
+ img = Image.open(img_path)
102
+ print(f"Image {i+1}: {img.size}")
103
+ ```
104
+
105
+ ## Memory Efficiency
106
+
107
+ This CSV-based approach provides:
108
+
109
+ - ✅ **Ultra-low memory usage** - no images loaded into memory
110
+ - ✅ **Fast loading** - CSV loads in seconds
111
+ - ✅ **Flexible access** - load images only when needed
112
+ - ✅ **Easy sharing** - single CSV file
113
+ - ✅ **Scalable** - works with any number of images
114
+
115
+ ## Dataset Creation
116
+
117
+ This dataset was created using:
118
+ - Manual annotation of 3D Slicer workflows
119
+ - Automated bounding box extraction (red/orange/yellow highlights)
120
+ - Robust action inference with strict guardrails
121
+ - Ultra memory-efficient CSV processing
122
+
123
+ ### Quality Assurance
124
+
125
+ - ✅ 100% consistent actions for same UI elements
126
+ - ✅ 100% consistent bounding boxes for same screenshots
127
+ - ✅ Only CLICK actions have bounding boxes
128
+ - ✅ All bounding boxes extracted from images
129
+ - ✅ Strict guardrails prevent inconsistencies
130
+ - ✅ Ultra memory-efficient processing
131
+
132
+ ## Citation
133
+
134
+ ```bibtex
135
+ @dataset{3dslicer_benchmark_2024,
136
+ title={3D Slicer Medical Imaging GUI Benchmark Dataset},
137
+ author={Rishu Kumar},
138
+ year={2024},
139
+ url={https://huggingface.co/datasets/rishuKumar404/MedUI_3DSlicer_CSV}
140
+ }
141
+ ```
142
+
143
+ ## License
144
+
145
+ MIT License