Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions nerfstudio/models/bakedsdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,8 @@ def sample_and_forward_field(self, ray_bundle: RayBundle):
return samples_and_field_outputs

def get_loss_dict(self, outputs, batch, metrics_dict=None):
loss_dict = {}
image = batch["image"].to(self.device)
loss_dict["rgb_loss"] = self.rgb_loss(image, outputs["rgb"])
loss_dict = super().get_loss_dict(outputs, batch, metrics_dict)

if self.training:
# eikonal loss
Expand Down