-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Radial n tangential undistort #346
Radial n tangential undistort #346
Conversation
…to radial_n_tangential_undistort
#include <paddle/extension.h> | ||
|
||
#include <vector> | ||
// #define PADDLE_WITH_CUDA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不需要的代码需要删除,下同
void cv_undistort_cpu_kernel(const data_t *xy_coords, | ||
const data_t *distortion_coeffs, data_t *xy_undist, | ||
float eps, int max_iterations, int input_numel) { | ||
// 迭代过程中的数据 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注释写成英文,下同
} | ||
} | ||
|
||
PD_BUILD_OP(cv_undistfun) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
算子名称仍然用radial_n_tangential_undistort
吧,后续会替换掉paddle原生算子实现的版本
|
||
if paddle.device.is_compiled_with_cuda(): | ||
setup( | ||
name='my_undist', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的模块名称使用undistort
吧
这里的gpu测试结果是不是写成cpu的了。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
添加c++畸变校正算子
测试结果
仿真图像
硬件信息
框架信息
测试三次取平均值,程序的运行时间分别为
paddle.allclose测试全部通过