mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-24 08:35:41 +08:00
Fix normals vis
This commit is contained in:
1 parent
390b910339
commit
0032842277
1 file changed
+2
-2
@@ -257,8 +257,8 @@ class DreamFusionModel(Model):
|
||||
rgb=rgb, normals=pred_normals, light_direction=light_d, shading_weight=shading_weight, detach_normals=True
|
||||
)
|
||||
|
||||
outputs["normals"] = normals
|
||||
outputs["pred_normals"] = pred_normals
|
||||
outputs["normals"] = ((normals + 1.0) / 2.0) * accum_mask
|
||||
outputs["pred_normals"] = ((pred_normals + 1.0) / 2.0) * accum_mask
|
||||
outputs["shaded"] = accum_mask * shaded + torch.ones_like(shaded) * accum_mask_inv
|
||||
outputs["shaded_albedo"] = shaded_albedo
|
||||
outputs["render"] = accum_mask * rgb + background
|
||||
|
||||
Reference in new issue
Block a user