Python : RuntimeWarning: overflow encountered
13,999
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.
Author by
Raslav M
Updated on June 09, 2022Comments
-
Raslav M almost 2 years
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