You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I discovered another odd quirk that I actually think might be quite easy to address. It seems that your software has a bit of an issue when the face is super closeup but this can be easily fixed using something like PIL to pad the image borders with black pixels, run the swap and then remove the black pixels afterwards. This is what I was thinking. I was going to run some tests after work today and I will report back what I find.
Here is how I implement it in my version of your facedancer function. You need to import PIL and define the variable padding to your liking. I am going to experiment with what the optimal setting for this padding and check to make sure there aren't any negative side effects.
For anyone else looking at this. Two things. First, I am just learning how to code. It is very likely there are better ways to do just about everything I post. Second, this is only a snippet. There are import statements file structures and other functions that I made up that aren't included because they are convoluted and confusing and mostly driven just towards my purposes. If anyone is interested in colabing, just message me and I can share the whole code. It is ridiculously long because, like I said, I am almost positive I am not doing everything correct. But it does work, so I am mostly happy with it.
So I discovered another odd quirk that I actually think might be quite easy to address. It seems that your software has a bit of an issue when the face is super closeup but this can be easily fixed using something like PIL to pad the image borders with black pixels, run the swap and then remove the black pixels afterwards. This is what I was thinking. I was going to run some tests after work today and I will report back what I find.
Here is how I implement it in my version of your facedancer function. You need to import PIL and define the variable padding to your liking. I am going to experiment with what the optimal setting for this padding and check to make sure there aren't any negative side effects.
The text was updated successfully, but these errors were encountered: