Tr0612 commited on
Commit
a44dd93
·
verified ·
1 Parent(s): 5ef31a4

Add files using upload-large-folder tool

Browse files
Files changed (50) hide show
  1. .gitattributes +0 -1
  2. README.md +202 -3
  3. README.txt +33 -0
  4. mt50_task_prompts.json +313 -0
  5. requirements.txt +5 -0
  6. short-MetaWorld/img_only/drawer-open-v2/2/16.jpg +3 -0
  7. short-MetaWorld/img_only/drawer-open-v2/2/2.jpg +3 -0
  8. short-MetaWorld/img_only/drawer-open-v2/2/5.jpg +3 -0
  9. short-MetaWorld/img_only/drawer-open-v2/2/8.jpg +3 -0
  10. short-MetaWorld/img_only/drawer-open-v2/67/0.jpg +3 -0
  11. short-MetaWorld/img_only/drawer-open-v2/67/1.jpg +3 -0
  12. short-MetaWorld/img_only/drawer-open-v2/67/10.jpg +3 -0
  13. short-MetaWorld/img_only/drawer-open-v2/67/11.jpg +3 -0
  14. short-MetaWorld/img_only/drawer-open-v2/67/12.jpg +3 -0
  15. short-MetaWorld/img_only/drawer-open-v2/67/13.jpg +3 -0
  16. short-MetaWorld/img_only/drawer-open-v2/67/14.jpg +3 -0
  17. short-MetaWorld/img_only/drawer-open-v2/67/15.jpg +3 -0
  18. short-MetaWorld/img_only/drawer-open-v2/67/16.jpg +3 -0
  19. short-MetaWorld/img_only/drawer-open-v2/67/17.jpg +3 -0
  20. short-MetaWorld/img_only/drawer-open-v2/67/18.jpg +3 -0
  21. short-MetaWorld/img_only/drawer-open-v2/67/19.jpg +3 -0
  22. short-MetaWorld/img_only/drawer-open-v2/67/2.jpg +3 -0
  23. short-MetaWorld/img_only/drawer-open-v2/67/3.jpg +3 -0
  24. short-MetaWorld/img_only/drawer-open-v2/67/4.jpg +3 -0
  25. short-MetaWorld/img_only/drawer-open-v2/67/5.jpg +3 -0
  26. short-MetaWorld/img_only/drawer-open-v2/67/6.jpg +3 -0
  27. short-MetaWorld/img_only/drawer-open-v2/67/7.jpg +3 -0
  28. short-MetaWorld/img_only/drawer-open-v2/67/8.jpg +3 -0
  29. short-MetaWorld/img_only/drawer-open-v2/67/9.jpg +3 -0
  30. short-MetaWorld/img_only/drawer-open-v2/93/0.jpg +3 -0
  31. short-MetaWorld/img_only/drawer-open-v2/93/1.jpg +3 -0
  32. short-MetaWorld/img_only/drawer-open-v2/93/10.jpg +3 -0
  33. short-MetaWorld/img_only/drawer-open-v2/93/11.jpg +3 -0
  34. short-MetaWorld/img_only/drawer-open-v2/93/12.jpg +3 -0
  35. short-MetaWorld/img_only/drawer-open-v2/93/13.jpg +3 -0
  36. short-MetaWorld/img_only/drawer-open-v2/93/14.jpg +3 -0
  37. short-MetaWorld/img_only/drawer-open-v2/93/15.jpg +3 -0
  38. short-MetaWorld/img_only/drawer-open-v2/93/16.jpg +3 -0
  39. short-MetaWorld/img_only/drawer-open-v2/93/17.jpg +3 -0
  40. short-MetaWorld/img_only/drawer-open-v2/93/18.jpg +3 -0
  41. short-MetaWorld/img_only/drawer-open-v2/93/19.jpg +3 -0
  42. short-MetaWorld/img_only/drawer-open-v2/93/2.jpg +3 -0
  43. short-MetaWorld/img_only/drawer-open-v2/93/3.jpg +3 -0
  44. short-MetaWorld/img_only/drawer-open-v2/93/4.jpg +3 -0
  45. short-MetaWorld/img_only/drawer-open-v2/93/5.jpg +3 -0
  46. short-MetaWorld/img_only/drawer-open-v2/93/6.jpg +3 -0
  47. short-MetaWorld/img_only/drawer-open-v2/93/7.jpg +3 -0
  48. short-MetaWorld/img_only/drawer-open-v2/93/8.jpg +3 -0
  49. short-MetaWorld/img_only/drawer-open-v2/93/9.jpg +3 -0
  50. short_metaworld_loader.py +241 -0
.gitattributes CHANGED
@@ -1,6 +1,5 @@
1
  *.7z filter=lfs diff=lfs merge=lfs -text
2
  *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.avro filter=lfs diff=lfs merge=lfs -text
4
  *.bin filter=lfs diff=lfs merge=lfs -text
5
  *.bz2 filter=lfs diff=lfs merge=lfs -text
6
  *.ckpt filter=lfs diff=lfs merge=lfs -text
 
1
  *.7z filter=lfs diff=lfs merge=lfs -text
2
  *.arrow filter=lfs diff=lfs merge=lfs -text
 
3
  *.bin filter=lfs diff=lfs merge=lfs -text
4
  *.bz2 filter=lfs diff=lfs merge=lfs -text
5
  *.ckpt filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,202 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - robotics
