mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-19 14:23:57 +08:00
NeuS Implementation (#1444)
* add initial method configs and data manager * add neus scheduler * add initial surface model and neus * add Neus ray sampler * add sdf field * move scale/shift calc to math utils * add debug and fix sdf_dataset typo * update vscode neus debug * fix dataset and get initial working version * add magic number from original repo * black fixes * clean up get weights/transmittance from alphas * clean up typos in sdf datamanager * type annotations on neus scheduler and remove unused params * clean up and annotate sdf field along w/ other fixes * more clean up * remove unnessary directions norm * resolve comments * update neus scheduler to follow refactor * fix linter errors * fix some typos * remove get_weights_from_alpha * more comment fixes * more linter error fixes * clean up and add comments * more little fixes for types/comments * more comments * rename NeuS Scheduler to DelayedScheduler * rename DelayedScheduler to CosineDecayScheduler
This commit is contained in:
1 parent
1b18b44d81
commit
ddfa463f4d
16 files changed
+1376
-53
No files matched your search
@@ -42,7 +42,7 @@ class SDFDataset(InputDataset):
|
||||
self.normal_filenames = self.metadata["normal_filenames"]
|
||||
self.camera_to_worlds = self.metadata["camera_to_worlds"]
|
||||
# can be none if auto orient not enabled in dataparser
|
||||
self.transform = self.metadata["normal_filenames"]
|
||||
self.transform = self.metadata["transform"]
|
||||
self.include_mono_prior = self.metadata["include_mono_prior"]
|
||||
|
||||
def get_metadata(self, data: Dict) -> Dict:
|
||||
@@ -57,8 +57,8 @@ class SDFDataset(InputDataset):
|
||||
depth_image, normal_image = self.get_depths_and_normals(
|
||||
depth_filepath=depth_filepath, normal_filename=normal_filepath, camtoworld=camtoworld
|
||||
)
|
||||
metadata["depth_image"] = depth_image
|
||||
metadata["normal_image"] = normal_image
|
||||
metadata["depth"] = depth_image
|
||||
metadata["normal"] = normal_image
|
||||
|
||||
return metadata
|
||||
|
||||
|
||||
Reference in new issue
Block a user