Add generic type interface

This commit is contained in:
Jonas Kulhanek committed 2023-02-27 01:48:32 +01:00
1 parent 4545dcb6b3
commit 1e036372cf
28 files changed
+86 -116

No files matched your search

+2 -8
View File
@@ -31,14 +31,8 @@ class NerfactoModelConfig(ModelConfig):
_target: Type = field(default_factory=lambda: NerfactoModel)
...
class NerfactoModel(Model):
"""Nerfacto model
Args:
config: Nerfacto configuration to instantiate model
"""
config: NerfactoModelConfig
class NerfactoModel(Model[NerfactoModelConfig]):
"""Nerfacto model"""
...
```