mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 22:38:48 +08:00
Add mipnerf 360 data support
This commit is contained in:
1 parent
73a2449bae
commit
f71c2c21f2
2 files changed
+129
No files matched your search
@@ -24,6 +24,7 @@ from omegaconf import ListConfig
|
||||
from pyrad.data.format.blender import load_blender_data
|
||||
from pyrad.data.format.friends import load_friends_data
|
||||
from pyrad.data.format.instant_ngp import load_instant_ngp_data
|
||||
from pyrad.data.format.mipnerf_360 import load_mipnerf_360_data
|
||||
from pyrad.data.structs import DatasetInputs
|
||||
from pyrad.utils.colors import get_color
|
||||
from pyrad.utils.io import get_absolute_path, load_from_pkl, make_dir, write_to_pkl
|
||||
@@ -96,6 +97,12 @@ def get_dataset_inputs(
|
||||
downscale_factor=downscale_factor,
|
||||
split="train",
|
||||
)
|
||||
elif dataset_format == "mipnerf_360":
|
||||
dataset_inputs = load_mipnerf_360_data(
|
||||
get_absolute_path(data_directory),
|
||||
downscale_factor=downscale_factor,
|
||||
split="train",
|
||||
)
|
||||
else:
|
||||
raise NotImplementedError(f"{dataset_format} is not a valid dataset type")
|
||||
|
||||
|
||||
Reference in new issue
Block a user