Skip to content
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

interp bug 初始化问题 #5674

Open
ljbulesky opened this issue Sep 3, 2024 · 0 comments
Open

interp bug 初始化问题 #5674

ljbulesky opened this issue Sep 3, 2024 · 0 comments

Comments

@ljbulesky
Copy link

ljbulesky commented Sep 3, 2024

我发现对1*1进行插值bilinear。会出现nan值。

因为(interp_bilinear.h)resize_bilinear_image函数中Mat rowsbuf0(w); Mat rowsbuf1(w);这两个分配内存后,没有进行初始化为0。导致
__m256 _Dp = _mm256_mul_ps(_rows0, _b0_256); 出现了nan值。一个_rows0随机值,和一个_b0_256 =0相乘,导致有概率的出现nan值。注意,且只是1*1进行bilinear插值时会出现。

@nihui
麻烦你们可以确认一下,不知道我排查的对不对。非常感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant