Invalid value avg_colour

Converting source frames into swapped frames
Forum rules
Read the FAQs and search the forum before posting a new topic.

Please mark any answers that fixed your problems so others can find the solutions.
Post Reply
User avatar
Antipope1
Posts: 31
Joined: Thu Jul 02, 2020 10:51 am
Has thanked: 6 times
Been thanked: 2 times

Invalid value avg_colour

Post 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,
The beginning of the end.

User avatar
torzdf
Posts: 849
Joined: Fri Jul 12, 2019 12:53 am
Answers: 122
Has thanked: 23 times
Been thanked: 170 times

Re: Invalid value avg_colour

Post 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.
My word is final

Post Reply