AI

Easy methods to get an ideal face match utilizing Midjourney AI

david-car

That is the ultimate picture we’ll be working to create.

David Gewirtz/ZDNET

Picture technology utilizing AIs like Midjourney is shockingly good. However the AIs even have a number of weaknesses. On this article, I am going to present you how one can work round a type of weaknesses.

We will learn to make two or extra characters with matching faces. 

Additionally: How AI helped get my music on all the foremost streaming providers

Face matching is surprisingly inconsistent, and there are a number of completely different strategies that can be utilized. After I created my music promotion poses, I had to make use of some particular strategies to get the graphics to work.

How we use Midjourney, InsightFace, and Adobe Generative Fill to create this look

In my current article about utilizing AI to create an album, I glossed over the strategies I used, giving a thousand-foot view of what they had been. However on this article, I will dive in and present you learn how to make all of it occur, step-by-step.

Additionally, for this text, I will assume you’ve got signed up for and arrange your Midjourney account. In case you’re unsure how to try this, this text by ZDNET’s Lance Whitney will stroll you thru the steps:

Additionally: Easy methods to use Midjourney to generate wonderful photographs and artwork

First, I am going to present you what I did to create my photographs, after which I am going to present you some extra strategies.

This system makes use of an current {photograph} as a part of the picture immediate, which provides Midjourney some steerage on what to create. Since I wished my important album promotion photographs to appear like me, I gave Midjourney a starter picture.

To do that, double click on on the plus icon on the backside of the Discord display screen (bear in mind, Midjourney runs in Discord), select your picture, after which hit return.

plus-icon

Screenshot by David Gewirtz/ZDNET

As soon as it has been introduced into Midjourney, proper click on on the picture and choose Copy Hyperlink:

copy-link

Screenshot by David Gewirtz/ZDNET

This hyperlink is what you will use in getting ready your immediate. Subsequent, give Midjourney the /IMAGINE immediate, adopted by the URL, after which your spec. This screenshot of the set of 4 generated photographs reveals what it regarded like after I entered the complete immediate. The highest proper image is the picture I wound up utilizing for my profile. 

generated-david

Screenshot by David Gewirtz/ZDNET

Please be aware that this set of photographs was most undoubtedly not my first “roll” on Midjourney. Count on to do 5, 10, even 20 completely different tries earlier than you get one thing you want.

Additionally: 5 methods to discover the usage of generative AI at work

That stated, you possibly can see how the generated model (particularly the one on the higher left) seems to be fairly near what I appear like. Extra apparently, the leather-based jacket within the picture seems to be weirdly just like the one I have been carrying for the previous decade or so. How does it know?

Only for completionist’s sake, this is what may need been generated with out utilizing the uploaded picture as steerage.

other-bearded-dudes

Positively not me, however I believe I went to engineering college with the man on the decrease proper!

Screenshot by David Gewirtz/ZDNET

They’re all fine-looking gents, however they give the impression of being nothing like me.

You should utilize the starter-image trick for something you need. This is what Midjourney thinks my little Yorkie Poo pup Pixel may need regarded like as a Scottish warrior prince:

scottish-warrior-prince

Screenshot by David Gewirtz/ZDNET

Every quad of photographs generated by Midjourney has its personal ID, known as a seed. If you wish to create future photographs which might be much like an current Midjourney picture, you possibly can attempt referencing the seed ID. It does not all the time work, however it’s value a attempt.

envelop

Screenshot by David Gewirtz/ZDNET

To get a seed ID, click on the half-moon-plus icon (1) on the higher proper of the picture the place you wish to get the seed. Then, within the search field, kind in :envelope: (2). Then click on on the envelope (3).

Additionally: How ChatGPT can rewrite and enhance your current code

I do know it is fully intuitively unobvious, however this course of will persuade Midjourney to ship you a message that incorporates the seed ID for the quad of photographs you are working with.

seed-result

Screenshot by David Gewirtz/ZDNET

It is unlucky that the seed is for the quad of photographs, as a result of that makes it more durable to drill into the one picture you want. Nevertheless it’s a place to begin.

For my promotion, I wished a picture of me standing in entrance of my automotive. I drive a crimson Dodge Challenger and I believed that may be cool for my bio web page.

This time, as an alternative of beginning with the precise picture of me, I used the generated profile picture as my place to begin. As proven above, I uploaded it and received its URL.

upload-profile-image

Screenshot by David Gewirtz/ZDNET

Then, I mixed the profile picture with the beforehand retrieved seed worth and a immediate, and after about 20 spins, I received this quad:

car-image-spin

Screenshot by David Gewirtz/ZDNET

Discover the /think about immediate. The URL is initially, and the seed immediate on the finish had my seed quantity. That is how I tied the 2 photographs collectively.

Additionally: One of the best AI artwork mills: DALL-E 2 and enjoyable options to attempt

