Picture technology using AIs like Midjourney is shockingly good. However the AIs even have a number of weaknesses. On this article, I will present you how one can work round a kind of weaknesses.
We’ll learn to make two or extra characters with matching faces.
Additionally: How AI helped get my music on all the major streaming services
Face matching is surprisingly inconsistent, and there are a number of completely different strategies that can be utilized. Once 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’ll dive in and present you how you can make all of it occur, step-by-step.
Additionally, for this text, I’ll assume you’ve got signed up for and arrange your Midjourney account. In case you’re undecided how to do this, this text by ZDNET’s Lance Whitney will stroll you thru the steps:
Additionally: How to use Midjourney to generate amazing images and art
First, I will present you what I did to create my photographs, after which I will present you some further strategies.
This method makes use of an current {photograph} as a part of the picture immediate, which supplies Midjourney some steerage on what to create. Since I needed my foremost album promotion photographs to appear to be 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.
As soon as it has been introduced into Midjourney, proper click on on the picture and choose Copy Hyperlink:
This hyperlink is what you may 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 exhibits what it regarded like after I entered the total immediate. The highest left image is the picture I wound up utilizing for my profile.
Please notice that this set of photographs was most undoubtedly not my first “roll” on Midjourney. Anticipate to do 5, 10, even 20 completely different tries earlier than you get one thing you want.
Additionally: 5 ways to explore the use of generative AI at work
That stated, you’ll be able to see how the generated model (particularly the one on the higher left) appears to be like moderately near what I appear to be. Extra apparently, the leather-based jacket within the picture appears to be like weirdly just like the one I have been sporting for the previous decade or so. How does it know?
Only for completionist’s sake, here is what might need been generated with out utilizing the uploaded picture as steerage.
They’re all fine-looking gents, however they appear nothing like me.
You should use the starter-image trick for something you need. This is what Midjourney thinks my little Yorkie Poo pup Pixel might need regarded like as a Scottish warrior prince:
Every quad of photographs generated by Midjourney has its personal ID, known as a seed. If you wish to create future photographs which are much like an current Midjourney picture, you’ll be able to strive referencing the seed ID. It does not all the time work, nevertheless it’s price a strive.
To get a seed ID, click on the half-moon-plus icon (1) on the higher proper of the picture the place you need to get the seed. Then, within the search field, sort in :envelope: (2). Then click on on the envelope (3).
Additionally: How ChatGPT can rewrite and improve your existing code
I do know it is fully intuitively unobvious, however this course of will persuade Midjourney to ship you a message that comprises the seed ID for the quad of photographs you are working with.
It is unlucky that the seed is for the quad of photographs, as a result of that makes it tougher to drill into the one picture you want. Nevertheless it’s a place to begin.
For my promotion, I needed a picture of me standing in entrance of my automobile. I drive a purple Dodge Challenger and I believed that will be cool for my bio web page.
This time, as an alternative of beginning with the precise photograph of me, I used the generated profile picture as my place to begin. As proven above, I uploaded it and bought its URL.
Then, I mixed the profile picture with the beforehand retrieved seed worth and a immediate, and after about 20 spins, I bought this quad:
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: The best AI art generators: DALL-E 2 and fun alternatives to try
Whereas the picture on the decrease left was completely horrible, the one on the proper wasn’t dangerous. Strictly talking, it did not look solely like me. Nevertheless it did seize the identical thematic fashion as the unique profile picture, it was shut sufficient, and the automobile regarded good.
However this was not my face and most undoubtedly not my hair:
To get the faces proper, I used a software known as InsightFace, which additionally runs in Discord. Getting InsightFace arrange is its personal undertaking, and quite than taking you down that rabbit gap right here, I will 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 glorious picture tutorials, specific on Photoshop options. So, do not simply watch the video — save the channel.
Upon getting InsightFace arrange, we are able to go to city. The method entails two steps: importing the face you need to use, and importing the picture you need it utilized to.
To add the picture you need to use, use the /saveid command.
If you sort /saveid, you may be given a spot to add a picture. Then it is advisable to 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:
Add the picture you need the face to be utilized to. Then sort within the ID you created earlier. In case you’re fortunate, when you hit return, you may get a picture with the brand new face.
In fact, 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 total photographs. Photoshop Generative Fill is good for putting new imagery on prime of current photographs and having all of it bend collectively seamlessly.
The important thing drawback was all the additional hair under the ears. To eradicate that, I first introduced the Dave Head to one thing no one had ever seen earlier than: a bald me. I chosen the area simply the place I needed 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, nevertheless it labored out.
Additionally: How to use Bing Image Creator (and why it’s better than DALL-E 2)
And, in spite of everything the assorted AI results, the ultimate image is under.
One fast notice: 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 last picture from my authentic manufacturing course of, however the rightmost picture within the Three Daves graphic above exhibits how new hair could possibly be generated, even when it isn’t precisely the identical output.
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 now not has a free tier. The plan I exploit prices $8 a month. Up to now, I have not hit any limits with it, though it typically can take a short while for photographs to be created.
What about InsightFace? Is it free?
InsightFace does supply some free credit. I’ve performed 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, while you run out of face swap credit, you may must subscribe to a Patreon account for Picsi.ai. There are two plans. The bottom $10/month plan appears to be like like it should do high quality for most individuals. As to the connection between InsightFace and Picsi.ai, it seems that InsightFace is an open-source undertaking, and Picsi.ai has created a usable Discord shopper for it. However I am certain extra can 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 under.
You’ll be able to observe my day-to-day undertaking updates on social media. Remember to subscribe to my weekly replace publication on Substack, and observe me on Twitter at @DavidGewirtz, on Fb at Facebook.com/DavidGewirtz, on Instagram at Instagram.com/DavidGewirtz, and on YouTube at YouTube.com/DavidGewirtzTV.
Thank you for being a valued member of the Nirantara family! We appreciate your continued support and trust in our apps.
- Nirantara Social - Stay connected with friends and loved ones. Download now: Nirantara Social
- Nirantara News - Get the latest news and updates on the go. Install the Nirantara News app: Nirantara News
- Nirantara Fashion - Discover the latest fashion trends and styles. Get the Nirantara Fashion app: Nirantara Fashion
- Nirantara TechBuzz - Stay up-to-date with the latest technology trends and news. Install the Nirantara TechBuzz app: Nirantara Fashion
- InfiniteTravelDeals24 - Find incredible travel deals and discounts. Install the InfiniteTravelDeals24 app: InfiniteTravelDeals24
If you haven't already, we encourage you to download and experience these fantastic apps. Stay connected, informed, stylish, and explore amazing travel offers with the Nirantara family!
Source link