Skip to content

Commit 15fefa7

Browse files
authored
fix import issue (#290)
1 parent 9a33763 commit 15fefa7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ml3d/tf/utils/pointnet/pointnet2_utils.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import open3d
55

66
if open3d.core.cuda.device_count() > 0:
7-
import open3d.ml.tf.ops as ml_ops
7+
from open3d.ml.tf.ops import furthest_point_sampling, three_nn, three_interpolate, three_interpolate_grad, ball_query
88

99

1010
def furthest_point_sample(xyz, npoint):
@@ -18,7 +18,7 @@ def furthest_point_sample(xyz, npoint):
1818
if not open3d.core.cuda.device_count() > 0:
1919
raise NotImplementedError
2020

21-
output = ml_ops.furthest_point_sampling(xyz, npoint)
21+
output = furthest_point_sampling(xyz, npoint)
2222
return output
2323

2424

@@ -37,7 +37,7 @@ def three_nn_gpu(query_pts, data_pts):
3737
if not open3d.core.cuda.device_count() > 0:
3838
raise NotImplementedError
3939

40-
dist2, idx = ml_ops.three_nn(query_pts, data_pts)
40+
dist2, idx = three_nn(query_pts, data_pts)
4141
return tf.sqrt(dist2), idx
4242

4343

@@ -56,7 +56,7 @@ def three_interpolate_gpu(features, idx, weight):
5656
if not open3d.core.cuda.device_count() > 0:
5757
raise NotImplementedError
5858

59-
output = ml_ops.three_interpolate(features, idx, weight)
59+
output = three_interpolate(features, idx, weight)
6060
return output
6161

6262

@@ -71,7 +71,7 @@ def _tree_interpolate_gradient(op, grad_out):
7171

7272
m = features.shape[2]
7373

74-
grad_features = ml_ops.three_interpolate_grad(grad_out, idx, weight, m)
74+
grad_features = three_interpolate_grad(grad_out, idx, weight, m)
7575
return grad_features, None, None
7676

7777

@@ -87,7 +87,7 @@ def ball_query_gpu(radius, nsample, xyz, new_xyz):
8787
if not open3d.core.cuda.device_count() > 0:
8888
raise NotImplementedError
8989

90-
idx = ml_ops.ball_query(xyz, new_xyz, radius, nsample)
90+
idx = ball_query(xyz, new_xyz, radius, nsample)
9191
return idx
9292

9393

0 commit comments

Comments
 (0)