mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-20 06:35:36 +08:00
Reducing flicker artifacts for nerfacto method (#750)
* pose opt default nerfacto. * added SO3 cam pose optimization which is slightly faster (~2.2m/iter) than BARF * added occupancy grid with placeholder until nerfacc is updated to query density from it * added occupancy grid sampling as the level 0 in proposal hierarchy, relies on nerfacc 0.1.7 (on pypi) * merge main * merge main * minor changes to sampling * adjusted sample number * refactor occ grid stuff, settle on decent params * nograd proposal sampling * param tweaks * varying resolution proposal networks * params * merged main * optimizer update * remove occ grid * remove double nerfacto samples * set single jitter to true * remove pdb * more changes * fix method defaults * fix pylint * remove occupancy fn Co-authored-by: akristoffersen <akristoffersen@berkeley.edu> Co-authored-by: Justin Kerr <justin.g.kerr@gmail.com>
This commit is contained in:
8 files changed
+40
-37
No files matched your search
@@ -63,9 +63,7 @@ def eval_load_checkpoint(config: cfg.TrainerConfig, pipeline: Pipeline) -> Path:
|
||||
return load_path
|
||||
|
||||
|
||||
def eval_setup(
|
||||
config_path: Path, double_nerfacto_nerf_samples: bool = False, eval_num_rays_per_chunk: Optional[int] = None
|
||||
) -> Tuple[cfg.Config, Pipeline, Path]:
|
||||
def eval_setup(config_path: Path, eval_num_rays_per_chunk: Optional[int] = None) -> Tuple[cfg.Config, Pipeline, Path]:
|
||||
"""Shared setup for loading a saved pipeline for evaluation.
|
||||
|
||||
Args:
|
||||
@@ -81,14 +79,6 @@ def eval_setup(
|
||||
if eval_num_rays_per_chunk:
|
||||
config.pipeline.model.eval_num_rays_per_chunk = eval_num_rays_per_chunk
|
||||
|
||||
if config.method_name == "nerfacto" and double_nerfacto_nerf_samples:
|
||||
config.pipeline.model.num_nerf_samples_per_ray *= 2
|
||||
console.print(
|
||||
"[bold yellow]Warning: doubling the number of nerfacto nerf samples to "
|
||||
f"{config.pipeline.model.num_nerf_samples_per_ray} for improved quality."
|
||||
)
|
||||
console.print("[bold yellow]This logic is a hack and will be removed in the future.")
|
||||
|
||||
# load checkpoints from wherever they were saved
|
||||
# TODO: expose the ability to choose an arbitrary checkpoint
|
||||
config.trainer.load_dir = config.get_checkpoint_dir()
|
||||
|
||||
Reference in new issue
Block a user