Skip to content

Commit 449f408

Browse files
committed
Fix render for instant-ngp
1 parent 6b60855 commit 449f408

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nerfstudio/scripts/render.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,9 @@ def update_config(config: TrainerConfig) -> TrainerConfig:
799799
rgba = pipeline.model.get_rgba_image(outputs=outputs, output_name="rgb")
800800
outputs["rgba"] = rgba
801801

802+
# Remove non-image outputs
803+
outputs.pop("num_samples_per_ray", None)
804+
802805
gt_batch = batch.copy()
803806
gt_batch["rgb"] = gt_batch.pop("image")
804807
all_outputs = (

0 commit comments

Comments
 (0)