Update RefRef.py
Browse files
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 |
-
|
| 26 |
-
name="
|
| 27 |
-
|
| 28 |
-
description="Default configuration for NeRF dataset"
|
| 29 |
),
|
| 30 |
-
|
| 31 |
-
name="
|
| 32 |
-
|
| 33 |
-
description="Default configuration for NeRF dataset"
|
| 34 |
),
|
| 35 |
-
|
| 36 |
-
name="
|
| 37 |
-
|
| 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 |
|