mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-06 07:48:50 +08:00
Initial ray generation and dataset code (#12)
* ray generator and cameras structure progress * test renames * added pass * conflicts * fixing some black errors * reformated files * merged master and .gitignore * fixing linting * removing old folder * removed return False * pylint fixes * update * updates * update * update * update * update * update * update * update * update * update * update
This commit is contained in:
1 parent
1995afda57
commit
0b7dfcdc5d
21 files changed
+652
-139
No files matched your search
@@ -4,7 +4,7 @@ Builds the dataset
|
||||
import importlib
|
||||
import logging
|
||||
|
||||
from mattport.nerf.dataset.dataset import Dataset
|
||||
from mattport.nerf.dataset.base import Dataset
|
||||
|
||||
|
||||
def build_dataset(config: dict) -> Dataset:
|
||||
@@ -16,11 +16,9 @@ def build_dataset(config: dict) -> Dataset:
|
||||
"""
|
||||
|
||||
# TODO(ethan): better handle this with configs
|
||||
module = importlib.import_module("mattport.nerf.dataset.base")
|
||||
dataset = module.Dataset(
|
||||
data_directory=config.data_directory,
|
||||
dataset_type=config.dataset_type,
|
||||
scene=config.scene,
|
||||
module = importlib.import_module("mattport.nerf.dataset.blender_dataset")
|
||||
dataset = module.BlenderDataset(
|
||||
data_directory=config.data_directory, dataset_type=config.dataset_type, scene=config.scene
|
||||
)
|
||||
logging.info(dataset)
|
||||
return dataset
|
||||
Reference in new issue
Block a user