5
+ - reinforcement-learning
6
+ tags:
7
+ - metaworld
8
+ - robotics
9
+ - manipulation
10
+ - multi-task
11
+ - r3m
12
+ - vision-language
13
+ - imitation
14
+ size_categories:
15
+ - 1K<n<10K
16
+ language:
17
+ - en
18
+ pretty_name: Short-MetaWorld Dataset
19
+ dataset_info:
20
+ features:
21
+ - name: image
22
+ dtype: image
23
+ - name: state
24
+ dtype:
25
+ sequence: float32
26
+ - name: action
27
+ dtype:
28
+ sequence: float32
29
+ - name: prompt
30
+ dtype: string
31
+ - name: task_name
32
+ dtype: string
33
+ splits:
34
+ - name: train
35
+ num_bytes: 1900000000
36
+ num_examples: 40000
37
+ download_size: 1900000000
38
+ dataset_size: 1900000000
39
+ ---
40
+
41
+ # Short-MetaWorld Dataset
42
+
43
+ ## Overview
44
+
45
+ Short-MetaWorld is a curated dataset from Meta-World containing **Multi-Task 10 (MT10)** and **Meta-Learning 10 (ML10)** tasks with **100 successful trajectories per task** and **20 steps per trajectory**. This dataset is specifically designed for multi-task robot learning, imitation learning, and vision-language robotics research.
46
+
47
+ ## 🚀 Quick Start
48
+
49
+ ```python
50
+ from short_metaworld_loader import load_short_metaworld
51
+ from torch.utils.data import DataLoader
52
+
53
+ # Load the dataset
54
+ dataset = load_short_metaworld("./", image_size=224)
55
+
56
+ # Create a DataLoader
57
+ dataloader = DataLoader(dataset, batch_size=32, shuffle=True)
58
+
59
+ # Get a sample
60
+ sample = dataset[0]
61
+ print(f"Image shape: {sample['image'].shape}")
62
+ print(f"State: {sample['state']}")
63
+ print(f"Action: {sample['action']}")
64
+ print(f"Task: {sample['task_name']}")
65
+ print(f"Prompt: {sample['prompt']}")
66
+ ```
67
+
68
+ ## 📁 Dataset Structure
69
+
70
+ ```
71
+ short-MetaWorld/
72
+ ├── README.txt # Original dataset documentation
73
+ ├── short-MetaWorld/
74
+ │ ├── img_only/ # 224x224 RGB images
75
+ │ │ ├── button-press-topdown-v2/
76
+ │ │ │ ├── 0/ # Trajectory 0
77
+ │ │ │ │ ├── 0.jpg # Step 0
78
+ │ │ │ │ ├── 1.jpg # Step 1
79
+ │ │ │ │ └── ...
80
+ │ │ │ ├── 1/ # Trajectory 1
81
+ │ │ │ └── ...
82
+ │ │ ├── door-open-v2/
83
+ │ │ └── ...
84
+ │ └── r3m-processed/ # R3M processed features
85
+ │ └── r3m_MT10_20/
86
+ │ ├── button-press-topdown-v2.pkl
87
+ │ ├── door-open-v2.pkl
88
+ │ └── ...
89
+ └── r3m-processed/ # Additional R3M data
90
+ └── r3m_MT10_20/
91
+ ├── mt50_task_prompts.json # Task descriptions & prompts
92
+ ├── short_metaworld_loader.py # Dataset loader
93
+ └── requirements.txt
94
+ ```
95
+
96
+ ## 🎯 Tasks Included
97
+
98
+ ### Multi-Task 10 (MT10)
99
+ - `button-press-topdown-v2` - Press button from above
100
+ - `door-open-v2` - Open door by pulling handle
101
+ - `drawer-close-v2` - Close drawer
102
+ - `drawer-open-v2` - Open drawer
103
+ - `peg-insert-side-v2` - Insert peg into hole
104
+ - `pick-place-v2` - Pick up object and place on target
105
+
106
+ ### Meta-Learning 10 (ML10)
107
+ Additional tasks for meta-learning evaluation.
108
+
109
+ ## 📊 Data Format
110
+
111
+ - **Images**: 224×224 RGB images in JPEG format
112
+ - **States**: 7-dimensional robot state vectors (joint positions)
113
+ - **Actions**: 4-dimensional continuous control actions
114
+ - **Prompts**: Natural language task descriptions in 3 styles:
115
+ - `simple`: Brief task description
116
+ - `detailed`: Comprehensive task explanation
117
+ - `task_specific`: Context-specific variations
118
+ - **R3M Features**: Pre-processed visual representations using R3M model
119
+
120
+ ## 💾 Loading the Dataset
121
+
122
+ The dataset comes with a comprehensive loader (`short_metaworld_loader.py`):
123
+
124
+ ```python
125
+ # Load specific tasks
126
+ mt10_tasks = [
127
+ "reach-v2", "push-v2", "pick-place-v2", "door-open-v2",
128
+ "drawer-open-v2", "drawer-close-v2", "button-press-topdown-v2",
129
+ "button-press-v2", "button-press-wall-v2", "button-press-topdown-wall-v2"
130
+ ]
131
+ dataset = load_short_metaworld("./", tasks=mt10_tasks)
132
+
133
+ # Load all available tasks
134
+ dataset = load_short_metaworld("./")
135
+
136
+ # Get dataset statistics
137
+ stats = dataset.get_dataset_stats()
138
+ print(f"Total steps: {stats['total_steps']}")
139
+ print(f"Tasks: {stats['tasks']}")
140
+
141
+ # Get task-specific prompts
142
+ task_info = dataset.get_task_info("pick-place-v2")
143
+ print(task_info['detailed']) # Detailed task description
144
+ ```
145
+
146
+ ## 🔬 Research Applications
147
+
148
+ This dataset is designed for:
149
+
150
+ - **Multi-task Reinforcement Learning**: Train policies across multiple manipulation tasks
151
+ - **Imitation Learning**: Learn from demonstration trajectories
152
+ - **Vision-Language Robotics**: Connect visual observations with natural language instructions
153
+ - **Meta-Learning**: Adapt quickly to new manipulation tasks
154
+ - **Robot Policy Training**: End-to-end visuomotor control
155
+
156
+ ## 📈 Dataset Statistics
157
+
158
+ - **Total trajectories**: 2,000 (100 per task × 20 tasks)
159
+ - **Total steps**: ~40,000 (20 steps per trajectory)
160
+ - **Image resolution**: 224×224 RGB
161
+ - **State dimension**: 7 (robot joint positions)
162
+ - **Action dimension**: 4 (continuous control)
163
+ - **Dataset size**: ~1.9GB
164
+
165
+ ## 🛠️ Installation
166
+
167
+ ```bash
168
+ pip install torch torchvision Pillow numpy
169
+ ```
170
+
171
+ ## 📖 Citation
172
+
173
+ If you use this dataset, please cite:
174
+
175
+ ```bibtex
176
+ @inproceedings{yu2020meta,
177
+ title={Meta-world: A benchmark and evaluation for multi-task and meta reinforcement learning},
178
+ author={Yu, Tianhe and Quillen, Deirdre and He, Zhanpeng and Julian, Ryan and Hausman, Karol and Finn, Chelsea and Levine, Sergey},
179
+ booktitle={Conference on robot learning},
180
+ pages={1094--1100},
181
+ year={2020},
182
+ organization={PMLR}
183
+ }
184
+
185
+ @inproceedings{nair2022r3m,
186
+ title={R3M: A Universal Visual Representation for Robot Manipulation},
187
+ author={Nair, Suraj and Rajeswaran, Aravind and Kumar, Vikash and Finn, Chelsea and Gupta, Abhinav},
188
+ booktitle={Conference on Robot Learning},
189
+ pages={892--902},
190
+ year={2023},
191
+ organization={PMLR}
192
+ }
193
+ ```
194
+
195
+ ## 📧 Contact
196
+
197
+ - Original dataset: liangzx@connect.hku.hk
198
+ - Questions about this upload: Open an issue in the dataset repository
199
+
200
+ ## ⚖️ License
201
+
202
+ MIT License - See LICENSE file for details.
README.txt ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1. Overview
2
+ Short-MetaWorld is a dataset rendered from modified environment of Meta-World [1], which contains Multi-Task10(MT10) and Meta-Learning10(ML10) in total 20 tasks with 100 successful trajectories for each task. Each trajectory is padded to 20 steps.
3
+
4
+ 2. File Structure
5
+ This directory contains 3 sub-directories.
6
+
7
+ └── short-MetaWorld
8
+ ├── task_description.py # language instructions for each task
9
+ ├── img_only # rendered visual inputs for all tasks
10
+ │ ├── button-press-topdown-v2 # task name
11
+ │ │ ├── 0 # trajectory id
12
+ │ │ │ ├── 0.jpg # step 0 observation (224*224)
13
+ │ │ │ ├── 1.jpg # step 1 observation
14
+ │ │ │ └── ...
15
+ │ │ ├── 1
16
+ │ │ └── ...
17
+ │ ├── door-open-v2
18
+ │ └── ...
19
+ ├── unprocessed # trajectory actions with visual observations (256*256)
20
+ │ ├── unprocessed_MT10_20 # task name
21
+ │ │ ├── data.pkl # a file contains all 10 tasks
22
+ │ │ ├── door-open-v2.pkl # door-open task file
23
+ │ │ └── ...
24
+ │ └── unprocessed_ML10_20
25
+ └── r3m-processed # trajectory actions with visual obs processed by R3M [2]
26
+
27
+ 3. Contact
28
+ If you have any questions, please contact liangzx@connect.hku.hk
29
+
30
+ [1] Yu, Tianhe, et al. "Meta-world: A benchmark and evaluation for multi-task and meta reinforcement learning." Conference on robot learning. PMLR, 2020.
31
+ [2] Nair, Suraj, et al. "R3M: A Universal Visual Representation for Robot Manipulation." Conference on Robot Learning. PMLR, 2023.
32
+
33
+
mt50_task_prompts.json ADDED
@@ -0,0 +1,313 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "reach-v2": {
3
+ "simple": "Reach the target location with the end-effector.",
4
+ "detailed": "Move the robot's hand to touch the highlighted target position. Ensure the end-effector is precisely aligned with the target for optimal task completion. This task requires careful control of the robot's arm to avoid overshooting the target.",
5
+ "task_specific": "The target is located at the far end of the workspace, requiring full extension of the arm."
6
+ },
7
+ "push-v2": {
8
+ "simple": "Push the object to the goal position.",
9
+ "detailed": "Use the gripper to push the small cylinder until it reaches the marked target location. Maintain a steady force to ensure the object moves smoothly without toppling. This task emphasizes the importance of controlled linear motion.",
10
+ "task_specific": "The target location is slightly elevated, requiring an upward push."
11
+ },
12
+ "pick-place-v2": {
13
+ "simple": "Pick up the object and place it on the target.",
14
+ "detailed": "Grasp the cube, lift it and accurately place it onto the designated goal site. Ensure the cube is stable and centered on the target to prevent it from falling. This task tests the precision of the pick-and-place operation.",
15
+ "task_specific": "The goal site is surrounded by obstacles, requiring careful navigation."
16
+ },
17
+ "door-open-v2": {
18
+ "simple": "Open the door by pulling the handle.",
19
+ "detailed": "Grip the door handle, pull it towards you to fully open the door. Apply a consistent force to overcome the door's resistance. This task requires understanding the mechanics of door operation.",
20
+ "task_specific": "The door is heavier than usual, requiring additional force."
21
+ },
22
+ "drawer-open-v2": {
23
+ "simple": "Open the drawer.",
24
+ "detailed": "Grab the drawer handle and pull it outwards until the drawer is fully open. Ensure the drawer is pulled straight to avoid jamming. This task focuses on the smoothness of the pulling action.",
25
+ "task_specific": "The drawer contains fragile items, necessitating a gentle pull."
26
+ },
27
+ "drawer-close-v2": {
28
+ "simple": "Close the drawer.",
29
+ "detailed": "Push the drawer until it is completely closed. Apply a steady force to ensure the drawer closes evenly. This task highlights the importance of even force distribution.",
30
+ "task_specific": "The drawer has a soft-close mechanism, requiring a gentle push at the end."
31
+ },
32
+ "button-press-topdown-v2": {
33
+ "simple": "Press the button from above.",
34
+ "detailed": "Move the gripper top-down to press the red button until it clicks. Ensure the button is pressed with sufficient force to activate it. This task tests the accuracy of vertical motion.",
35
+ "task_specific": "The button is located on a sloped surface, requiring angle adjustment."
36
+ },
37
+ "button-press-v2": {
38
+ "simple": "Press the button.",
39
+ "detailed": "Approach and press the blue button on the front panel. Apply enough pressure to ensure the button is fully depressed. This task requires precision in targeting the button.",
40
+ "task_specific": "The button is smaller than usual, requiring precise alignment."
41
+ },
42
+ "button-press-wall-v2": {
43
+ "simple": "Press the wall-mounted button.",
44
+ "detailed": "Move forward to press the button located on the vertical wall. Ensure the button is pressed with a direct force to avoid slipping. This task emphasizes the importance of approach angle.",
45
+ "task_specific": "The button is recessed, requiring a deeper press."
46
+ },
47
+ "button-press-topdown-wall-v2": {
48
+ "simple": "Press the wall button from above.",
49
+ "detailed": "Descend onto the wall-mounted button and press it. Apply a controlled force to ensure the button is activated without damaging the wall. This task tests the precision of top-down approaches.",
50
+ "task_specific": "The button is surrounded by a protective casing, requiring careful navigation."
51
+ },
52
+ "door-close-v2": {
53
+ "simple": "Close the door.",
54
+ "detailed": "Push the door handle away to fully close the door. Apply a consistent force to ensure the door latches securely. This task requires understanding the mechanics of door closure.",
55
+ "task_specific": "The door has a spring mechanism, requiring a firm push."
56
+ },
57
+ "hammer-v2": {
58
+ "simple": "Hammer the nail.",
59
+ "detailed": "Pick up the hammer and hit the nail until it is flush. Ensure each strike is accurate to avoid bending the nail. This task tests the precision and force of hammering actions.",
60
+ "task_specific": "The nail is positioned at an angle, requiring careful alignment."
61
+ },
62
+ "handle-press-side-v2": {
63
+ "simple": "Press the handle sideways.",
64
+ "detailed": "Push the handle laterally to activate it. Ensure the handle is fully depressed to engage the mechanism. This task emphasizes the importance of lateral force application.",
65
+ "task_specific": "The handle is stiff, requiring additional force."
66
+ },
67
+ "handle-press-v2": {
68
+ "simple": "Press the handle down.",
69
+ "detailed": "Press the top of the handle downward until the mechanism clicks. Apply a steady force to ensure the handle is fully engaged. This task tests the precision of downward force application.",
70
+ "task_specific": "The handle is located at an awkward angle, requiring wrist adjustment."
71
+ },
72
+ "handle-pull-v2": {
73
+ "simple": "Pull the handle.",
74
+ "detailed": "Grip and pull the handle towards you. Apply a consistent force to ensure the handle is fully extended. This task requires understanding the mechanics of handle operation.",
75
+ "task_specific": "The handle is slippery, requiring a firm grip."
76
+ },
77
+ "handle-pull-side-v2": {
78
+ "simple": "Pull the handle sideways.",
79
+ "detailed": "Pull the handle laterally along its slot. Ensure the handle is fully extended to engage the mechanism. This task emphasizes the importance of lateral motion.",
80
+ "task_specific": "The handle is partially obstructed, requiring careful navigation."
81
+ },
82
+ "lever-pull-v2": {
83
+ "simple": "Pull the lever.",
84
+ "detailed": "Grab the lever and pull it down to the end. Apply a steady force to ensure the lever is fully engaged. This task tests the precision of downward force application.",
85
+ "task_specific": "The lever is rusted, requiring additional force."
86
+ },
87
+ "peg-insert-side-v2": {
88
+ "simple": "Insert the peg into the hole.",
89
+ "detailed": "Pick the peg and slide it into the side hole until fully seated. Ensure the peg is aligned with the hole to avoid jamming. This task tests the precision of insertion actions.",
90
+ "task_specific": "The hole is slightly smaller, requiring precise alignment."
91
+ },
92
+ "pick-place-wall-v2": {
93
+ "simple": "Pick object and place it on the wall shelf.",
94
+ "detailed": "Lift the cube then place it onto the shelf attached to the wall. Ensure the cube is stable and centered on the shelf to prevent it from falling. This task tests the precision of pick-and-place operations.",
95
+ "task_specific": "The shelf is narrow, requiring careful placement."
96
+ },
97
+ "push-wall-v2": {
98
+ "simple": "Push the object along the wall to the target.",
99
+ "detailed": "From the side, push the cylinder along the wall until it reaches the goal mark. Maintain a steady force to ensure the object moves smoothly without toppling. This task emphasizes the importance of controlled linear motion.",
100
+ "task_specific": "The wall is uneven, requiring angle adjustment."
101
+ },
102
+ "reach-wall-v2": {
103
+ "simple": "Reach to the wall target.",
104
+ "detailed": "Extend the gripper to touch the target point on the wall. Ensure the end-effector is precisely aligned with the target for optimal task completion. This task requires careful control of the robot's arm to avoid overshooting the target.",
105
+ "task_specific": "The target is located at a high point, requiring full extension of the arm."
106
+ },
107
+ "shelf-place-v2": {
108
+ "simple": "Place the object on the shelf.",
109
+ "detailed": "Pick up the cube and place it carefully onto the shelf surface. Ensure the cube is stable and centered on the shelf to prevent it from falling. This task tests the precision of pick-and-place operations.",
110
+ "task_specific": "The shelf is cluttered, requiring careful navigation."
111
+ },
112
+ "sweep-into-v2": {
113
+ "simple": "Sweep the object into the bowl.",
114
+ "detailed": "Use the tool to sweep the ball into the container. Ensure the ball is fully inside the container to complete the task. This task tests the precision of sweeping actions.",
115
+ "task_specific": "The container is small, requiring precise aim."
116
+ },
117
+ "sweep-v2": {
118
+ "simple": "Sweep the object off the table.",
119
+ "detailed": "Sweep the debris across the tabletop and drop it over the edge. Ensure all debris is cleared from the table to complete the task. This task tests the precision of sweeping actions.",
120
+ "task_specific": "The debris is scattered, requiring multiple sweeps."
121
+ },
122
+ "window-open-v2": {
123
+ "simple": "Open the window.",
124
+ "detailed": "Slide the window latch and pull to open it. Apply a consistent force to ensure the window opens smoothly. This task requires understanding the mechanics of window operation.",
125
+ "task_specific": "The window is stuck, requiring additional force."
126
+ },
127
+ "window-close-v2": {
128
+ "simple": "Close the window.",
129
+ "detailed": "Push the window until it is fully closed and latched. Apply a steady force to ensure the window closes evenly. This task highlights the importance of even force distribution.",
130
+ "task_specific": "The window has a soft-close mechanism, requiring a gentle push at the end."
131
+ },
132
+ "coffee-button-v2": {
133
+ "simple": "Press the coffee machine button.",
134
+ "detailed": "Press the brew button on the coffee machine panel. Ensure the button is pressed with sufficient force to activate it. This task tests the accuracy of button pressing actions.",
135
+ "task_specific": "The button is smaller than usual, requiring precise alignment."
136
+ },
137
+ "coffee-pull-v2": {
138
+ "simple": "Pull the coffee lever.",
139
+ "detailed": "Pull down the lever to start the coffee extraction. Apply a steady force to ensure the lever is fully engaged. This task tests the precision of downward force application.",
140
+ "task_specific": "The lever is stiff, requiring additional force."
141
+ },
142
+ "coffee-push-v2": {
143
+ "simple": "Push the coffee lever back up.",
144
+ "detailed": "Push the lever upward to reset the coffee machine. Apply a steady force to ensure the lever is fully engaged. This task tests the precision of upward force application.",
145
+ "task_specific": "The lever is located at an awkward angle, requiring wrist adjustment."
146
+ },
147
+ "dial-turn-v2": {
148
+ "simple": "Turn the dial to the target angle.",
149
+ "detailed": "Grip the dial knob and rotate it until it points at the target value. Ensure the dial is turned smoothly to avoid overshooting the target. This task tests the precision of rotational actions.",
150
+ "task_specific": "The dial is stiff, requiring additional force."
151
+ },
152
+ "disassemble-v2": {
153
+ "simple": "Disassemble the object by pulling it apart.",
154
+ "detailed": "Pull the two pieces apart to disassemble the structure. Apply a steady force to ensure the pieces separate cleanly. This task tests the precision of disassembly actions.",
155
+ "task_specific": "The pieces are tightly fitted, requiring additional force."
156
+ },
157
+ "door-lock-v2": {
158
+ "simple": "Lock the door.",
159
+ "detailed": "Rotate the lock mechanism to secure the door. Ensure the lock is fully engaged to prevent the door from opening. This task tests the precision of rotational actions.",
160
+ "task_specific": "The lock is stiff, requiring additional force."
161
+ },
162
+ "hand-insert-v2": {
163
+ "simple": "Insert the peg with the gripper hand.",
164
+ "detailed": "Align and insert the gripper into the slot until fully seated. Ensure the gripper is aligned with the slot to avoid jamming. This task tests the precision of insertion actions.",
165
+ "task_specific": "The slot is narrow, requiring precise alignment."
166
+ },
167
+ "handover-v2": {
168
+ "simple": "Hand over the object.",
169
+ "detailed": "Pick up the object and move it to the hand-over position. Ensure the object is stable during the transfer to prevent dropping. This task tests the precision of handover actions.",
170
+ "task_specific": "The hand-over position is elevated, requiring careful lifting."
171
+ },
172
+ "lamp-turn-on-v2": {
173
+ "simple": "Turn on the lamp.",
174
+ "detailed": "Flip the lamp switch upwards to turn it on. Ensure the switch is fully engaged to activate the lamp. This task tests the precision of switch flipping actions.",
175
+ "task_specific": "The switch is located at an awkward angle, requiring wrist adjustment."
176
+ },
177
+ "pour-v2": {
178
+ "simple": "Pour the liquid into the cup.",
179
+ "detailed": "Lift the pitcher and pour its contents into the mug until full. Ensure the liquid is poured smoothly to avoid spillage. This task tests the precision of pouring actions.",
180
+ "task_specific": "The mug is small, requiring precise aim."
181
+ },
182
+ "soccer-v2": {
183
+ "simple": "Kick the ball into the goal.",
184
+ "detailed": "Push the soccer ball forward until it crosses the goal line. Ensure the ball is kicked with sufficient force to reach the goal. This task tests the precision of kicking actions.",
185
+ "task_specific": "The goal is narrow, requiring precise aim."
186
+ },
187
+ "stick-push-v2": {
188
+ "simple": "Push the stick to the target.",
189
+ "detailed": "Use the stick to push the object toward the goal location. Ensure the stick is applied with a steady force to avoid overshooting the target. This task tests the precision of pushing actions.",
190
+ "task_specific": "The target is elevated, requiring an upward push."
191
+ },
192
+ "stick-pull-v2": {
193
+ "simple": "Pull the stick object towards you.",
194
+ "detailed": "Hook the stick and pull it to the designated area. Ensure the stick is applied with a steady force to avoid overshooting the target. This task tests the precision of pulling actions.",
195
+ "task_specific": "The target is recessed, requiring a deeper pull."
196
+ },
197
+ "switch-v2": {
198
+ "simple": "Flip the switch.",
199
+ "detailed": "Toggle the electrical switch from off to on. Ensure the switch is fully engaged to activate the circuit. This task tests the precision of switch toggling actions.",
200
+ "task_specific": "The switch is located at an awkward angle, requiring wrist adjustment."
201
+ },
202
+ "basketball-v2": {
203
+ "simple": "Shoot the basketball into the hoop.",
204
+ "detailed": "Lift and throw the ball so it passes through the basket. Ensure the ball is thrown with sufficient force to reach the basket. This task tests the precision of throwing actions.",
205
+ "task_specific": "The basket is elevated, requiring a high throw."
206
+ },
207
+ "faucet-open-v2": {
208
+ "simple": "Open the faucet.",
209
+ "detailed": "Rotate the faucet handle to start water flow. Ensure the handle is turned smoothly to avoid overshooting the target. This task tests the precision of rotational actions.",
210
+ "task_specific": "The handle is stiff, requiring additional force."
211
+ },
212
+ "faucet-close-v2": {
213
+ "simple": "Close the faucet.",
214
+ "detailed": "Turn the faucet handle to stop the water. Ensure the handle is turned smoothly to avoid overshooting the target. This task tests the precision of rotational actions.",
215
+ "task_specific": "The handle is stiff, requiring additional force."
216
+ },
217
+ "ladle-pick-v2": {
218
+ "simple": "Pick up the ladle.",
219
+ "detailed": "Grab the ladle handle and lift it from the pot. Ensure the ladle is lifted smoothly to avoid spillage. This task tests the precision of lifting actions.",
220
+ "task_specific": "The ladle is heavy, requiring additional force."
221
+ },
222
+ "safepick-v2": {
223
+ "simple": "Pick up the object from the safe.",
224
+ "detailed": "Open the safe and retrieve the object inside. Ensure the object is handled carefully to avoid damage. This task tests the precision of retrieval actions.",
225
+ "task_specific": "The object is fragile, requiring gentle handling."
226
+ },
227
+ "safepush-v2": {
228
+ "simple": "Push the safe door closed.",
229
+ "detailed": "Push on the safe door until it clicks shut. Ensure the door is pushed with sufficient force to engage the lock. This task tests the precision of pushing actions.",
230
+ "task_specific": "The door is heavy, requiring additional force."
231
+ },
232
+ "scale-v2": {
233
+ "simple": "Place the object on the scale.",
234
+ "detailed": "Pick up the cube and put it onto the scale platform. Ensure the cube is placed gently to avoid tipping the scale. This task tests the precision of placement actions.",
235
+ "task_specific": "The scale is sensitive, requiring gentle placement."
236
+ },
237
+ "spoon-pick-v2": {
238
+ "simple": "Pick up the spoon.",
239
+ "detailed": "Grip the spoon handle and lift it. Ensure the spoon is lifted smoothly to avoid spillage. This task tests the precision of lifting actions.",
240
+ "task_specific": "The spoon is slippery, requiring a firm grip."
241
+ },
242
+ "tray-pick-v2": {
243
+ "simple": "Pick up the tray.",
244
+ "detailed": "Slide under the tray and lift it from the table. Ensure the tray is lifted smoothly to avoid spillage. This task tests the precision of lifting actions.",
245
+ "task_specific": "The tray is heavy, requiring additional force."
246
+ },
247
+ "utensil-pick-v2": {
248
+ "simple": "Pick up the utensil.",
249
+ "detailed": "Grab the utensil handle and lift it off the table. Ensure the utensil is lifted smoothly to avoid spillage. This task tests the precision of lifting actions.",
250
+ "task_specific": "The utensil is slippery, requiring a firm grip."
251
+ },
252
+ "basketball-v3": {
253
+ "simple": "Shoot the basketball into the hoop.",
254
+ "detailed": "Lift and throw the ball so it passes through the basket. Ensure the ball is thrown with sufficient force to reach the basket. This task tests the precision of throwing actions.",
255
+ "task_specific": "The basket is elevated, requiring a high throw."
256
+ },
257
+ "button-press-topdown-v3": {
258
+ "simple": "Press the button from above.",
259
+ "detailed": "Move the gripper top-down to press the red button until it clicks. Ensure the button is pressed with sufficient force to activate it. This task tests the accuracy of vertical motion.",
260
+ "task_specific": "The button is located on a sloped surface, requiring angle adjustment."
261
+ },
262
+ "door-open-v3": {
263
+ "simple": "Open the door by pulling the handle.",
264
+ "detailed": "Grip the door handle, pull it towards you to fully open the door. Apply a consistent force to overcome the door's resistance. This task requires understanding the mechanics of door operation.",
265
+ "task_specific": "The door is heavier than usual, requiring additional force."
266
+ },
267
+ "drawer-close-v3": {
268
+ "simple": "Close the drawer.",
269
+ "detailed": "Push the drawer until it is completely closed. Apply a steady force to ensure the drawer closes evenly. This task highlights the importance of even force distribution.",
270
+ "task_specific": "The drawer has a soft-close mechanism, requiring a gentle push at the end."
271
+ },
272
+ "peg-insert-side-v3": {
273
+ "simple": "Insert the peg into the hole.",
274
+ "detailed": "Pick the peg and slide it into the side hole until fully seated. Ensure the peg is aligned with the hole to avoid jamming. This task tests the precision of insertion actions.",
275
+ "task_specific": "The hole is slightly smaller, requiring precise alignment."
276
+ },
277
+ "pick-place-v3": {
278
+ "simple": "Pick up the object and place it on the target.",
279
+ "detailed": "Grasp the cube, lift it and accurately place it onto the designated goal site. Ensure the cube is stable and centered on the target to prevent it from falling. This task tests the precision of the pick-and-place operation.",
280
+ "task_specific": "The goal site is surrounded by obstacles, requiring careful navigation."
281
+ },
282
+ "push-v3": {
283
+ "simple": "Push the object to the goal position.",
284
+ "detailed": "Use the gripper to push the small cylinder until it reaches the marked target location. Maintain a steady force to ensure the object moves smoothly without toppling. This task emphasizes the importance of controlled linear motion.",
285
+ "task_specific": "The target location is slightly elevated, requiring an upward push."
286
+ },
287
+ "reach-v3": {
288
+ "simple": "Reach the target location with the end-effector.",
289
+ "detailed": "Move the robot's hand to touch the highlighted target position. Ensure the end-effector is precisely aligned with the target for optimal task completion. This task requires careful control of the robot's arm to avoid overshooting the target.",
290
+ "task_specific": "The target is located at the far end of the workspace, requiring full extension of the arm."
291
+ },
292
+ "sweep-v3": {
293
+ "simple": "Sweep the object off the table.",
294
+ "detailed": "Sweep the debris across the tabletop and drop it over the edge. Ensure all debris is cleared from the table to complete the task. This task tests the precision of sweeping actions.",
295
+ "task_specific": "The debris is scattered, requiring multiple sweeps."
296
+ },
297
+ "window-open-v3": {
298
+ "simple": "Open the window.",
299
+ "detailed": "Slide the window latch and pull to open it. Apply a consistent force to ensure the window opens smoothly. This task requires understanding the mechanics of window operation.",
300
+ "task_specific": "The window is stuck, requiring additional force."
301
+ },
302
+ "stick-pull-v3": {
303
+ "simple": "Pull the stick object towards you.",
304
+ "detailed": "Hook the stick and pull it to the designated area. Ensure the stick is applied with a steady force to avoid overshooting the target. This task tests the precision of pulling actions.",
305
+ "task_specific": "The target is recessed, requiring a deeper pull."
306
+ },
307
+ "handle-pull-v3": {
308
+ "simple": "Pull the handle.",
309
+ "detailed": "Grip and pull the handle towards you. Apply a consistent force to ensure the handle is fully extended. This task requires understanding the mechanics of handle operation.",
310
+ "task_specific": "The handle is slippery, requiring a firm grip."
311
+ }
312
+ }
313
+
requirements.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # Short-MetaWorld Dataset Requirements
2
+ torch>=1.9.0
3
+ torchvision>=0.10.0
4
+ Pillow>=8.0.0
5
+ numpy>=1.20.0
short-MetaWorld/img_only/drawer-open-v2/2/16.jpg ADDED

