Datasets:

Modalities:
Image
Languages:
English
ArXiv:
Tags:
code
License:
eztao commited on
Commit
ab34985
·
verified ·
1 Parent(s): 47694af

Update RefRef_dataset.py

Browse files
Files changed (1) hide show
  1. RefRef_dataset.py +1 -1
RefRef_dataset.py CHANGED
@@ -75,7 +75,7 @@ class RefRef(datasets.GeneratorBasedBuilder):
75
  name=f"{'cubeBg' if cat == 'textured_cube_scene' else 'sphereBg' if cat == 'textured_sphere_scene' else 'envMapBg'}_{'singleMatConvex' if self.config.name == 'single-convex' else 'singleMatNonConvex' if self.config.name == 'single-non-convex' else 'multiMatNonConvex'}_{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}_sphere" if cat == "environment_map_scene" else self.config.scene),
79
  "split": f"{'cubeBg' if cat == 'textured_cube_scene' else 'sphereBg' if cat == 'textured_sphere_scene' else 'envMapBg'}_{'singleMatConvex' if self.config.name == 'single-convex' else 'singleMatNonConvex' if self.config.name == 'single-non-convex' else 'multiMatNonConvex'}_{self.config.scene}",
80
  },
81
  ) for cat in ["textured_sphere_scene", "textured_cube_scene", "environment_map_scene"]
 
75
  name=f"{'cubeBg' if cat == 'textured_cube_scene' else 'sphereBg' if cat == 'textured_sphere_scene' else 'envMapBg'}_{'singleMatConvex' if self.config.name == 'single-convex' else 'singleMatNonConvex' if self.config.name == 'single-non-convex' else 'multiMatNonConvex'}_{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"{'cubeBg' if cat == 'textured_cube_scene' else 'sphereBg' if cat == 'textured_sphere_scene' else 'envMapBg'}_{'singleMatConvex' if self.config.name == 'single-convex' else 'singleMatNonConvex' if self.config.name == 'single-non-convex' else 'multiMatNonConvex'}_{self.config.scene}",
80
  },
81
  ) for cat in ["textured_sphere_scene", "textured_cube_scene", "environment_map_scene"]