4

When i run pyOpenTld i get RuntimeWarning: overflow encountered in int_scalars from this module. Why is this happening?

Warning (from warnings module):
    File "D:\Python27\lib\pyOpenTLD\TLD\IntegralImage.py", line 34
        op[cols * j + i] = A + B - C + value
RuntimeWarning: overflow encountered in int_scalars

Thanks! ras

1 Answer 1

3

I think you are trying to create an int32 which is outside the allowed range. As per answer to SO question below, the maximum is 2**31-1.

I don't know pyOpenTld (or your code) but possibly try changing the type of A + B - C + value or cols*j+i, which might be the problem if it is part of a loop.

Also have a look at this answer which describes it quite well.

Here is more information on numpy dtypes and their allowed range.

Sign up to request clarification or add additional context in comments.

2 Comments

Could you also show the code you are running that causes the problem?
It is the opentld file in scripts folder in that git up there

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.