Update RefRef_dataset.py
Browse files- RefRef_dataset.py +2 -2
RefRef_dataset.py
CHANGED
|
@@ -72,11 +72,11 @@ class RefRef(datasets.GeneratorBasedBuilder):
|
|
| 72 |
# Automatically find all JSON files matching the split patterns
|
| 73 |
return [
|
| 74 |
datasets.SplitGenerator(
|
| 75 |
-
name=f"{'
|
| 76 |
gen_kwargs={
|
| 77 |
"filepaths": os.path.join(f"https://huggingface.co/datasets/yinyue27/RefRef_dataset/resolve/main/image_data/{cat}/{self.config.name}/",
|
| 78 |
f"{self.config.scene}_sphere" if cat == "textured_sphere_scene" else f"{self.config.scene}_hdr" if cat == "environment_map_scene" else self.config.scene),
|
| 79 |
-
"split": f"{'
|
| 80 |
},
|
| 81 |
) for cat in ["textured_sphere_scene", "textured_cube_scene", "environment_map_scene"]
|
| 82 |
]
|
|
|
|
| 72 |
# Automatically find all JSON files matching the split patterns
|
| 73 |
return [
|
| 74 |
datasets.SplitGenerator(
|
| 75 |
+
name=f"{'cube' if cat == 'textured_cube_scene' else 'sphere' if cat == 'textured_sphere_scene' else 'env'}_{'smcvx' if self.config.name == 'single-convex' else 'smncvx' if self.config.name == 'single-non-convex' else 'mmncvx'}_{self.config.scene}",
|
| 76 |
gen_kwargs={
|
| 77 |
"filepaths": os.path.join(f"https://huggingface.co/datasets/yinyue27/RefRef_dataset/resolve/main/image_data/{cat}/{self.config.name}/",
|
| 78 |
f"{self.config.scene}_sphere" if cat == "textured_sphere_scene" else f"{self.config.scene}_hdr" if cat == "environment_map_scene" else self.config.scene),
|
| 79 |
+
"split": f"{'cube' if cat == 'textured_cube_scene' else 'sphere' if cat == 'textured_sphere_scene' else 'env'}_{'smcvx' if self.config.name == 'single-convex' else 'smncvx' if self.config.name == 'single-non-convex' else 'mmncvx'}_{self.config.scene}",
|
| 80 |
},
|
| 81 |
) for cat in ["textured_sphere_scene", "textured_cube_scene", "environment_map_scene"]
|
| 82 |
]
|