Skip to main content

Face swap

Comments

17 comments

  • Rick Sammartino Community moderator

    I don't recall seeing any videos about that.

    I assume your swap is due to someone having their eyes closed or something similar.

    Most important would be to make sure the lighting is similar.

    In Photo raw, you would have your two photos each on their own layers. With the main photo on top, reduce the opacity to 50% so that you can see the replacement face below.
    Then, changing to the replacement layer, you can use transform to resize and adjust and move to match the location of the upper face.
    Once that is done, you can carefully mask out the upper face to blend in the one below it.

    It sounds more difficult than it is!

    1
  • Kevin Grow

    Thank you for the information and your quick response. I'll give it a go!

    0
  • Lou Gross

    In addition to ON1 I have PS Elements 2020 and it has an "eye opener" feature.  You can select the face of a person in a photo and then select the face of that person in another photo and it will move the eyes (not the whole face) from one to the other.  No need for layers and alignments, etc.  That is SO much easier than using ON1 to do it via layers. ON1 might consider such an enhancement.  I don't need it since I have PSE, but others may wish to consider making that enhancement request. It could be added to the Portrait section.

    0
  • Rick Sammartino Community moderator

    Considering that Photo Raw doesn't have any copy ability since it was designed to use layers for that, I don't see this suggestion getting any traction.

    In any case, it may be 'easier' but that doesn't mean it's difficult in Photo Raw, you just have to learn to use the program as intended.

    0
  • Lou Gross

    Rick,

    Right, ON1 does not use copy.  That can be a very handy feature - sometimes easier than layers, though it is, in a way, an auto generated and positioned layer.  With all the AI features, it would seem possible to create a layer with the masking set to just the eyes on the bad face (main) layer with the "good" face put on the layer below with the layer positioned so the eyes of the good face show through the mask.  

    It certainly can be done manually in ON1 - I have done it. It just takes more time. 

    Thanks for the quick reply. 

    FYI: I just installed the ON1 2024 version and was playing with it.  I had one "glitch". I went through the preferences and did not realize that when setting keyword options, it would begin scanning all the photos in my folder and immediately start updating .ON1 and .XMP files. My CPU usage went to over 90% and files started showing up in my main photo folder.  It took a couple of minutes to realize what was going on and uncheck all those keyword options.  Since then, everything has been good.  Excellent performance - even on my 8 year old system. 

    0
  • Kevin Grow

    Thanks for your help with my need to swap a face. I was able to achieve the face swap without much problem, however, I agree that the ability to copy to replace the face would be much simpler and quicker. I also find Lou's description of an "eye opener" feature intriguing. 

    0
  • Brian Lawson Community moderator

    Copy/Paste does work in 2024. It is one of the new features.

     

    0
  • Lou Gross

    Brian,

    How do I do that?  I tried looking at the manual.  Tried searching on "paste", did not see anything. It looks like you are making a mask but that did not seem to allow me to copy.  So how is it done???

    0
  • Brian Lawson Community moderator

    I used the OS command to copy a selection consisting of the one face to the Clipboard then I used the Paste command 3 times. Each paste creates a new Layer which can be resized and repositioned as needed with the Transform tool.

    I did not do any masking for this simple illustration. To do so would involve just creating a Mask on one of the Layers so only the face is left on that Layer then you can Copy/Paste the mask to the other Layers. Assuming your face is all the same as in this example. For different faces each mask would have to be created individually. The Portrait filter could help with the mask creation. You don't have to keep it if it isn't needed, just copy the mask it creates to paste into the Layer's Mask.

    1
  • Rick Sammartino Community moderator

    Yes, paste puts the copy ON THE LAYER which is exactly where you were anyway with adding a face. It doesn't do anything extra and It's not the feature that was being discussed.

    1
  • Brian Lawson Community moderator

    My reply was a direct response to, "ON1 does not use copy." and "Photo Raw doesn't have any copy ability…". That's all it was intended to address until I was specifically asked about masking.

    1
  • Lou Gross

    So the copy and paste is done at the layer level, NOT the selection level.  How is that any different than creating a layer and then using the duplicate layer?  No copy/paste needed - and the duplicate layer is simpler.  

    I do NOT consider that a true copy/paste.  If I select a word. phrase or a URL in a document and press Copy I expect JUST the selected portion to be in the copy - NOT the whole document!  At best, your "copy" is of the whole document - you just removed everything except the info you wanted.  NOT the same thing.

    In a true copy/paste I could make a select (for example using a line mask) and the copy would just capture THAT SELECTED section.  I could then past that into another layer or another photo.  I could then move that selection around in that other layer.  The key here is to move a selection to a DIFFERENT photo - not to another layer in the same photo.  I guess if you deleted ALL the other layers in a photo after doing the "copy/paste" and then saved that layer as its own photo you could add that layer to a different photo.  Or you could import that second photo into the original as another layer and then modify it with the layer you just created.  

    Interesting to discuss, not so fast and easy to do.

     

    0
  • Brian Lawson Community moderator

    Yes, the results are the same.

    Again, my post was to illustrate that Photo RAW now allows us to copy and paste. It would be a whole lot less to mask out with the copy/paste method. Fewer pixels on those Layers should also translate into a smaller file size. I'd have to do some testing with each method to be certain.

    0
  • Rick Sammartino Community moderator

    Lou, I said a long time ago that photo raw didn't have the copy/paste that you wanted.

    Your description of the layer workflow is standard procedure for photo raw with the exception that you don't need to delete layers, you can just turn them off.

    0
  • Lou Gross

    Rick,

    I understand that you said ON1 did not have copy paste.  I was responding to Rick's example. I thought, when he first brought this up (above), there was some new feature in 2024 that would allow a "real" copy/paste.  But while there MAY be some improvement in 2024 it is not to the level that PSE allows.  

    Maybe next year?

    0
  • Brian Lawson Community moderator

    You do understand that PSE is a destructive pixel editor, right? You do things there that cannot be done with a non-destructive editor and different techniques have to be used.

    0
  • Lou Gross

    I do know that PSE is a "destructive" editor.  I did not associate that with different capabilities.  I imagined that ON1 could do everything that PSE could do - and more.  Since above I mentioned that the copy/paste was really just about creating an overlay from a selected part of a picture.  I am not aware of a reason why ON1 could not just use masking to get the selected part of a picture and put that into an overlay in the same picture or a different picture (creating an ONPHOTO formatted file if not already existing). Then that overlay could be manipulated with the Transform functions to correctly size and position it over (or underneath) another overlay.  That way a face, eyes, etc. from one picture could be put in another picture and used to replace a part of that other picture.

    I am suggesting it is theoretically possible within the existing framework.  I am NOT suggesting it should be done. 

     

    0

Please sign in to leave a comment.