Skip to content

Commit

Permalink
Fix render for instant-ngp
Browse files Browse the repository at this point in the history
  • Loading branch information
jkulhanek committed Nov 13, 2024
1 parent 6b60855 commit 449f408
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nerfstudio/scripts/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,9 @@ def update_config(config: TrainerConfig) -> TrainerConfig:
rgba = pipeline.model.get_rgba_image(outputs=outputs, output_name="rgb")
outputs["rgba"] = rgba

# Remove non-image outputs
outputs.pop("num_samples_per_ray", None)

gt_batch = batch.copy()
gt_batch["rgb"] = gt_batch.pop("image")
all_outputs = (
Expand Down

0 comments on commit 449f408

Please sign in to comment.