Git LFS Details

  • SHA256: 83c79645062a21ea2a6f872ab783497edef30c36066a196e740ee430bf7131a3
  • Pointer size: 130 Bytes
  • Size of remote file: 71.5 kB
short-MetaWorld/img_only/drawer-open-v2/2/2.jpg ADDED

Git LFS Details

  • SHA256: a542d965a5cc4ca312e2744757354afd3b81af36b8587164966a44f74a235564
  • Pointer size: 130 Bytes
  • Size of remote file: 70.9 kB
short-MetaWorld/img_only/drawer-open-v2/2/5.jpg ADDED

Git LFS Details

  • SHA256: e49209365eaf37c5254203006a0837bfa835b8db3c1bb8e26399349a904ebd76
  • Pointer size: 130 Bytes
  • Size of remote file: 71.2 kB
short-MetaWorld/img_only/drawer-open-v2/2/8.jpg ADDED

Git LFS Details

  • SHA256: 30b11c6201e1c6790e51411ecf9426a2237a79084b0408935798dc04e6fd8c96
  • Pointer size: 130 Bytes
  • Size of remote file: 71.4 kB
short-MetaWorld/img_only/drawer-open-v2/67/0.jpg ADDED

Git LFS Details

  • SHA256: 4b15fb77316aaec77297ff943edb65f499bbb60c3522da1a6c1b65f8ff133fc4
  • Pointer size: 130 Bytes
  • Size of remote file: 72.3 kB
