Page 1 of 1

Invalid value avg_colour

Posted: Sun Aug 23, 2020 11:18 pm
by Antipope1

I have this message come up when converting, just curious as to what it is?

Code: Select all

I:\FS\faceswap\pluginst\color\avg_color.py:16: RuntimeWarning: invalid value encountered in true_divide
adjustment = avg_diff / np.sum(raw_mask, axis=(0, 1))
I:\FS\faceswap\lib\convert.py:193: RuntimeWarning: invalid value encountered in rint
patched_face = np.rint(patched_face,

Re: Invalid value avg_colour

Posted: Mon Aug 24, 2020 6:39 am
by torzdf

I've not seen that message before, and it would be tricky to trouble shoot as it is being generated from the underlying C library. However, I would imagine it is exactly what it says. It has received a value that it cannot round to the nearest integer. I have no idea what that value might be though.