Datasets:

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

Update RefRef.py

Browse files
Files changed (1) hide show
  1. RefRef.py +21 -12
RefRef.py CHANGED
@@ -16,26 +16,35 @@ Dataset containing multi-view images with camera poses, depth maps, and masks fo
16
 
17
  _LICENSE = "MIT"
18
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  class RefRef(datasets.GeneratorBasedBuilder):
20
  """A dataset loader for NeRF-style data with camera poses, depth maps, and masks."""
21
 
22
  VERSION = datasets.Version("1.0.0")
23
 
24
  BUILDER_CONFIGS = [
25
- datasets.BuilderConfig(
26
- name="default",
27
- version=VERSION,
28
- description="Default configuration for NeRF dataset"
29
  ),
30
- datasets.BuilderConfig(
31
- name="ball",
32
- version=VERSION,
33
- description="Default configuration for NeRF dataset"
34
  ),
35
- datasets.BuilderConfig(
36
- name="ampoule",
37
- version=VERSION,
38
- description="Default configuration for NeRF dataset"
39
  )
40
  ]
41
 
 
16
 
17
  _LICENSE = "MIT"
18
 
19
+ class RefRefConfig(datasets.BuilderConfig):
20
+ """BuilderConfig for RefRef dataset."""
21
+
22
+ def __init__(self, **kwargs):
23
+ """BuilderConfig for RefRef dataset.
24
+
25
+ Args:
26
+ **kwargs: keyword arguments forwarded to super.
27
+ """
28
+ super(RefRefConfig, self).__init__(**kwargs)
29
+ self.scene = kwargs.pop("scene", "default")
30
+
31
  class RefRef(datasets.GeneratorBasedBuilder):
32
  """A dataset loader for NeRF-style data with camera poses, depth maps, and masks."""
33
 
34
  VERSION = datasets.Version("1.0.0")
35
 
36
  BUILDER_CONFIGS = [
37
+ RefRefConfig(
38
+ name="single_non_convex",
39
+ description="Single non-convex scene configuration for RefRef dataset.",
 
40
  ),
41
+ RefRefConfig(
42
+ name="multiple_non_convex",
43
+ description="Multiple non-convex scene configuration for RefRef dataset.",
 
44
  ),
45
+ RefRefConfig(
46
+ name="single_convex",
47
+ description="Single convex scene configuration for RefRef dataset.",
 
48
  )
49
  ]
50