Setting near and far with scene bounds collider. Also LR schedules. (#74)

* some initial cuda code as I learn. using git to save progress.

* first cuda kernel for ray sampling that mostly works

* cleaning up code. working on lr. structs for scene bounds aabb

* added scene bounds collider code

* updated setup

* setup

* setup

* black

* including some files

* exporting env variable

* new file

* git workflows

* github actions

* github actions

* github actions

* removing env var
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-05-16 14:03:19 -07:00
1 parent 752df417ce
commit 676beebb14
45 files changed
+803 -8354

No files matched your search

@@ -1,7 +1,7 @@
# dataset options
dataset:
data_directory: data/lego
dataset_type: blender
dataset_format: blender
downscale_factor: 1.0
# dataloader options
@@ -15,7 +15,7 @@ dataloader:
network:
ray_generator:
class_name: RayGenerator
inputs: ['cxy'] # camera, x, and y indices
inputs: ["cxy"] # camera, x, and y indices
meta_data:
in_dim: 0
learning_rate: 0.0
learning_rate: 0.0
+5 -5
View File
@@ -9,7 +9,7 @@ from tqdm import tqdm
from mattport.nerf.dataset.collate import CollateIterDataset, collate_batch_size_one
from mattport.nerf.dataset.image_dataset import ImageDataset, collate_batch
from mattport.nerf.dataset.utils import get_dataset_inputs_dict
from mattport.nerf.dataset.utils import get_dataset_inputs
from mattport.nerf.field_modules.ray_generator import RayGenerator
from mattport.utils.io import get_absolute_path
from mattport.viewer.plotly import visualize_dataset
@@ -34,7 +34,7 @@ def test_dataloader(visualize=False):
"""Testing for the dataloader from input dataset parameters to rays."""
data_directory = "tests/data/lego_test"
dataset_type = "blender"
dataset_format = "blender"
downscale_factor = 1
num_images_to_sample_from = 1
num_times_to_repeat_images = 40
@@ -42,9 +42,9 @@ def test_dataloader(visualize=False):
num_workers = 0
data_directory = get_absolute_path(data_directory)
dataset_inputs = get_dataset_inputs_dict(
data_directory=data_directory, dataset_type=dataset_type, downscale_factor=downscale_factor
)["train"]
dataset_inputs = get_dataset_inputs(
data_directory=data_directory, dataset_format=dataset_format, downscale_factor=downscale_factor, split="train"
)
image_dataset = ImageDataset(
image_filenames=dataset_inputs.image_filenames, downscale_factor=dataset_inputs.downscale_factor
)