Skip to content

Commit

Permalink
adapter new type promotion rule for Paddle 2.6 (#455)
Browse files Browse the repository at this point in the history
* adapter new type promotion rule for Paddle 2.6

* fix code style
  • Loading branch information
zxcd authored Mar 11, 2024
1 parent 1d846ee commit 3259dab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions paddle3d/models/detection/smoke/smoke_coder.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,8 @@ def decode_location(self, points, points_offset, depths, Ks, trans_mats):
points = paddle.reshape(points, (-1, 2))
assert points.shape[0] == N

# int + float -> int, but float + int -> float
# proj_points = points + points_offset
proj_points = points_offset + points
proj_points = points_offset + points.astype(points_offset.dtype)

# transform project points in homogeneous form.
proj_points_extend = paddle.concat(
Expand Down

0 comments on commit 3259dab

Please sign in to comment.