Update RefRef.py
Browse files
RefRef.py
CHANGED
|
@@ -63,12 +63,12 @@ class RefRef(datasets.GeneratorBasedBuilder):
|
|
| 63 |
# Automatically find all JSON files matching the split patterns
|
| 64 |
return [
|
| 65 |
datasets.SplitGenerator(
|
| 66 |
-
name=
|
| 67 |
gen_kwargs={
|
| 68 |
-
"filepaths": os.path.join(f"https://huggingface.co/datasets/yinyue27/RefRef/resolve/main/image_data/
|
| 69 |
-
"split":
|
| 70 |
},
|
| 71 |
-
) for
|
| 72 |
]
|
| 73 |
|
| 74 |
def _generate_examples(self, filepaths, split):
|
|
|
|
| 63 |
# Automatically find all JSON files matching the split patterns
|
| 64 |
return [
|
| 65 |
datasets.SplitGenerator(
|
| 66 |
+
name=cat,
|
| 67 |
gen_kwargs={
|
| 68 |
+
"filepaths": os.path.join(f"https://huggingface.co/datasets/yinyue27/RefRef/resolve/main/image_data/{cat}/{self.config.scene}/"),
|
| 69 |
+
"split": cat
|
| 70 |
},
|
| 71 |
+
) for cat in ["textured_sphere_scene/multiple-non-convex", "textured_cube_scene/single-non-convex", "textured_sphere_scene/single-convex"]
|
| 72 |
]
|
| 73 |
|
| 74 |
def _generate_examples(self, filepaths, split):
|