Inpainting is staring at Astarions blank arse for fourty—five minutes to paint over corrupted areas and not finding it weird until your flatmate wanders in and asks you why there’s a ginourmous arse on your screen.
🤖 “Draped in wealth, my sunglasses shielding me from the blinding glare of prosperity, I pondered the surreal nature of this moment. It was as if I had been transported to a world where luxury and opulence knew no bounds. 💸 😎”
"Let's make AI Art with Stable Diffusion!": Highlights from my presentation for IGDA DC
Last week I hosted a presentation for IGDA DC about making AI art. Check out my blog for highlights from the event, and a collection of art generated by attendees: https://brick2face.com/2023/08/28/lets-make-ai-art-with-stable-diffusion-highlights-from-my-presentation-for-igda-dc/
Az intro-sorozatom utolsó részéhez értünk. Az első részben a text2img-et mutattam be, a másodikban az img2img-et. A mostaniban az img2img egy fajtáját mutatom be: az #inpainting-et.
A három felhasználási mód közül a harmadik a legizgalmasabb, hiszen még jobban kitágítja a lehetőségeket. Csak néhány használati lehetőség:
Retusálás - azaz nem kívánt rész törlése
Átalakítás - azaz egy nem kívánt rész helyére más elemet berakni, pl. deepfake kép - lásd a mellékelt képeimet
Kép méretének bővítése a határok kitolásával
Az inpainting annyiban különbözik az alap img2img-től, hogy csak a kép egy részében garázdálkodhat az AI.
Annyiban módosul az eljárás az img2img-ben, hogy ki kell jelölni egy maszkot - akár a webUI-ban, vagy a mage.space megfelelő felületén, vagy egy képszerkesztővel elkészíted, és feltöltöd a megfelelő helyre.
A prompt viszont semennyiben sem változik az img2img-hez képest, vagyis NE kövessük el azt a hibát, hogy csak a kijelölt részről írunk! A kép egészéről kell írnunk a promptban, különben a végeredmény egy katyvasz lesz.
Az egészben ez a legnehezebb, főleg az eltüntetésnél, hiszen amit lehet, el kell mondanod a képről, és pont azt a részt kell kihagynod, amit ki akarsz venni a képből, nem lehet azt mondani, hogy "nincs rajta sapka"...
Mint látjátok, az eredmény messze nem lesz tökéletes, de a kép további feldolgozásával lesz jó az eredmény. Valamint itt is érvényes a szabály, hogy nem elég egy képet generálni, hanem többet és a legjobbat kiválasztani. Megjegyzem: kivételesen elsőre összejött a "fejcserés támadás"...
Ezzel be is fejeztem a bemutatómat. A továbbiakban apróságokról fogok írni, egyfajta szótárként vagy trükktárként, hogy mikre kell figyelni. Mivel több felhasználói program is van, igyekszem mindegyiknél bemutatni, hol lehet megtalálni.
1) Let’s say that there was a double date. Two guys and two girls.
And then let’s say that it didn’t really work out as planned, but there are possibilities that the cool people got together after the sucky people were gone. They took their footwear with them.
This is how things should have been all along, and there’s social distancing in place today because they want to take things comfortably mellow.
2) Ahh, Johansen and ‘Bingo’ were the best of buddies while they were stationed over in that sandy place, brothers from different mothers.
But give it a year and the bromance has faded, and ‘Bingo’ is out chasing skirts, including Johansen’s significant other. Not cool, bro.
Then was then but now is now, and while we never leave our buddies behind on the battlefield, sometimes we have to leave them behind in our lives.
Commentary: It’d be great if this had some touchup tools like softening/blurring to take off hard/jagged edges, but I suppose that’s in postproduction with PS or doing an erase on its own on the hard edge so that the software will rebuild a smooth edge (and hope that it comes out right!).
Also, the above two are further exercises in the use of the ‘donor’ tool, where instead of the software using what’s around the erased portion to interpolate what should be there, you specify where you want to clone the eraser’s fill from. Both of these images had physical contact between the subject and the object to remove which were the same color range, so carving out what to erase AND specifying another area to fill that erased area with means that the software doesn’t create a mutating growth on that side of the subject’s body. :-P