Problem with convert

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
rolnor
Posts: 78
Joined: Tue Feb 23, 2021 10:09 am
Has thanked: 2 times
Been thanked: 4 times

Problem with convert

Post by rolnor »

I get this error message, I have tried to make new images but the problem persists. What can be wrong?

08/24/2022 09:02:17 WARNING Convert error traceback:
Traceback (most recent call last):
File "C:\Users\rolfn\faceswap\lib\convert.py", line 161, in process
image = self._patch_image(item)
File "C:\Users\rolfn\faceswap\lib\convert.py", line 203, in _patch_image
out=np.empty(patched_face.shape, dtype="uint8"),
MemoryError: Unable to allocate 23.7 MiB for an array with shape (2160, 3840, 3) and data type uint8
08/24/2022 09:02:17 ERROR Failed to convert image: '308Kort_000799.png'. Reason: Unable to allocate 23.7 MiB for an array with shape (2160, 3840, 3) and data type uint8
08/24/2022 09:02:17 WARNING Convert error traceback:

User avatar
torzdf
Posts: 2651
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 129 times
Been thanked: 622 times

Re: Problem with convert

Post by torzdf »

Try running convert with "single process" enabled or jobs set to "1"

My word is final

User avatar
rolnor
Posts: 78
Joined: Tue Feb 23, 2021 10:09 am
Has thanked: 2 times
Been thanked: 4 times

Re: Problem with convert

Post by rolnor »

Thanx!
It worked.

Locked