neuralchen / SimSwap

An arbitrary face-swapping framework on images and videos with one single trained model!
Other
4.45k stars 881 forks source link

It seems like the model cannot recognize the face, i dont know how to deal with this. #380

Open blak-tran opened 1 year ago

blak-tran commented 1 year ago

Traceback (most recent call last): File "test_video_swapmulti.py", line 65, in img_a_aligncrop, = app.get(img_a_whole,crop_size) TypeError: 'NoneType' object is not iterable

MYTHOFLEGEND commented 1 year ago

如果一张图片中只有裁剪出的一张脸,大部分的人脸检测模型会识别不到,我的解决方法是,在图的外围pad几圈,缩小脸在图中的占比,模型就能检测到了