Skip to content

Commit

Permalink
fix import issue (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanskar107 authored Jun 3, 2021
1 parent 9a33763 commit 15fefa7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ml3d/tf/utils/pointnet/pointnet2_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import open3d

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


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

output = ml_ops.furthest_point_sampling(xyz, npoint)
output = furthest_point_sampling(xyz, npoint)
return output


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

dist2, idx = ml_ops.three_nn(query_pts, data_pts)
dist2, idx = three_nn(query_pts, data_pts)
return tf.sqrt(dist2), idx


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

output = ml_ops.three_interpolate(features, idx, weight)
output = three_interpolate(features, idx, weight)
return output


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

m = features.shape[2]

grad_features = ml_ops.three_interpolate_grad(grad_out, idx, weight, m)
grad_features = three_interpolate_grad(grad_out, idx, weight, m)
return grad_features, None, None


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

idx = ml_ops.ball_query(xyz, new_xyz, radius, nsample)
idx = ball_query(xyz, new_xyz, radius, nsample)
return idx


Expand Down

0 comments on commit 15fefa7

Please sign in to comment.