short-MetaWorld/img_only/drawer-open-v2/67/1.jpg ADDED

Git LFS Details

  • SHA256: bb5d2554815907cacf7df9bdd7f57a9642c5d44de0af00554db3ce9349adfeb2
  • Pointer size: 130 Bytes
  • Size of remote file: 71.4 kB
short-MetaWorld/img_only/drawer-open-v2/67/10.jpg ADDED

Git LFS Details

  • SHA256: 5b76efbdeffaa114d504dedd73472d2f0ae4a9a7ba078de12d409381274edc12
  • Pointer size: 130 Bytes
  • Size of remote file: 71.5 kB
short-MetaWorld/img_only/drawer-open-v2/67/11.jpg ADDED

Git LFS Details

  • SHA256: 76f92a7f522afcd6174e5cd86c358760da958eba21570ae15b4ada0f05e21469
  • Pointer size: 130 Bytes
  • Size of remote file: 71.2 kB
short-MetaWorld/img_only/drawer-open-v2/67/12.jpg ADDED

Git LFS Details

  • SHA256: 490ec6946eaa8c95efe0b8870b0a24af4c4c945f650bf8e5e9bc9ede8ad427db
  • Pointer size: 130 Bytes
  • Size of remote file: 71.1 kB
short-MetaWorld/img_only/drawer-open-v2/67/13.jpg ADDED

