mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-19 14:23:57 +08:00
more bugfix, number of gaussians doesnt go crazy anymore
This commit is contained in:
1 parent
66d0d7ee13
commit
17e95e1ba2
6 files changed
+39
-43
No files matched your search
@@ -46,8 +46,8 @@ from nerfstudio.configs.dataparser_configs import AnnotatedDataParserUnion
|
||||
from nerfstudio.data.datamanagers.base_datamanager import (DataManager,
|
||||
DataManagerConfig,TDataset)
|
||||
from nerfstudio.data.dataparsers.base_dataparser import DataparserOutputs
|
||||
from nerfstudio.data.dataparsers.blender_dataparser import \
|
||||
BlenderDataParserConfig
|
||||
from nerfstudio.data.dataparsers.nerfstudio_dataparser import \
|
||||
NerfstudioDataParserConfig
|
||||
from nerfstudio.data.datasets.base_dataset import InputDataset
|
||||
from nerfstudio.utils.misc import get_orig_class
|
||||
from nerfstudio.utils.rich_utils import CONSOLE
|
||||
@@ -57,7 +57,7 @@ CONSOLE = Console(width=120)
|
||||
@dataclass
|
||||
class FullImageDatamanagerConfig(DataManagerConfig):
|
||||
_target: Type = field(default_factory=lambda: FullImageDatamanager)
|
||||
dataparser: AnnotatedDataParserUnion = BlenderDataParserConfig()
|
||||
dataparser: AnnotatedDataParserUnion = NerfstudioDataParserConfig()
|
||||
camera_res_scale_factor: float = 1.0
|
||||
"""The scale factor for scaling spatial data such as images, mask, semantics
|
||||
along with relevant information about camera intrinsics
|
||||
@@ -75,11 +75,8 @@ class FullImageDatamanagerConfig(DataManagerConfig):
|
||||
class FullImageDatamanager(DataManager, Generic[TDataset]):
|
||||
"""
|
||||
A datamanager that outputs full images and cameras instead of raybundles. This makes the
|
||||
datamanager far more lightweight since we dont have to do ray generation for things like
|
||||
gaussian splatting that dont require it.
|
||||
|
||||
TODO (jake-austin): Figure out why the dataparser doesnt show up as a subcommand, preventing us
|
||||
from specifying nerfstudio-data instead of blender-data
|
||||
datamanager more lightweight since we don't have to do generate rays. Useful for full-image
|
||||
training e.g. rasterization pipelines
|
||||
"""
|
||||
|
||||
config: FullImageDatamanagerConfig
|
||||
|
||||
@@ -70,7 +70,7 @@ class ColmapDataParserConfig(DataParserConfig):
|
||||
"""Path to masks directory. If not set, masks are not loaded."""
|
||||
depths_path: Optional[Path] = None
|
||||
"""Path to depth maps directory. If not set, depths are not loaded."""
|
||||
colmap_path: Path = Path("sparse/0")
|
||||
colmap_path: Path = Path("colmap/sparse/0")
|
||||
"""Path to the colmap reconstruction directory relative to the data path."""
|
||||
load_3D_points: bool = False
|
||||
"""Whether to load the 3D points from the colmap reconstruction."""
|
||||
|
||||
Reference in new issue
Block a user