Datasets:

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

Update RefRef.py

Browse files
Files changed (1) hide show
  1. RefRef.py +4 -4
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=scene,
67
  gen_kwargs={
68
- "filepaths": os.path.join(f"https://huggingface.co/datasets/yinyue27/RefRef/resolve/main/image_data/textured_cube_scene/single-convex/{scene}/"),
69
- "split": scene
70
  },
71
- ) for scene in ["ball", "ball_coloured", "cube", "cube_coloured"]
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):