mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-06 15:59:16 +08:00
Migrate compound model to nerfacc (#474)
This commit is contained in:
1 parent
32943caf5b
commit
2be4625b4f
5 files changed
+136
-200
No files matched your search
@@ -38,7 +38,6 @@ from nerfactory.datamanagers.dataparsers.record3d_parser import Record3D
|
||||
|
||||
# model instances
|
||||
from nerfactory.models.base import Model
|
||||
from nerfactory.models.compound import CompoundModel
|
||||
from nerfactory.models.nerfw import NerfWModel
|
||||
from nerfactory.models.tensorf import TensoRFModel
|
||||
from nerfactory.optimizers.schedulers import ExponentialDecaySchedule
|
||||
@@ -398,22 +397,6 @@ class VanillaModelConfig(InstantiateConfig):
|
||||
"""Vanilla Model Config"""
|
||||
|
||||
|
||||
@dataclass
|
||||
class CompoundModelConfig(ModelConfig):
|
||||
"""Compound Model Config"""
|
||||
|
||||
_target: Type = CompoundModel
|
||||
enable_density_field: bool = True
|
||||
enable_collider: bool = False
|
||||
field_implementation: Literal["torch", "tcnn"] = "tcnn" # torch, tcnn, ...
|
||||
loss_coefficients: Dict[str, float] = to_immutable_dict({"rgb_loss": 1.0})
|
||||
num_samples: int = 1024 # instead of course/fine samples
|
||||
cone_angle: float = 0.0
|
||||
"""Should be set to 0.0 for blender scenes but 1./256 for real scenes."""
|
||||
near_plane: float = 0.05
|
||||
"""How far along ray to start sampling."""
|
||||
|
||||
|
||||
@dataclass
|
||||
class NerfWModelConfig(ModelConfig):
|
||||
"""NerfW model config"""
|
||||
|
||||
@@ -24,7 +24,6 @@ from typeguard import typeguard_ignore
|
||||
|
||||
from nerfactory.configs.base import (
|
||||
BlenderDataParserConfig,
|
||||
CompoundModelConfig,
|
||||
Config,
|
||||
FriendsDataManagerConfig,
|
||||
MipNerf360DataParserConfig,
|
||||
@@ -37,6 +36,7 @@ from nerfactory.configs.base import (
|
||||
TrainerConfig,
|
||||
VanillaDataManagerConfig,
|
||||
)
|
||||
from nerfactory.models.compound import CompoundModelConfig
|
||||
from nerfactory.models.instant_ngp import InstantNGPModelConfig
|
||||
from nerfactory.models.mipnerf import MipNerfModel
|
||||
from nerfactory.models.mipnerf_360 import MipNerf360Model
|
||||
|
||||
Reference in new issue
Block a user