lorenzomazza commited on
Commit
10335b2
·
verified ·
1 Parent(s): 1f5d355

Document CSV path prefix replacement

Browse files
Files changed (1) hide show
  1. README.md +41 -1
README.md CHANGED
@@ -40,7 +40,47 @@ Archive member paths are relative to the dataset root and preserve the raw sourc
40
 
41
  `v1` and `v2` are historical raw folder names for two fixed-viewpoint recording days. They are not dataset version numbers. Together, these two folders form the fixed-viewpoint split used in the paper.
42
 
43
- Note: some CSV files, especially `episode.csv`, include path columns such as `frameLeftRectifiedPath` and `frameRightRectifiedPath` that currently contain the original absolute acquisition paths from the NCT storage system, for example `/mnt/cluster/datasets/bowel_retraction/...`. Users should resolve these paths relative to the extracted archive folder by replacing the original dataset prefix with the local extraction root.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
  Additional release files:
46
 
 
40
 
41
  `v1` and `v2` are historical raw folder names for two fixed-viewpoint recording days. They are not dataset version numbers. Together, these two folders form the fixed-viewpoint split used in the paper.
42
 
43
+ Note: some CSV files, especially `episode.csv`, include path columns such as `frameLeftRectifiedPath` and `frameRightRectifiedPath` that contain the original absolute acquisition paths from the NCT storage system. Before using the dataset with loaders that read these paths directly, replace the original prefixes with your local extraction path.
44
+
45
+ If both archives are extracted into a dataset root such as `/path/to/robotics_bowel_grasping`, the expected local layout is:
46
+
47
+ ```text
48
+ /path/to/robotics_bowel_grasping/
49
+ v1/
50
+ v2/
51
+ multicam/
52
+ multi_camera_exp/
53
+ multi_camera_exp2/
54
+ ```
55
+
56
+ Apply these path-prefix replacements in the CSV files:
57
+
58
+ ```text
59
+ /mnt/cluster/datasets/bowel_retraction/v1/ -> /path/to/robotics_bowel_grasping/v1/
60
+ /mnt/cluster/datasets/bowel_retraction/v2/ -> /path/to/robotics_bowel_grasping/v2/
61
+ /mnt/cluster/datasets/bowel_retraction/multi_camera_exp/ -> /path/to/robotics_bowel_grasping/multicam/multi_camera_exp/
62
+ /mnt/cluster/datasets/bowel_retraction/multi_camera_exp2/ -> /path/to/robotics_bowel_grasping/multicam/multi_camera_exp2/
63
+ ```
64
+
65
+ Example helper script:
66
+
67
+ ```python
68
+ from pathlib import Path
69
+
70
+ root = Path("/path/to/robotics_bowel_grasping")
71
+ replacements = {
72
+ "/mnt/cluster/datasets/bowel_retraction/v1/": f"{root}/v1/",
73
+ "/mnt/cluster/datasets/bowel_retraction/v2/": f"{root}/v2/",
74
+ "/mnt/cluster/datasets/bowel_retraction/multi_camera_exp/": f"{root}/multicam/multi_camera_exp/",
75
+ "/mnt/cluster/datasets/bowel_retraction/multi_camera_exp2/": f"{root}/multicam/multi_camera_exp2/",
76
+ }
77
+
78
+ for csv_path in root.rglob("episode.csv"):
79
+ text = csv_path.read_text()
80
+ for old, new in replacements.items():
81
+ text = text.replace(old, new)
82
+ csv_path.write_text(text)
83
+ ```
84
 
85
  Additional release files:
86