faceswap icon indicating copy to clipboard operation
faceswap copied to clipboard

New repo:GAN convert found issue: Failed to convert image:XXX. Reason: 'NoneType' object is not iterable

Open ruah1984 opened this issue 8 years ago • 8 comments

I use back previous model to run convert with the new repo found below issue Failed to convert image: C:\Users\photo\video-frame-98.png. Reason: 'NoneType' object is not iterable

or i need to train a new model before run convert?

ruah1984 avatar Feb 01 '18 17:02 ruah1984

Models did not change AFAIK

If you use gan, it is not yet finished, so please add this to the pull request so that we know that the error belongs there

Clorr avatar Feb 01 '18 18:02 Clorr

I had this NoneType issue when my machine crashed and corrupted my source images...try opening that one or the entire folder to see.

WesleyNery avatar Feb 01 '18 20:02 WesleyNery

This was my bad, I wasn't checking a value in the converter.

If this is still an issue please reopen.

gdunstone avatar Feb 01 '18 22:02 gdunstone

here is the pull request where I made the changes: https://github.com/deepfakes/faceswap/pull/95/

gdunstone avatar Feb 01 '18 22:02 gdunstone

@gdunstone , fix. show loading bar when convert.

https://imgur.com/a/3WtFb

ruah1984 avatar Feb 01 '18 22:02 ruah1984

is this fixed? I cant see anything wrong with your screenshot

gdunstone avatar Feb 01 '18 23:02 gdunstone

The screen shoot only show convert can be done without error with loading bar. After this try , no more error for "Failed to convert image:XXX. Reason: 'NoneType' object is not iterable".

i think the issue maybe due to i forget to copy the "shape_predictor_68_face_landmarks.dat" to this repo. and it not able to apply the face shape landmark.

ruah1984 avatar Feb 01 '18 23:02 ruah1984

No it was my coding error.

On 2 Feb. 2018 10:22, "ruah1984" [email protected] wrote:

The screen shoot only show convert can be done without error with loading bar. After this try , no more error for "Failed to convert image:XXX. Reason: 'NoneType' object is not iterable".

i think the issue maybe due to i forget to copy the "shape_predictor_68_face_landmarks.dat" to this repo. and it not able to apply the face shape landmark.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/deepfakes/faceswap/issues/93#issuecomment-362435235, or mute the thread https://github.com/notifications/unsubscribe-auth/AEDEeNbkOroualogUSSVJUwgfs4i2V28ks5tQkckgaJpZM4R2APk .

gdunstone avatar Feb 01 '18 23:02 gdunstone