mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +08:00
Added cache capabilities for data
This commit is contained in:
1 parent
5952a692eb
commit
d8b2462e50
7 files changed
+70
-43
No files matched your search
@@ -9,12 +9,14 @@ from nerfstudio.configs import base_config as cfg
|
||||
@dataclass
|
||||
class BaseImageEncoderConfig(cfg.InstantiateConfig):
|
||||
_target: Type = field(default_factory=lambda: BaseImageEncoder)
|
||||
name: str = ""
|
||||
"""name of the encoder"""
|
||||
description: str = ""
|
||||
"""description of the encoder"""
|
||||
|
||||
class BaseImageEncoder:
|
||||
@abstractproperty
|
||||
def name(self) -> str:
|
||||
"""
|
||||
returns the name of the encoder
|
||||
"""
|
||||
|
||||
@abstractproperty
|
||||
def embedding_dim(self) -> int:
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user