Skip to content

Commit 4767f54

Browse files
committed
Slight fix
1 parent 9b19c58 commit 4767f54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def training(dataset, opt, pipe, testing_iterations, saving_iterations, checkpoi
155155
render_pkg = renderFunc(viewpoint_cam, gaussians, pipe, bg, random=not opt.center_pixel)
156156
image, viewspace_point_tensor, visibility_filter, radii = render_pkg["render"], render_pkg["viewspace_points"], render_pkg["visibility_filter"], render_pkg["radii"]
157157

158-
if viewpoint_cam.alpha_mask is not None:
158+
if hasattr(viewpoint_cam, "alpha_mask") and viewpoint_cam.alpha_mask is not None:
159159
alpha_mask = viewpoint_cam.alpha_mask.cuda()
160160
image *= alpha_mask
161161
# Loss

0 commit comments

Comments
 (0)