Invalid value avg_colour

Getting errors or found a bug when converting faces from a trained model? Post about them here


Forum rules

Read the FAQs and search the forum before posting a new topic.

This forum is for reporting errors with the Convert process. If you want to get tips, or better understand the Convert process, then you should look in the Convert Discussion forum.

Please mark any answers that fixed your problems so others can find the solutions.

Locked
User avatar
Antipope1
Posts: 35
Joined: Thu Jul 02, 2020 10:51 am
Has thanked: 6 times
Been thanked: 3 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: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 623 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

Locked