LeslieZhoa / HeadSwap

This is a HeadSwap project not only face
MIT License
28 stars 9 forks source link

What alignment/cropping/format? #1

Closed antongonz closed 3 weeks ago

antongonz commented 1 year ago

Hello,

I tried your repo, but the results didn't work. What preprocessing do I need to do on the images before running them through inference.py?

Thanks!

LeslieZhoa commented 1 year ago

Hi @antonsanchez, this project do not need extend preprocessing. I put some test images here and you can get the result by running inference.py only. If you can not run anyway, could you show the errors here? Hope you get a good result!

antongonz commented 1 year ago

I figured it out. Your face detection doesn't work when the face is already cropped.

LeslieZhoa commented 1 year ago

Hi @antonsanchez , there is a crop_align param and you can change in your way