Git LFS Details

  • SHA256: e1bb6403d163e05e8d2737d02e31900f2ca33794c9c82fe978193cde0c32671a
  • Pointer size: 130 Bytes
  • Size of remote file: 71.2 kB
short-MetaWorld/img_only/drawer-open-v2/67/14.jpg ADDED

Git LFS Details

  • SHA256: 14880b101921af7f5863e6fa9ab563fabb715811fe2fdce03ea254927ec22f55
  • Pointer size: 130 Bytes
  • Size of remote file: 70.8 kB
short-MetaWorld/img_only/drawer-open-v2/67/15.jpg ADDED

Git LFS Details

  • SHA256: 75072b886e9f36b9c97ced02c0845f2f5d13ffd7bab88ff04b9c5e713c59dd15
  • Pointer size: 130 Bytes
  • Size of remote file: 70.8 kB
short-MetaWorld/img_only/drawer-open-v2/67/16.jpg ADDED

Git LFS Details

  • SHA256: cf9e9bf40f661b213e84416bc5bc6a7d04d79cfcc009407ab4f9ccefaa72054d
  • Pointer size: 130 Bytes
  • Size of remote file: 71.7 kB
short-MetaWorld/img_only/drawer-open-v2/67/17.jpg ADDED

Git LFS Details

  • SHA256: b404b9224ddcd3631f4e7e81d6743d3ac4cc8489c32b77ba7bf60b838c292022
  • Pointer size: 130 Bytes
  • Size of remote file: 72 kB
