mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-01 13:28:59 +08:00
more config moving (#478)
* Move parser configs to files * fixed circular import errors * update to configs * merge fixes Co-authored-by: Matt Tancik <tancik@berkeley.edu>
This commit is contained in:
1 parent
00c3ae73b2
commit
9a39298e2f
11 files changed
+43
-51
No files matched your search
@@ -28,7 +28,6 @@ from nerfactory.configs.utils import to_immutable_dict
|
||||
|
||||
# data instances
|
||||
from nerfactory.datamanagers.base import VanillaDataManager
|
||||
from nerfactory.datamanagers.dataparsers.base import DataParser
|
||||
|
||||
# model instances
|
||||
from nerfactory.models.base import Model
|
||||
@@ -186,15 +185,6 @@ class TrainerConfig(PrintableConfig):
|
||||
"""optionally specify a pre-defined config to load from"""
|
||||
|
||||
|
||||
# Dataset related configs
|
||||
@dataclass
|
||||
class DataParserConfig(InstantiateConfig):
|
||||
"""Basic dataset config"""
|
||||
|
||||
_target: Type = DataParser
|
||||
"""_target: target class to instantiate"""
|
||||
|
||||
|
||||
# pylint: disable=wrong-import-position
|
||||
from nerfactory.datamanagers.dataparsers.blender_parser import BlenderDataParserConfig
|
||||
from nerfactory.datamanagers.dataparsers.friends_parser import FriendsDataParserConfig
|
||||
@@ -253,16 +243,6 @@ class VanillaDataManagerConfig(InstantiateConfig):
|
||||
"""specifies the image indices to use during eval; if None, uses all"""
|
||||
|
||||
|
||||
@dataclass
|
||||
class FriendsDataManagerConfig(VanillaDataManagerConfig):
|
||||
"""Friends data manager config"""
|
||||
|
||||
_target: Type = VanillaDataManager
|
||||
"""target class to instantiate"""
|
||||
train_dataparser: DataParserConfig = FriendsDataParserConfig()
|
||||
"""specifies the dataparser used to unpack the data"""
|
||||
|
||||
|
||||
# Model related configs
|
||||
@dataclass
|
||||
class ModelConfig(InstantiateConfig):
|
||||
|
||||
Reference in new issue
Block a user