Implement ForwardRef generic interface

This commit is contained in:
Jonas Kulhanek committed 2023-03-01 11:36:50 +01:00
1 parent 8d24a3bcab
commit 77b7bfb1b1
33 files changed
+120 -89

No files matched your search

@@ -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