mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-20 06:35:36 +08:00
Record3D Dataparser moved to ns-process-data script. (#872)
* init commit. * added docstring. * added tyro command. * bugfix. * added max dataset size logic. * string cleanup. * updated depracation warning. * typo.
This commit is contained in:
1 parent
121771d126
commit
0afcd1774b
2 files changed
+188
-18
No files matched your search
@@ -21,6 +21,7 @@ from typing import Type
|
||||
|
||||
import numpy as np
|
||||
import torch
|
||||
from rich.console import Console
|
||||
from scipy.spatial.transform import Rotation
|
||||
from typing_extensions import Literal
|
||||
|
||||
@@ -35,6 +36,8 @@ from nerfstudio.data.scene_box import SceneBox
|
||||
from nerfstudio.utils import poses as pose_utils
|
||||
from nerfstudio.utils.io import load_from_json
|
||||
|
||||
CONSOLE = Console(width=120)
|
||||
|
||||
|
||||
@dataclass
|
||||
class Record3DDataParserConfig(DataParserConfig):
|
||||
@@ -62,6 +65,12 @@ class Record3D(DataParser):
|
||||
config: Record3DDataParserConfig
|
||||
|
||||
def _generate_dataparser_outputs(self, split: str = "train") -> DataparserOutputs:
|
||||
|
||||
CONSOLE.print(
|
||||
"[bold red]DEPRECATION WARNING: The Record3D dataparser will be deprecated in future versions. "
|
||||
"Use `ns-data-process record3d` to convert the data into the nerfstudio format instead."
|
||||
)
|
||||
|
||||
image_dir = self.config.data / "rgb"
|
||||
|
||||
if not image_dir.exists():
|
||||
|
||||
Reference in new issue
Block a user