Whereas the picture on the decrease left was completely horrible, the one on the fitting wasn’t dangerous. Strictly talking, it did not look totally like me. Nevertheless it did seize the identical thematic fashion as the unique profile picture, it was shut sufficient, and the automotive regarded good.

However this was not my face and most undoubtedly not my hair:

car-orig-face

Screenshot by David Gewirtz/ZDNET

To get the faces proper, I used a software known as InsightFace, which additionally runs in Discord. Getting InsightFace arrange is its personal challenge, and slightly than taking you down that rabbit gap right here, I am going to level you to the tutorial I used to get began.

This video is from PIXimperfect. I actually like this channel as a result of the presenter showcases some wonderful picture tutorials, specific on Photoshop options. So, do not simply watch the video — save the channel.

After getting InsightFace arrange, we are able to go to city. The method includes two steps: importing the face you wish to use, and importing the picture you need it utilized to.

To add the picture you wish to use, use the /saveid command.

saveid

Screenshot by David Gewirtz/ZDNET

Once you kind /saveid, you will be given a spot to add a picture. Then that you must give that picture a reputation ID. I known as mine “daviddoor” as a result of I am standing in entrance of a door. Keep in mind that ID since you’ll use it within the subsequent step.

Now, it is time for the face swap. Kind /swapid:

swapid

Screenshot by David Gewirtz/ZDNET

Add the picture you need the face to be utilized to. Then kind within the ID you created earlier. In case you’re fortunate, when you hit return, you will get a picture with the brand new face.

old-face-new-face

Screenshot by David Gewirtz/ZDNET

After all, the hair nonetheless is not proper.

Lastly, I wanted to repair the hair. For this, I dropped into the Adobe Photoshop beta and used Generative Fill. Midjourney is nice for creating whole photographs. Photoshop Generative Fill is good for putting new imagery on prime of current photographs and having all of it bend collectively seamlessly.

three-daves

Varied variations of me, each with and with out hair.

Screenshot by David Gewirtz/ZDNET

The important thing drawback was all the additional hair beneath the ears. To eradicate that, I first introduced the Dave Head to one thing no person had ever seen earlier than: a bald me. I chosen the house simply the place I wished the hair eliminated, generated “bald”, and Photoshop did the work.

Then I chosen a smaller space and generated “curly hair”. This took a number of tries, however it labored out.

Additionally: Easy methods to use Bing Picture Creator (and why it is higher than DALL-E 2)

And, in any case the varied AI results, the ultimate image is beneath. 

One fast be aware: the hair right here does not fairly match the tutorial hair above. That is as a result of I needed to recreate the method for demonstration, and the AI all the time comes up with one thing barely completely different. That is the precise closing picture from my unique manufacturing course of, however the rightmost picture within the Three Daves graphic above reveals how new hair could possibly be generated, even when it isn’t precisely the identical output.

david-car2x

David Gewirtz/ZDNET

FAQs

Listed below are a number of questions I have been requested since I printed the unique article.

Can I nonetheless use Midjourney totally free? 

No. Midjourney not has a free tier. The plan I exploit prices $8 a month. To this point, I have never hit any limits with it, though it typically can take a short time for photographs to be created.

What about InsightFace? Is it free? 

InsightFace does supply some free credit. I’ve carried out 4 or 5 face swaps and have not used them up. It seems to take about three “credit” per face swap, and also you get 50 free credit.

The place does Picsi.ai match into all this? 

So, once you run out of face swap credit, you will have to subscribe to a Patreon account for Picsi.ai. There are two plans. The bottom $10/month plan seems to be like it would do fantastic for most individuals. As to the connection between InsightFace and Picsi.ai, it seems that InsightFace is an open-source challenge, and Picsi.ai has created a usable Discord consumer for it. However I am certain extra will probably be revealed over time.

Have you ever used any of those AI picture instruments? What do you consider the face swap method? Does this spark any concepts for you? Tell us within the feedback beneath.


You possibly can observe my day-to-day challenge updates on social media. You should definitely subscribe to my weekly replace e-newsletter on Substack, and observe me on Twitter at @DavidGewirtz, on Fb at Fb.com/DavidGewirtz, on Instagram at Instagram.com/DavidGewirtz, and on YouTube at YouTube.com/DavidGewirtzTV.

Unleash the Energy of AI with ChatGPT. Our weblog gives in-depth protection of ChatGPT AI expertise, together with newest developments and sensible purposes.

Go to our web site at https://chatgptoai.com/ to study extra.

Malik Tanveer

Malik Tanveer, a dedicated blogger and AI enthusiast, explores the world of ChatGPT AI on CHATGPT OAI. Discover the latest advancements, practical applications, and intriguing insights into the realm of conversational artificial intelligence. Let's Unleash the Power of AI with ChatGPT

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button