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

Overflow in bnf.py stage #16

Open
Abdurrahheem opened this issue Jun 3, 2022 · 1 comment
Open

Overflow in bnf.py stage #16

Abdurrahheem opened this issue Jun 3, 2022 · 1 comment

Comments

@Abdurrahheem
Copy link
Contributor

There is an overflow warning in while running python isp_pipeline.py with default raw image.

/openISP/model/bnf.py:33: RuntimeWarning: overflow encountered in ushort_scalars
  rdiff[i,j] = abs(img_pad[y+i,x+j] - img_pad[y+2, x+2])```
@Kuo-TingKai
Copy link

Kuo-TingKai commented Jan 9, 2023

you can fix it by:

rdiff[i,j] = abs(img_pad[y+i,x+j].astype(int) - img_pad[y+2, x+2].astype(int))

I fixed this warning issue in this commit (not merged yet)

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

2 participants