mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-04 06:49:13 +08:00
Add generic type interface
This commit is contained in:
1 parent
4545dcb6b3
commit
1e036372cf
28 files changed
+86
-116
No files matched your search
@@ -73,11 +73,9 @@ class NerfstudioDataParserConfig(DataParserConfig):
|
||||
"""The fraction of images to use for training. The remaining images are for eval."""
|
||||
|
||||
@dataclass
|
||||
class Nerfstudio(DataParser):
|
||||
class Nerfstudio(DataParser[NerfstudioDataParserConfig]):
|
||||
"""Nerfstudio DatasetParser"""
|
||||
|
||||
config: NerfstudioDataParserConfig
|
||||
|
||||
def _generate_dataparser_outputs(self, split="train"):
|
||||
meta = load_from_json(self.config.data / "transforms.json")
|
||||
image_filenames = []
|
||||
|
||||
Reference in new issue
Block a user