short-MetaWorld/img_only/drawer-open-v2/67/18.jpg ADDED

Git LFS Details

  • SHA256: 5bf8b7cc9a13c5a451e54c80d51e183696e6444302c6648359f2ceb876e3d3aa
  • Pointer size: 130 Bytes
  • Size of remote file: 72.1 kB
short-MetaWorld/img_only/drawer-open-v2/67/19.jpg ADDED

Git LFS Details

  • SHA256: 96d8913561f7349154c0b5d90c4738245b457f1ef5d2121d9bf3284e51ea9bf2
  • Pointer size: 130 Bytes
  • Size of remote file: 72.4 kB
short-MetaWorld/img_only/drawer-open-v2/67/2.jpg ADDED

Git LFS Details

  • SHA256: f6c776d2985857d588569dbc53dd5c2a5454cccde819dc65be83addc5e54d022
  • Pointer size: 130 Bytes
  • Size of remote file: 71.4 kB
short-MetaWorld/img_only/drawer-open-v2/67/3.jpg ADDED

Git LFS Details

  • SHA256: 5c1ee901efd5f7d24a0693538fd634b159d885f509c87e8fc866a2043ea04ce1
  • Pointer size: 130 Bytes
  • Size of remote file: 70.9 kB
short-MetaWorld/img_only/drawer-open-v2/67/4.jpg ADDED

Git LFS Details

  • SHA256: 089fdd054cf959c7cb7c30f7e76fb6beeebbfbecc93b7377a27593593daefc62
  • Pointer size: 130 Bytes
  • Size of remote file: 70.9 kB
short-MetaWorld/img_only/drawer-open-v2/67/5.jpg ADDED

Git LFS Details

  • SHA256: 6d203491bf64183a0d2681cfbbf43b0572efd3cde108ed054fe360143ddca15b
  • Pointer size: 130 Bytes
  • Size of remote file: 71 kB
short-MetaWorld/img_only/drawer-open-v2/67/6.jpg ADDED

Git LFS Details

  • SHA256: 8e4b2c6eef9fd07e0bd90a6d57751783e985f2d43ffab752faa7b72ac8086428
  • Pointer size: 130 Bytes
  • Size of remote file: 71.4 kB
short-MetaWorld/img_only/drawer-open-v2/67/7.jpg ADDED

Git LFS Details

  • SHA256: 52b2fd19183e5af8fd90ca3a3539ee33d21807eb7278121e369532243165f5bd
  • Pointer size: 130 Bytes
  • Size of remote file: 71.1 kB
short-MetaWorld/img_only/drawer-open-v2/67/8.jpg ADDED

Git LFS Details

  • SHA256: b1d826813e883c735088b51e64882aad53f15cd4db3ead33137ab2031cdb31bb
  • Pointer size: 130 Bytes
  • Size of remote file: 71.3 kB
short-MetaWorld/img_only/drawer-open-v2/67/9.jpg ADDED

Git LFS Details

  • SHA256: 7d20c231320a195386b880e49ee35d3e63d038bd733f6c140851fb9d8c70f1ab
  • Pointer size: 130 Bytes
  • Size of remote file: 71.2 kB
short-MetaWorld/img_only/drawer-open-v2/93/0.jpg ADDED

Git LFS Details

  • SHA256: e74b3655455c63c4d03191946290a4263d92b1e98a985c3947058669064c9d0e
  • Pointer size: 130 Bytes
  • Size of remote file: 72.1 kB
short-MetaWorld/img_only/drawer-open-v2/93/1.jpg ADDED

Git LFS Details

  • SHA256: 5d0f27e8aaaa5c3e8ad19432d359d54a37831da4d6f9bda7228e5c89c544858d
  • Pointer size: 130 Bytes
  • Size of remote file: 71.7 kB
