alkzar90 commited on
Commit
e6aaf6e
1 Parent(s): 5c0a2f5

format path string

Browse files
Files changed (1) hide show
  1. rock-glacier-dataset.py +1 -1
rock-glacier-dataset.py CHANGED
@@ -154,7 +154,7 @@ class RockGlacierDataset(datasets.GeneratorBasedBuilder):
154
  yield i, {
155
  "image": path,
156
  "labels": os.path.basename(os.path.dirname(path)).lower(),
157
- "path": path,
158
  }
159
 
160
  if self.config.name == "image-segmentation":
 
154
  yield i, {
155
  "image": path,
156
  "labels": os.path.basename(os.path.dirname(path)).lower(),
157
+ "path": "/".join(path.split("/")[-3:]),
158
  }
159
 
160
  if self.config.name == "image-segmentation":