Spaces:
Running
on
Zero
Running
on
Zero
Debug distCUDA2
Browse files- demo/gs_train.py +6 -1
demo/gs_train.py
CHANGED
@@ -141,7 +141,12 @@ def train(
|
|
141 |
checkpoint_iterations = args.checkpoint_iterations
|
142 |
debug_from = args.debug_from
|
143 |
|
144 |
-
|
|
|
|
|
|
|
|
|
|
|
145 |
print("dist2.shape: ", dist2.shape)
|
146 |
|
147 |
|
|
|
141 |
checkpoint_iterations = args.checkpoint_iterations
|
142 |
debug_from = args.debug_from
|
143 |
|
144 |
+
pcd = torch.randn((90804, 3)).float().cuda()
|
145 |
+
print("pcd: ", pcd.shape, pcd.dtype, pcd.min(), pcd.max(), pcd.device)
|
146 |
+
print("distCUDA2: ", distCUDA2(pcd.cpu()))
|
147 |
+
print("distCUDA2: ", distCUDA2(pcd.cuda()))
|
148 |
+
|
149 |
+
dist2 = torch.clamp_min(distCUDA2(pcd.cuda()), 0.0000001)
|
150 |
print("dist2.shape: ", dist2.shape)
|
151 |
|
152 |
|