Outils pour utilisateurs

Outils du site


issue191:stable_diffusion

This is the first of several articles on Stable Diffusion, a graphics program that uses artificial intelligence to create exciting and creative graphics. At its core from the viewpoint of a newbie, Stable Diffusion (SD) is a program which can create graphics of various types from text or prompts. Understanding how and why it works is unnecessary. It requires very little knowledge to get started, although the output, while almost always interesting, is somewhat uncontrollable with first attempts. Stable Diffusion (SD) comes in various flavors and options, some are Internet based, which generally make a transition from free as in beer, to free as in speech. A browser-based user interface appears to be the norm. The free downloadable version peaked my interest initially, and is usable with the most computer hardware. Speed of graphic generation is dependent on hardware, ideally an NVIDIA card with VRAM. Thus limited capability is reflected in generation time and size (512 x 512 px by default.) I started with the NMKD SD (https://nmkd.itch.io/t2i-gui) on a Windows desktop, and I wondered about using my Ubuntu Studio laptop. When I saw another very simple installation, I downloaded it to give it a try. My desktop was more capable than the laptop but didn’t have a supported graphic card either.

Ceci est le premier de plusieurs articles sur Stable Diffusion, un programme de graphisme qui utilise l’intelligence artificielle pour créer des graphismes créatifs et passionnants. Du point de vue d’un débutant, Stable Diffusion (SD) est essentiellement un programme qui peut créer des graphismes de types divers à partir de texte ou d’invites. Il n’est pas nécessaire de comprendre comment et pourquoi il fonctionne. Il faut très peu de connaissances pour commencer, bien que les résultats, qui sont presque toujours intéressants, soient un peu incontrôlables lors des premiers essais.

Stable Diffusion (SD) a plusieurs saveurs et options, dont certaines sont basées sur le Net, qui, en règle générale, font une transition de gratuit comme la bière à libre comme le discours. Une interface utilisateur basée sur un navigateur semble être le standard. Au départ, j’étais très intéressé par la version gratuite et téléchargeable qui peut être utilisée sur la plupart des ordinateurs. La vitesse de la génération du graphisme dépend du matériel et l’idéal est une carte NVIDIA avec de la VRAM. Ainsi, la capacité limitée se voit dans le temps de génération et dans sa taille (par défaut 512 x 512 px).

J’ai commencé avec le SD NMKD (https://nmkd.itch.io/t2i-gui) sur un bureau Windows et je me suis posé la question de l’utilisation de mon ordinateur portable sous Ubuntu Studio. Quand j’ai vu une autre installation très simple, je l’ai téléchargée pour l’essayer. Mon ordinateur de bureau avait plus de capacités que le portable, mais n’avait pas non plus une carte graphique supportée.

Installation is very easy. Go to the Stable Diffusion UI v2 website (https://stable-diffusion-ui.github.io/), select the download button and follow the simple instructions. After downloading the installer file, extract it, go to the created folder (the download folder by default) and open a terminal window in that directory and run: ./start.sh (or) bash start.sh It will begin downloading everything needed, about 10.2 GB and opens Firefox or a tab if already open. By default the generic prompt opens “a photograph of an astronaut riding a horse” which will be created by clicking on the Make Image button as noted on the opening instructions. (To uninstall, simply deleting the stable-diffusion-ui folder) Closing the application, the browser tab and restarting will automatically upgrade the installation with the newest version – currently 2.5.22, thus a reason to not run it continuously.

L'installation est très facile. Allez au site Web de l’IU v2 de Stable Diffusion (https://stable-diffusion-ui.github.io/), choisissez le bouton de téléchargement et suivez les instructions, qui sont simples. Après avoir téléchargé le fichier de l’installeur, décompressez-le, allez au dossier créé (le dossier de téléchargements par défaut), ouvrez une fenêtre du terminal dans ce répertoire et lancez :

./start.sh (ou) bash start.sh

Le téléchargement de tout ce dont vous avez besoin démarrera, environ 10,2 Go, et cela ouvre ensuite Firefox, ou un nouvel onglet si le navigateur est déjà ouvert. Par défaut, l’invite générique ouvre « la photo d’un astronaute sur un cheval » qui sera créée en cliquant sur le bouton Make Image, comme indiqué dans les instructions au départ. [Ndt : Il existe un site en français : https://www.stable-diffusion-france.fr. Il explique tout, mais précise que votre invite ou prompt doit être écrit en anglais.] (Pour désinstaller, il suffit de supprimer le dossier stable-diffusion-ui.) La fermeture de l’application et de l’onglet du navigateur, puis son redémarrage mettront l’installation à niveau automatiquement – la version la plus récente est actuellement la 2.5.22 ; c’est une bonne raison de ne pas l’exécuter continuellement.

Now that you have it working, what can you do with SD? It is a bit daunting at first but trying out a few options and prompts is easy enough. I will expand on the user interface in another article but you can simply type in “penguin” in the Enter Prompt area and click on Visual Style below the Image Modifiers (Art Styles, tags, etc) area, select Art Nouveau (or other option) by clicking on the PLUS sign when your cursor is over the Art Nouveau option. Then click on the Make Image button. The result is interesting if not impressive. Generated images can be automatically saved via the Settings tab at the top of the Easy Diffusion window.

Maintenant que tout fonctionne, que pouvez-vous faire avec SD ? Au départ, l'interface est un peu intimidante, mais c’est facile d’essayer quelques options et invites. Je détaillerai davantage l’interface utilisateur dans un autre article, mais vous pouvez tout simplement saisir « penguin » dans la zone Enter Prompt (Entrez une invite) et cliquer sur Visual Style (style visuel) sous la zone des modificateurs d’image (Styles artistiques, balises, etc.) et sélectionner Art nouveau (ou une autre option) en cliquant sur le caractère PLUS quand votre curseur est au-dessus de l’option Art nouveau. Puis cliquez sur le bouton Make Image. Le résultat est intéressant, mais pas trop impressionnant. Les images générées peuvent être sauvegardées automatiquement via l’onglet Settings en haut de la fenêtre Easy Diffusion.

You soon begin to wonder exactly how difficult it is to create graphics that are more impressive, especially for those who think they have limited artistic abilities. Open art (https://openart.ai/) is a great place to start, it allows you to “Search 10M+ of prompts, and generate AI art and AI images via Stable Diffusion” and other similar software like DALL·E 2. If you need inspiration, you will find it there. They also provide information in a downloadable PDF book: (https://openart.ai/promptbook). SD has already been used to create Plasma Desktop Wallpaper which you can find using Discover and searching for Stable Diffusion. Keep in mind that a prompt not written for SD may not give you the same results as shown. A warning - you might not want to start looking at this if you have limited time.

Sans tarder, vous commencez à vous demander jusqu'à quel point la création de graphismes qui sont plus impressionnants est difficile, surtout pour ceux qui pensent que leurs capacités artistiques sont limitées. Open art (https://openart.ai/) est un excellent endroit pour commencer, car le site vous permet de « Chercher 10M+ d'invites et de générer de l'art AI et des images AI avec Stable Diffusion » et autre logiciels similaires comme DALL·E 2. Si vous avez besoin d'inspiration, c'est là que vous la trouverez. Ils fournissent aussi des renseignements dans un livre en PDF téléchargeable : (https://openart.ai/promptbook). SD a déjà été utilisé pour créer du papier peint pour le Plasma Desktop ; vous pouvez le trouver avec Discover et en recherchant Stable Diffusion. Gardez à l'esprit qu'une invite qui n'a pas été écrite pour SD peut donner des résultats qui sont différents de ceux montrés. Avertissement : si votre temps est limité, il vaudrait peut-être mieux ne pas commencer à le regarder.

I used the prompt “penguin on surfboard holding sign” to create a graphic I modified with the text FCM at the top and Stable Diffusion at the bottom. The penguin is a graphic partially on the surfboard although I had wanted it riding the surfboard. There were three letters initially at the top which I deleted and used Inkscape to add the text shown. I will provide a deeper understanding and further information next time, including an analysis of the user interface. I am providing another graphic generated SD with the same intent to show how it interpreted what I was thinking “penguin standing on skateboard with sign and ocean background” in an unexpected manner. Using SD is clearly a science and an art.

J’ai utilisé l’invite « penguin on surfboard holding sign (pingouin sur une planche de surf qui tient une pancarte) » pour créer une image que j’ai modifiée avec le texte FCM en haut et Stable Diffusion en bas. Le pingouin est un graphisme qui est partiellement sur la planche de surf, bien que je veuille qu’il monte sur la planche. Initialement, il y avait trois lettres en haut, mais je les ai supprimées et j’ai utilisé Inkscape pour ajouter le texte montré. La prochaine fois, je fournirai une meilleure compréhension et plus d’informations, y compris une analyse de l’interface utilisateur.

Je vous livre un autre graphisme généré par SD avec la même intention pour vous montrer comment il a interprété de façon inattendue ce que je voulais « penguin standing on skateboard with sign and ocean background (un pingouin debout sur une planche de surf avec une pancarte et un arrière fond d’océan) » Il est évident que l’utilisation de SD est à la fois un art et une science.

issue191/stable_diffusion.txt · Dernière modification : 2023/04/06 15:34 de andre_domenech