TypeError: 'NoneType' object is not iterable #211
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
i keep getting the above error. Of the 26 faces i've used, only one successfully returns a swap. All else gives this error. Any help is appreciated. i'm VERY new to this. Full error code:
set det-size: (640, 640)
Traceback (most recent call last):
File "test_wholeimage_swapsingle.py", line 62, in
img_a_align_crop, _ = app.get(img_a_whole,crop_size)
TypeError: 'NoneType' object is not iterable
Hello, you can find your solution here: https://github.com/neuralchen/SimSwap/issues/39#issuecomment-873758730
You should reduce the face detection threshold in
test_wholeimage_swapsingle.pyfor the following code:This is correct !! A detection threshold of 0.2 works well for me, even for side faces. Insight Face library (that the authors use for face detection) looks crappy though, as some very clear faces are detected with quite low probability - Or their models suffer from adversarial problems !!