Datasets:
Fix incorrect repo id in Quick start: lerobot/fineart-dataset → lerobot/FineART
#4
by 375720783jin - opened
README.md
CHANGED
|
@@ -59,7 +59,7 @@ pip install lerobot
|
|
| 59 |
```python
|
| 60 |
from lerobot.datasets.lerobot_dataset import LeRobotDataset
|
| 61 |
|
| 62 |
-
ds = LeRobotDataset("lerobot/
|
| 63 |
print(ds.num_episodes, ds.num_frames, ds.fps) # 40543, 185534500, 30
|
| 64 |
print(ds.features.keys())
|
| 65 |
```
|
|
@@ -67,7 +67,7 @@ print(ds.features.keys())
|
|
| 67 |
To train on a subset or avoid downloading everything, select episodes:
|
| 68 |
|
| 69 |
```python
|
| 70 |
-
ds = LeRobotDataset("lerobot/
|
| 71 |
```
|
| 72 |
|
| 73 |
To stream instead of download:
|
|
@@ -75,7 +75,7 @@ To stream instead of download:
|
|
| 75 |
```python
|
| 76 |
from lerobot.datasets.streaming_dataset import StreamingLeRobotDataset
|
| 77 |
|
| 78 |
-
ds = StreamingLeRobotDataset("lerobot/
|
| 79 |
```
|
| 80 |
|
| 81 |
A local copy works the same way: pass `root="/path/to/fineart-dataset"`.
|
|
@@ -105,7 +105,7 @@ The 14 dims are ordered `left_{shoulder_pan, shoulder_lift, elbow_flex, wrist_an
|
|
| 105 |
import pandas as pd
|
| 106 |
from huggingface_hub import hf_hub_download
|
| 107 |
|
| 108 |
-
tasks = pd.read_parquet(hf_hub_download("lerobot/
|
| 109 |
task_by_idx = dict(zip(tasks["task_index"], tasks["task"]))
|
| 110 |
print(task_by_idx[int(frame["task_index"])]) # e.g. "Arrange a breakfast setting"
|
| 111 |
```
|
|
|
|
| 59 |
```python
|
| 60 |
from lerobot.datasets.lerobot_dataset import LeRobotDataset
|
| 61 |
|
| 62 |
+
ds = LeRobotDataset("lerobot/FineART")
|
| 63 |
print(ds.num_episodes, ds.num_frames, ds.fps) # 40543, 185534500, 30
|
| 64 |
print(ds.features.keys())
|
| 65 |
```
|
|
|
|
| 67 |
To train on a subset or avoid downloading everything, select episodes:
|
| 68 |
|
| 69 |
```python
|
| 70 |
+
ds = LeRobotDataset("lerobot/FineART", episodes=[0, 1, 2])
|
| 71 |
```
|
| 72 |
|
| 73 |
To stream instead of download:
|
|
|
|
| 75 |
```python
|
| 76 |
from lerobot.datasets.streaming_dataset import StreamingLeRobotDataset
|
| 77 |
|
| 78 |
+
ds = StreamingLeRobotDataset("lerobot/FineART")
|
| 79 |
```
|
| 80 |
|
| 81 |
A local copy works the same way: pass `root="/path/to/fineart-dataset"`.
|
|
|
|
| 105 |
import pandas as pd
|
| 106 |
from huggingface_hub import hf_hub_download
|
| 107 |
|
| 108 |
+
tasks = pd.read_parquet(hf_hub_download("lerobot/FineART", "meta/tasks.parquet", repo_type="dataset"))
|
| 109 |
task_by_idx = dict(zip(tasks["task_index"], tasks["task"]))
|
| 110 |
print(task_by_idx[int(frame["task_index"])]) # e.g. "Arrange a breakfast setting"
|
| 111 |
```
|