Allow users to modify background color when cropping (#1289)

This commit is contained in:
Matthew Tancik authored and GitHub committed 2023-01-25 17:47:45 -08:00
1 parent 80ae933811
commit 90489b5a6d
6 files changed
+51 -12

No files matched your search

+1
View File
@@ -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