mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-20 22:56:03 +08:00
Implement ForwardRef generic interface
This commit is contained in:
1 parent
8d24a3bcab
commit
77b7bfb1b1
33 files changed
+120
-89
No files matched your search
@@ -8,10 +8,9 @@ A skeleton of the local writer config is defined below.
|
||||
"""nerfstudio/configs/base_config.py""""
|
||||
|
||||
@dataclass
|
||||
class LocalWriterConfig(InstantiateConfig):
|
||||
class LocalWriterConfig(InstantiateConfig[writer.LocalWriter]):
|
||||
"""Local Writer config"""
|
||||
|
||||
_target: Type = writer.LocalWriter
|
||||
enable: bool = False
|
||||
stats_to_track: Tuple[writer.EventName, ...] = (
|
||||
writer.EventName.ITER_TRAIN_TIME,
|
||||
|
||||
@@ -44,14 +44,12 @@ We've implemented a VanillaDataManager that implements the standard logic of mos
|
||||
|
||||
```python
|
||||
@dataclass
|
||||
class VanillaDataManagerConfig(InstantiateConfig):
|
||||
class VanillaDataManagerConfig(InstantiateConfig["VanillaDataManager"]):
|
||||
"""Configuration for data manager instantiation; DataManager is in charge of keeping the train/eval dataparsers;
|
||||
After instantiation, data manager holds both train/eval datasets and is in charge of returning unpacked
|
||||
train/eval data at each iteration
|
||||
"""
|
||||
|
||||
_target: Type = field(default_factory=lambda: VanillaDataManager)
|
||||
"""target class to instantiate"""
|
||||
dataparser: AnnotatedDataParserUnion = BlenderDataParserConfig()
|
||||
"""specifies the dataparser used to unpack the data"""
|
||||
train_num_rays_per_batch: int = 1024
|
||||
|
||||
Reference in new issue
Block a user