AI Portraits - AI Art and Human Experiences + Notebook Updates [en/spa]

ai_portraits(4).png


They were modern, elegant and powerful. Humans highly modified. They were immortal, and for them the 100% organic human was not better than an insect.

Eran modernos, elegantes y poderosos. Humanos muy modificados. Eran inmortales, y para ellos el humano 100% orgánico no era mejor que un insecto.





AI Art Experiences



After a little break, and some days of experimenting, I'm back. After have seen some AI portraits from @dbddv01, I was eager to give it a try. By the way, you should take a look to his blog, it's amazing how he is building an ecosystem with his creations. So he inspired me to make some portraits, and it has been very challenging.

Portraits are not the strongest point of this AI, that's for sure. Sometimes I got well done faces by luck, often because I have add to the prompt an artist who painted many of them. But ask for a portrait in particular, doesn't work most of the times. And anyway, the result is a mess. The AI suffers to place all the elements of a face, the proportions... so I wanted to try @dbddv01 approach, and use an initial image to help the AI. Do that improved a lot the result, but continued having some problems, and the more iterations the more increased. So I have been doing lots of runs along some days and just observing what happens. How the AI interprets the image given. And also some research in the internet.

The AI analyzes the image, and split it in areas. It considers the lines that are draw. Also, each pixel is checked, their values of lighting and color are extracted, and areas created around these pixel values. One example can be the difference of the brightness between a highlight in metal ball and the nearby areas that are not getting directly the rays if light. The AI gonna consider it to different areas and create a shape that is not gonna be displayed but considered for future use when painting the image. Same with the colors, any different patch of color gonna be considered as an area. And used when painting as well. So considering all this, what I have done is to edit the start image in photoshop, to avoid unwanted results most as possible.

An example can be how I fixed a recurrent problem that I had with the lips. Lips got giant and very distorted, split in pieces, in every run. The split was happening due the highlights on them in the start image. It created some kind of lines in the lips and the AI considered them the borders of different areas. Had to think a lot about why the lip was getting giant. It seemed the AI was merging the lip and its shadow. But the shadow seemed black, the lip was red... I was missing something. At end I remembered that the shadows still having color... so, used Photoshop to increase the brightness of the start image, and yes, the shadow was tinted with the same red than the lips, so the AI considered it a whole area.

So to solve all this stuff what I have done is, desaturate all the start images, and use the levels to increase the contrast and decrease the dynamic range most as possible. And also delimitate areas using the clone stamp, the brush, and any tool to make clear to AI how should split the image. By the way, the start images have been made with Artbreeder.

Changing the subject, there are not new updates for the notebooks, and in fact I think gonna downgrade them. The anti-disconnect features are not working anymore. Google have been making some updates, to stop the insane amount of bots using Colab. Also seems they did something else, and the anti-disconnect requests to the server gets rejected. So I'm gonna remove those from the notebooks eventually.

And that's all, hope you like these AI portraits. Regards!

Después de un descanso, y unos cuantos días experimentando, he vuelto por aquí. Después de ver algunos retratos hechos con IA por @dbddv01, me entraron muchas ganas de probar. Por cierto, deberíais echarle un vistazo a su blog, es increíble como crea un ecosistema con sus creaciones. Así que me ha inspirado a intentar hacer unos retratos, y ha sido todo un desafío.

Los retratos no son lo mejor de esta IA, os lo aseguro. A veces me salieron algunas caras bien hechas por pura suerte, a menudo porqué añadí al prompt un artista que había pintado muchos de ellos. Pero pedir específicamente un retrato, no funciona la mayoría de veces. Y si funciona, igualmente el resultado es un desastre. La IA sufre para emplazar correctamente los elementos de la cara, las proporciones.. así que decidí probar la táctica de @dbddv01, y usar una imagen de inicio para ayudar a la IA. Eso mejoró mucho el resultado, aunque seguía teniendo algunos problemas, los cuales se incrementaban a cuantas más iteraciones. Así que me dediqué a lanzar la IA muchas veces a lo largo de unos cuentos días y observar que sucede. Cómo la IA interpreta la imagen que se le ha dado. Y también un poco de investigación en internet.

La IA analiza la imagen, y la separa en áreas. Toma en cuenta los trazos. Y también cada pixel es analizado, sus valores de luminosidad y color son extraídos, y en torno a esos valores crea las áreas. Por ejemplo, imaginemos los brillos en una bola de metal, la diferencia entre sus brillos y las partes de al lado que no están recibiendo la luz directamente. La IA considerara esas zonas como areas distintas para usar esa información cuando pinte. Lo mismo pasa con los colores, cualquier zona con un color en particular se considerará una área. Y se usará también esa información, a la hora de pintar. Así que tomando en cuenta todo esto, lo que he hecho es editar la imagen de inicio, para evitar todo lo posible resultados indeseados.

Un ejemplo de esto puede ser como corregí un problema muy recurrente con los labios. Se volvían gigantes, deformes, separados en varias partes, en cada intento. Lo de que fueran separados en trozos era debido a los brillos en los labios. Creaban una especie de líneas que le hacían pensar a la IA, que eran líneas que delimitan distintas partes. Entender porqué el labio se volvía gigante me costo mucho. Parecía que la IA estaba tomando el labio con su sombra, como si fueran una sola área. Pero la sombra parecía negra y el labio rojo... algo se me escapaba. Al final me acordé de que las sombras también tiene color... así que con Photoshop, le subí el brillo a la imagen, y si, la sombra tenía el mismo rojo que los labios, así que la IA lo estaba tomando como una sola área.

Para solucionar todo esto, lo que he hecho es desaturar todas las imágenes de inicio, subir el contraste y acortar todo lo posible su rango dinámico. También delimitar las áreas con el tampón de clonar, el pincel y cualquier herramienta para dejarlo claro a la IA como debería separar en areas la imagen. Por cierto, las imágenes de inicio han sido hechas con Artbreeder.

Cambiando de tema, no hay nuevas actualizaciones para los notebooks, en realidad los voy a degradar. Lo sistemas anti desconexión ya no funcionan. Google hizo algunas actualizaciones, para frenar el numero malsano de bots usando Colab. Parece que hicieron algo más, y las peticiones que el sistema anti desconexión le hace al servidor son rechazadas. Así que las quitaré de los notebooks en algún momento.

Y esto es todo por hoy, espero que os gusten los retratos hechos con la IA. ¡Saludos!



Notebooks



Enhanced Original VQGAN+CLIP Notebook

Mse regularized Modified VQGAN+CLIP Notebook

VQGAN+CLIP with Video Features Notebook

Real ESRGAN 4x Notebook





AI Artworks



ai_portraits (5).png


ai_portraits (2).png


ai_portraits (4).png


ai_portraits (3).png


ai_portraits (6).png


ai_portraits (1).png





All the content of this post is from my own.
Todo el contenido de este post es de mi autoría.

Images generated with VQGAN+CLIP, upscaled with Real-ESRGAN and edited with Photoshop.
Imágenes generadas VQGAN+CLIP, escaladas con Real-ESRGAN y editadas con Photoshop.

100% AI free writing.
Textos 100% libres de IA.

H2
H3
H4
3 columns
2 columns
1 column
31 Comments
Ecency