short-MetaWorld/img_only/drawer-open-v2/93/10.jpg ADDED

Git LFS Details

  • SHA256: e72729d78b7b01b4b54381aa325de017f3cdc50812ca869994c8c17ecf06221a
  • Pointer size: 130 Bytes
  • Size of remote file: 71.4 kB
short-MetaWorld/img_only/drawer-open-v2/93/11.jpg ADDED

Git LFS Details

  • SHA256: 5999660fb9b9c93a446b5bacf14dd25e7466002c7945f374b4219d3c76143bea
  • Pointer size: 130 Bytes
  • Size of remote file: 71.3 kB
short-MetaWorld/img_only/drawer-open-v2/93/12.jpg ADDED

Git LFS Details

  • SHA256: 777e59a9ca250febfdb9a64eaf179d4fbdbd0e70a7c35cc45095c3475647f5ec
  • Pointer size: 130 Bytes
  • Size of remote file: 71.3 kB
short-MetaWorld/img_only/drawer-open-v2/93/13.jpg ADDED

Git LFS Details

  • SHA256: 6cb1a579eb01e62e2622c13eb5af02039a22509f277d8df0502c23d1a40dd836
  • Pointer size: 130 Bytes
  • Size of remote file: 71.2 kB
short-MetaWorld/img_only/drawer-open-v2/93/14.jpg ADDED

Git LFS Details

  • SHA256: 7ad4b88512217569875ef48e2cfd6eb47fd60f3d27cdbdc4e60f66fefc438201
  • Pointer size: 130 Bytes
  • Size of remote file: 70.8 kB
short-MetaWorld/img_only/drawer-open-v2/93/15.jpg ADDED

Git LFS Details

  • SHA256: 1a82d34447874ac8e0c8161b974ac810543b52bdaa94399ee57e8e40b98d04b0
  • Pointer size: 130 Bytes
  • Size of remote file: 70.8 kB
short-MetaWorld/img_only/drawer-open-v2/93/16.jpg ADDED

Git LFS Details

  • SHA256: 4ea17d07d0d9879f2362965958fd0c4dbf36fe99ec911a5a1ad912347bcd178b
  • Pointer size: 130 Bytes
  • Size of remote file: 71.5 kB
short-MetaWorld/img_only/drawer-open-v2/93/17.jpg ADDED

Git LFS Details

  • SHA256: 6348e4e3abac4bfeefeb6854b00951516ba9625d7e450b4e1845db23e6e15802
  • Pointer size: 130 Bytes
  • Size of remote file: 72.1 kB
short-MetaWorld/img_only/drawer-open-v2/93/18.jpg ADDED

Git LFS Details

  • SHA256: 17016fdd4267ded4aaec4f81eed8e07cff16d9dc595bc7c22fef11b01c702688
  • Pointer size: 130 Bytes
  • Size of remote file: 72 kB
short-MetaWorld/img_only/drawer-open-v2/93/19.jpg ADDED

Git LFS Details

  • SHA256: be4c2a6cacb173a07955da162d6bf0b88168c3d4a5883bc37aa3284c0e0b55f7
  • Pointer size: 130 Bytes
  • Size of remote file: 72.4 kB
short-MetaWorld/img_only/drawer-open-v2/93/2.jpg ADDED

Git LFS Details

  • SHA256: b9c3fa28621c17b36c312411086f860517424d1dc2c2a13c0e34544c2bdf984e
  • Pointer size: 130 Bytes
  • Size of remote file: 70.7 kB
short-MetaWorld/img_only/drawer-open-v2/93/3.jpg ADDED

Git LFS Details

  • SHA256: b2e51615c1c1a6231e85c545e6bbaa02f7c83ff08ce3c5ac8cbb28080f051dde
  • Pointer size: 130 Bytes
  • Size of remote file: 70.6 kB
short-MetaWorld/img_only/drawer-open-v2/93/4.jpg ADDED

Git LFS Details

  • SHA256: 7fb2fc8951be1e0e526c7ebd3c77e94a3654e30b6685ef6abe544638263f8867
  • Pointer size: 130 Bytes
  • Size of remote file: 70.9 kB
short-MetaWorld/img_only/drawer-open-v2/93/5.jpg ADDED

Git LFS Details

  • SHA256: a5ee12ffc1e787bac9bfaffc87400ae85f2935691c8e36205f9a5d694794ba79
  • Pointer size: 130 Bytes
  • Size of remote file: 71.1 kB
short-MetaWorld/img_only/drawer-open-v2/93/6.jpg ADDED

Git LFS Details

  • SHA256: f681bb49a74d30101150168966dc75ac6fcbff14eadad17a1a3c570234532d48
  • Pointer size: 130 Bytes
  • Size of remote file: 71 kB
short-MetaWorld/img_only/drawer-open-v2/93/7.jpg ADDED

Git LFS Details

  • SHA256: 9f1bf85be2fa2b82554b835ad2868edfca64846d77c63b91594f6fbfde1996a4
  • Pointer size: 130 Bytes
  • Size of remote file: 71.2 kB
short-MetaWorld/img_only/drawer-open-v2/93/8.jpg ADDED

Git LFS Details

  • SHA256: 190ac753e32059c42780ed0ae2f9d497e6bfbef57effe3a749857387e73c4caf
  • Pointer size: 130 Bytes
  • Size of remote file: 71.4 kB
short-MetaWorld/img_only/drawer-open-v2/93/9.jpg ADDED

Git LFS Details

  • SHA256: f396b334da9b1f84bff4fa49d4b0b55616ea83d4281e4b9c51e48a50e3b3c89a
  • Pointer size: 130 Bytes
  • Size of remote file: 71.4 kB
