mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-06 07:48:50 +08:00
Allow users to modify background color when cropping (#1289)
This commit is contained in:
1 parent
80ae933811
commit
90489b5a6d
6 files changed
+51
-12
No files matched your search
@@ -134,6 +134,7 @@ class RaySamples(TensorDataclass):
|
||||
transmittance = torch.exp(-transmittance) # [..., "num_samples"]
|
||||
|
||||
weights = alphas * transmittance # [..., "num_samples"]
|
||||
weights = torch.nan_to_num(weights)
|
||||
|
||||
return weights
|
||||
|
||||
|
||||
Reference in new issue
Block a user