AI Art, Design & Creativity

Add Your Face To Any Image On Midjourney, No Skills Necessary

How you can personalise images with InsightFace and Midjourney with 1 click

Hamaad Ali
7 min readMay 23, 2023

This is really fun, and I don’t know if it’s just me living out my secondary school editing dreams, but it also doesn’t get old.

Face-swapping is like half the reason I started photoshopping.

With this Midjourney plugin, it’s never been easier, and works with any kind of image and style.

Originals on top and face-swaps below

You will still find people doing this at a much better level, and making it look much more realistic. But working with Midjourney is so bloody quick and tons of fun.

No Photoshop, no endless uploads, just straight-up Midjourney magic.✨

🔮 This trick is courtesy of InsightFace, an open-source app for 2D and 3D face analysis.

Just 1 click and with this plugin you can make consistent characters across your artistic creations very easy… 💭

But…🔍 Heads up — the plugin’s a bit iffy with 2D animation styles and the faces get blurred, I share examples in the images below.

And, in a photo with multiple people, you can’t choose who you want to face-swap, at the moment it does every face in the image.

I think it’s pretty good at 3D animation and synthography (ai photography) but not perfect. 🕹️ With how fast AI is improving I can only expect major improvements, and soon.

What impressed me the most is how it changes your facial expression and angle to match the photo.

These results are pretty decent
Not bad but not great. You can see some of the glitches here.

How to face-swap

1. Make a Midjourney and Discord account

To reap the real benefits you need a subcription plan on Midjourney.

Then sign up to their Discord server. Midjourney is hosted on Discord because they want to build an AI community, and want people to view what other people are creating in real time.

Once you have those accounts in place, you can create a private server.

2. Invite Midjourney and InsightFace Bot on a private server

First create your own private server.

Click the big plus sign at the bottom left of your Discord sidebar, it will prompt you to create a server. Then click on “Create My Own”

Follow this by adding the Midjourney bot to a channel in the server so you can start creating.

To do that,

  1. Go to the direct messages on your sidebar, and locate “Midjourney bot”
  2. Right-click to open the “Profile”
  3. Select “Add to Server”
  4. Select your server
  5. Click “Continue” and “Authorize”

And finally you will need to invite the InsightFace Bot to your server.

Creating your own server with different channels is also an awesome way I organize my Midjourney projects.

3. Register the face “/saveid”

Then it's time to upload an image and register the face with the command “/saveid” for subsequent facial replacement and editing.

The ID name will be used for face swapping.

Note that front-view, high quality, no glasses ID photos are preferred. It also works best when face swapping people with similar facial proportions.

Let’s take a photo of me as an example. I am giving the image the id “hamaad”.

4. Create or upload an image

Then create an image with Midjourney and pick one that you like to upscale with the “U buttons” below.

To create an image you need to use the command “/imagine”.

Here, I picked the fourth one and upscale it with U4.

4. Use “INSwapper”

And now, let’s cast the magic to quickly face-swap!

To use the INSwapper plugin, right-click on the image, then select “Apps — INSwapper” from the drop-down menu.

Typically, the job is finished swiftly and you can instantly witness the result.

Note that once you have created an identity, it will be automatically set as the default one. You can use “/setid” command to change the default identity name for image generation using the context menu.

5. “/swapid” command function

The InsightFace plugin can also process saved images through the use of the “/swapid” command.

Input the ID name and upload an image when prompted.

Hit “enter” and ta-da! It’s really that simple.

🚧 In today’s attention=currency world, this type of tech could be misused.

People can more easily fake their lives online, and pretend to be someone they’re not. 👀

Let’s all be ethical, and use this face-swapping responsibly!

Here are the Major Commands of Insight Face

/saveid
Upload an image and registed the ID

/setid
Easily set the identity name(s) for image generation right from the context menu. You can specify multiple IDs by separating them with commas.

/swapid
Replace the face with the registered identity name on target image.

/listid
List all registered identity names. You can create up to 10 distinct IDs!

/delid name
Delete specific identity name.

/delall
Delete all registered names.

P.S. 🔍 Want to learn how to create photorealistic images on Midjourney? I can whip up a detailed post on this, just comment below. Let me know!

#ai #animation #photoshop #adobeai #midjourney #synthography

--

--

Hamaad Ali

Floating around my curiosities and sharing what I learn. Living life outside the box. Writer, multi-media artist and optimist 🏁