short_metaworld_loader.py ADDED
@@ -0,0 +1,241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """
3
+ Short-MetaWorld Dataset Loader
4
+ Loads the dataset with proper structure preservation and task prompts.
5
+ """
6
+
7
+ import os
8
+ import pickle
9
+ import json
10
+ import glob
11
+ from pathlib import Path
12
+ from PIL import Image
13
+ import torch
14
+ import torchvision.transforms as T
15
+ from torch.utils.data import Dataset
16
+
17
+ class ShortMetaWorldDataset(Dataset):
18
+ """
19
+ Short-MetaWorld dataset loader that preserves the original structure.
20
+
21
+ Args:
22
+ data_root (str): Path to the dataset root directory
23
+ task_list (list): List of tasks to load (default: all available tasks)
24
+ image_size (int): Target image size for transforms (default: 224)
25
+ transform (callable): Optional custom transform
26
+ load_prompts (bool): Whether to load task prompts (default: True)
27
+ """
28
+
29
+ def __init__(self, data_root, task_list=None, image_size=224, transform=None, load_prompts=True):
30
+ self.data_root = Path(data_root)
31
+ self.image_size = image_size
32
+
33
+ # Load task prompts
34
+ self.prompts = {}
35
+ if load_prompts:
36
+ prompt_file = self.data_root / "mt50_task_prompts.json"
37
+ if prompt_file.exists():
38
+ with open(prompt_file, 'r') as f:
39
+ self.prompts = json.load(f)
40
+ print(f"📖 Loaded {len(self.prompts)} task prompts")
41
+ else:
42
+ print("⚠️ Task prompts not found, using fallback prompts")
43
+
44
+ # Set up paths
45
+ self.img_root = self.data_root / "short-MetaWorld" / "short-MetaWorld" / "img_only"
46
+ self.data_pkl_root = self.data_root / "short-MetaWorld" / "r3m-processed" / "r3m_MT10_20"
47
+
48
+ # Discover available tasks
49
+ available_tasks = []
50
+ if self.data_pkl_root.exists():
51
+ for pkl_file in self.data_pkl_root.glob("*.pkl"):
52
+ task_name = pkl_file.stem
53
+ if (self.img_root / task_name).exists():
54
+ available_tasks.append(task_name)
55
+
56
+ # Filter tasks if task_list provided
57
+ if task_list is not None:
58
+ self.tasks = [task for task in task_list if task in available_tasks]
59
+ else:
60
+ self.tasks = available_tasks
61
+
62
+ print(f"📊 Loading {len(self.tasks)} tasks: {self.tasks}")
63
+
64
+ # Default transform
65
+ if transform is None:
66
+ self.transform = T.Compose([
67
+ T.Resize((image_size, image_size)),
68
+ T.ToTensor(),
69
+ ])
70
+ else:
71
+ self.transform = transform
72
+
73
+ # Load all trajectories
74
+ self.trajectories = self._load_trajectories()
75
+ print(f"✅ Loaded {len(self.trajectories)} trajectory steps")
76
+
77
+ def _load_trajectories(self):
78
+ """Load all trajectory data"""
79
+ all_trajectories = []
80
+
81
+ for task in self.tasks:
82
+ # Load pickle data
83
+ pkl_path = self.data_pkl_root / f"{task}.pkl"
84
+ if not pkl_path.exists():
85
+ print(f"⚠️ Pickle file not found: {pkl_path}")
86
+ continue
87
+
88
+ with open(pkl_path, "rb") as f:
89
+ data = pickle.load(f)
90
+
91
+ # Get image directories
92
+ task_img_dir = self.img_root / task
93
+ if not task_img_dir.exists():
94
+ print(f"⚠️ Image directory not found: {task_img_dir}")
95
+ continue
96
+
97
+ # Process each trajectory
98
+ traj_dirs = sorted(task_img_dir.glob("*"), key=lambda x: int(x.name))
99
+
100
+ for traj_idx, traj_dir in enumerate(traj_dirs):
101
+ if traj_idx >= len(data['actions']):
102
+ continue
103
+
104
+ # Get image paths
105
+ img_paths = sorted(traj_dir.glob("*.jpg"),
106
+ key=lambda x: int(x.stem))
107
+
108
+ num_steps = len(data['actions'][traj_idx])
109
+ num_images = len(img_paths)
110
+
111
+ # Use minimum length to handle mismatched data
112
+ min_steps = min(num_images, num_steps)
113
+ if min_steps < 1:
114
+ continue
115
+
116
+ # Create trajectory entries
117
+ for step_idx in range(min_steps):
118
+ trajectory_entry = {
119
+ 'task_name': task,
120
+ 'trajectory_id': traj_idx,
121
+ 'step_id': step_idx,
122
+ 'image_path': str(img_paths[step_idx]),
123
+ 'state': data['state'][traj_idx][step_idx][:7], # First 7 dims
124
+ 'action': data['actions'][traj_idx][step_idx],
125
+ 'prompt': self._get_prompt(task)
126
+ }
127
+ all_trajectories.append(trajectory_entry)
128
+
129
+ return all_trajectories
130
+
131
+ def _get_prompt(self, task_name):
132
+ """Get prompt for a task"""
133
+ if task_name in self.prompts:
134
+ # Use simple prompt by default
135
+ return self.prompts[task_name].get('simple', f"Perform the task: {task_name.replace('-', ' ')}")
136
+ else:
137
+ return f"Perform the task: {task_name.replace('-', ' ')}"
138
+
139
+ def get_task_info(self, task_name):
140
+ """Get comprehensive task information"""
141
+ if task_name in self.prompts:
142
+ return self.prompts[task_name]
143
+ return {"simple": f"Perform the task: {task_name.replace('-', ' ')}"}
144
+
145
+ def get_available_tasks(self):
146
+ """Get list of available tasks"""
147
+ return self.tasks.copy()
148
+
149
+ def get_dataset_stats(self):
150
+ """Get dataset statistics"""
151
+ task_counts = {}
152
+ for traj in self.trajectories:
153
+ task = traj['task_name']
154
+ task_counts[task] = task_counts.get(task, 0) + 1
155
+
156
+ return {
157
+ 'total_steps': len(self.trajectories),
158
+ 'num_tasks': len(self.tasks),
159
+ 'task_step_counts': task_counts,
160
+ 'tasks': self.tasks
161
+ }
162
+
163
+ def __len__(self):
164
+ return len(self.trajectories)
165
+
166
+ def __getitem__(self, idx):
167
+ """Get a single trajectory step"""
168
+ traj = self.trajectories[idx]
169
+
170
+ # Load and transform image
171
+ image = Image.open(traj['image_path']).convert("RGB")
172
+ image_tensor = self.transform(image)
173
+
174
+ # Convert to tensors
175
+ state = torch.tensor(traj['state'], dtype=torch.float32)
176
+ action = torch.tensor(traj['action'], dtype=torch.float32)
177
+
178
+ return {
179
+ 'image': image_tensor,
180
+ 'state': state,
181
+ 'action': action,
182
+ 'prompt': traj['prompt'],
183
+ 'task_name': traj['task_name'],
184
+ 'trajectory_id': traj['trajectory_id'],
185
+ 'step_id': traj['step_id']
186
+ }
187
+
188
+ # Example usage functions
189
+ def load_short_metaworld(data_root, tasks=None, image_size=224):
190
+ """
191
+ Convenience function to load the dataset.
192
+
193
+ Args:
194
+ data_root (str): Path to dataset root
195
+ tasks (list): List of tasks to load (None for all)
196
+ image_size (int): Image size for transforms
197
+
198
+ Returns:
199
+ ShortMetaWorldDataset: The loaded dataset
200
+ """
201
+ return ShortMetaWorldDataset(
202
+ data_root=data_root,
203
+ task_list=tasks,
204
+ image_size=image_size
205
+ )
206
+
207
+ def get_mt10_tasks():
208
+ """Get the MT10 task list"""
209
+ return [
210
+ "reach-v2", "push-v2", "pick-place-v2", "door-open-v2", "drawer-open-v2",
211
+ "drawer-close-v2", "button-press-topdown-v2", "button-press-v2",
212
+ "button-press-wall-v2", "button-press-topdown-wall-v2"
213
+ ]
214
+
215
+ def demo_usage():
216
+ """Demonstrate how to use the dataset"""
217
+ print("📖 Short-MetaWorld Dataset Usage Example")
218
+ print("=" * 50)
219
+
220
+ # Load dataset
221
+ dataset = load_short_metaworld("./", tasks=get_mt10_tasks())
222
+
223
+ # Print stats
224
+ stats = dataset.get_dataset_stats()
225
+ print(f"📊 Dataset Statistics:")
226
+ print(f" Total steps: {stats['total_steps']}")
227
+ print(f" Number of tasks: {stats['num_tasks']}")
228
+ print(f" Available tasks: {stats['tasks']}")
229
+
230
+ # Get a sample
231
+ if len(dataset) > 0:
232
+ sample = dataset[0]
233
+ print(f"\n📋 Sample data:")
234
+ print(f" Image shape: {sample['image'].shape}")
235
+ print(f" State shape: {sample['state'].shape}")
236
+ print(f" Action shape: {sample['action'].shape}")
237
+ print(f" Task: {sample['task_name']}")
238
+ print(f" Prompt: {sample['prompt']}")
239
+
240
+ if __name__ == "__main__":
241
+ demo_usage()