Breaking news

“stablediffusion-infinity” that allows you to expand the image more and more with the outpainting function of the image generation AI “Stable Diffusion”-GIGAZINE

--


The image generation AI “ Stable Diffusion ” released in August 2022 has been furiously added with extensions and plug-ins by users around the world, and you can easily use Stable Diffusion with the user interface (UI).AUTOMATIC 1111 Stable Diffusion web UI” has also appeared. With such Stable Diffusion, you can use the “Outpainting” function to add illustrations while maintaining the composition and pattern of the original image, and use the “Outpainting” function to expand the image more and more.stable diffusion-infinity” has appeared.

GitHub – lkwq007/stablediffusion-infinity: Outpainting with Stable Diffusion on an infinite canvas
https://github.com/lkwq007/stablediffusion-infinity

stablediffusion_infinity_colab.ipynb – Colaboratory
https://colab.research.google.com/github/lkwq007/stablediffusion-infinity/blob/master/stablediffusion_infinity_colab.ipynb

Outpainting in image generation AI is a function that allows you to add images according to new prompts while maintaining the composition and pattern of the original image. In “stablediffusion-infinity”, it is possible to arrange or generate images in a large canvas prepared in advance, and to add new images that retain the pattern there. For example, generate the following “cat sitting on the grass” image on the canvas …


You can add new images there.

f667736e39.jpg


The cat’s body is also connected to the extended part to keep it consistent with the original image.

65be859981.jpg


It is also possible to perform outpainting based on images and photos that already exist.Johannes VermeerIn the example based on “Girl with a Pearl Earring” …

5a48fff747.jpg


A space with shelves and curtains was generated in the background of the girl.

8fe5bcdf0e.jpg


“stablediffusion-infinity” is a Python execution environment provided by Google “Google ColaboratoryThe video used in ” has also been released.

Stable Diffusion Outpainting Colab Tutorial – YouTube

Painted on the canvas are faces that look like aliens or robots, and birds that fly in the sky.

0e3647a9bd.jpg


Place a square frame in a place where there is no picture on the canvas yet ……

33a0872314.jpg


Enter ‘an alien spaceship’ in the lower right prompt entry field and click the ‘outpaint’ button.

d8e374b586.jpg


After waiting for a while, a spaceship was drawn where the frame was placed. Not only is it smoothly connected to the central face, but the background and pattern also have a sense of unity.

bf708d39d1.jpg


Now place the frame in another place and click “outpaint”. The prompt is still “an alien spaceship”.

e42111cd66.jpg


Then the second spaceship was drawn on the face. This video also explains how to run “stablediffusion-infinity” on Google Colaboratory, but at the time of writing the article, it was reported that an error occurred and it could not be used.

4e7f52f2c4.jpg


On Twitter, Vermeer’s “woman pouring milkNestlé’s dessert brand “La LaitièreBased on the illustration of “, a video that draws the surroundings of a woman using image generation AI’s outpainting has become a hot topic.

Quand La Laitière de Nestlé utilise l’IA pour imaginer ce qu’il ya au-delà du célèbre tableau de Vermeer pic.twitter.com/hczSEBsAhq

— Creapills ???? (@creapills)


In the center of the white canvas is La Laitière’s illustration of the “Milkmaid” motif. If you look closely, you can see that the bread that should be in front of the woman is La Laitière yogurt.

aac45570a8.jpg


By using AI’s Outpainting, it is possible to expand the canvas while maintaining the pattern of the painting and continue to draw more and more.

43749138fe.jpg


Even if it becomes a strange composition ……

55bb85fe79.jpg


It’s OK to redraw.

c67307ea9b.jpg


A gallery that keeps growing.

9f215e0c6c.jpg


A painting of a mysterious situation where many people look passionately at “The Milkmaid” has been completed.

3381211334.jpg

Copy the title and URL of this article


The article is in Japanese

Tags: stablediffusioninfinity expand image outpainting function image generation Stable DiffusionGIGAZINE

-

NEXT The sword “Toshiro Namazuo” returns to Osaka at the “Tokugawa Art Museum Exhibition”, the exhibition composition and Tokubigumi goods are also released, the audio guide is Ryoko Kuninaka | SPICE – Entertainment specialized information media Spice