Page 1 of 1

ndarray is not C-contiguous

Posted: Fri Apr 03, 2020 2:46 am
by unfor54k3n

So I keep getting this error when I use the manual tool and try and convert over the video.

Failed to save image 'D:\Face_Swap_Testing\video\Output_vid2\LizzyP_004459.png'. Original Error: ndarray is not C-contiguous

No idea why its doing this, it seems to only happen when I use the manual tool and save out the alignments after. Any ideas? It basically corrupts the output PNG and makes it empty/broken file. (I am also using the latest version)

As another question, what is the preferred workflow/goal when using the alignments tool? Do the markers actually have to line up properly to make a face or does it just need to detect enough of a face? Because a lot of times it is impossible to align with the manual tool and it will generate a lot of zigzag lines across the face.

Any help is appreciated thanks!


Re: ndarray is not C-contiguous

Posted: Fri Apr 03, 2020 10:10 am
by torzdf

The alignments tool is currently being re-written, so I won't be looking to bugfix.

However, the tool has no impact on output pngs (they aren't used for the tool) so I'm not sure how it would corrupt pngs?


Re: ndarray is not C-contiguous

Posted: Fri Apr 03, 2020 7:17 pm
by unfor54k3n

It seems like when I use the manual alignments tool and save the new alignment file and load that back in for my convert process it breaks something which causes the error I am getting above. So I assume it’s related as that error does not show up if I use the raw “extracted” alignments which I never modified using the manual tool.

I will just wait until you release the new manual alignments tool and report back if I run into issues.


Re: ndarray is not C-contiguous

Posted: Thu May 28, 2020 11:12 pm
by botoxparty

I'm having the same problem with converting from an alignment file that was edited manually.

It also says this for me, not sure what Reason: 'extended' is referring to? Any ideas?

ERROR: Failed to convert image: 'Image_007212.png'. Reason: 'extended'
ERROR: Failed to save image '/home/ubuntu/faceswap/dist/Image_007212.png'. Original Error: ndarray is not C-contiguous