Outils pour utilisateurs

Outils du site


issue198:stable_diffusion

In part eight of An Introduction to Stable Diffusion, we will look at the new release of Stable Diffusion 1.0 (SDXL). The article starts and concludes with two images generated with the new version of Stable Diffusion via Automatic1111. Generating 20 random seeded images, 1024 x 1024 px, with the three-word prompt of Full Circle Magazine, the images highlight the creative possibilities of this software. Text remains an issue with the free version although text was not specified as part of the prompt. I upgraded to a more capable graphic card which also required an additional upgrade for the power supply. Thinking that it might be a good idea to start with a fresh install of the OS (Kubuntu) - that is when the fun started. I almost always use Ventoy (https://ventoy.net/en/index.html) to install any of a variety of distros to machines to either try or install Linux. Inevitably, I now saw a “Bluetooth and malformed MSFT vendor problem” error. The OS would not start.

Dans la partie huit de mon Introduction à Stable Diffusion, nous examinerons la nouvelle version de Stable Diffusion, la 1.0 (SDXL). L'article démarre par, et se termine avec, deux images générées avec cette nouvelle version de Stable Diffusion et Automatic1111. Ayant généré 20 images de 1024 x 1024 px au hasard, avec le prompt de trois mots « Full Circle Magazine », les images surlignent les possibilités créatives de ce logiciel. Le texte reste un problème avec la version gratuite, bien que du texte ne soit pas spécifié dans le prompt.

J'ai mis à niveau vers une carte graphique qui peut faire davantage et cela a nécessité une mise à niveau supplémentaire de l'alimentation. Je pensais que ce pourrait être une bonne idée de commencer par une installation neuve de l'OS (Kubuntu) et c'est alors que le fun a commencé. J'utilise presque toujours Ventoy (https://ventoy.net/en/index.html) pour installer une variété de distrib. sur des machines pour, soit essayer, soit installer Linux. Inévitablement, j'ai alors vu une erreur « Bluetooth and malformed MSFT vendor problem ». L'OS refusait de démarrer.

Upon searching the Internet, I found it to be a very common problem. There were some quirky workarounds, but obviously they were not the answer. Even when using the workaround, I would find that it would never come out of sleep mode, just a blank screen that would require a reboot. Noticing an error referring to not having the appropriate Nvidia driver, I noticed the graphics driver was an Open Source version. After installing the suggested proprietary driver and rebooting, everything seemed to be working fine. I did experience a few glitches, but it was nevertheless much more stable. An Internet search found negative comments about Nvidia drivers and suggested use of AMD cards although after an update which included Nvidia drivers, it seems even more stable.

D'après mes recherches sur le Net, il semblait être un problème habituel. Il y avait quelques contournements bizarres, mais, bien évidemment, ils n'étaient pas la réponse. Même avec le contournement, je trouvais qu'il ne quittait jamais le mode veille. Il n'y avait qu'un écran noir qui nécessitait un redémarrage.

Ayant remarqué une erreur qui signalait un pilote Nvidia inapproprié, j'ai remarqué que le pilote des graphiques était une version Open Source. Après avoir installé le pilote propriétaire suggéré et redémarré, tout semblait fonctionner très bien. J'ai eu quelques petits problèmes, mais c'était beaucoup plus stable. Une recherche sur l'Internet a trouvé des commentaires négatifs à propos des pilotes Nvidia et la suggestion d'utiliser des cartes AMD, bien que, après une mise à niveau comprenant les pilotes Nvidia, le système semble encore plus stable.

I was expecting the Easy Diffusion (ED) install, now at V 3.0.6, to be the one-click experience as before (https://github.com/easydiffusion/easydiffusion#installation). However, it required CURL to be installed on my now Kubuntu OS. Otherwise, it installed everything as needed. The safe sensors models are considered safer and SD-V1-5 gets installed in the models subdirectory under stable-diffusion. Although version 3.X will run the SDXL models, it needs to be downloaded and added to that same subdirectory. In my mind, the new Interface is a bit spartan. Users need to know to select the image settings button to choose appropriate options, and to select the +Image Modifiers button to select from those options. The Automatic1111 interface version installed easily as before (https://github.com/AUTOMATIC1111/stable-diffusion-webui). The SDXL 1.0 models must also be separately downloaded, or copied from the ED install (https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features). You can check for updates by selecting Extensions at the right end of the tabs of the interface. It opens with the Installed tab selected showing a variety of options preselected. The Check for Updates button will do that, and you can update any option to the current version using the Apply and restart UI button.

Je m'attendais à ce que l'installation de Easy Diffusion (ED), maintenant à la V 3.0.6, se fasse en un clic comme auparavant (https://github.com/easydiffusion/easydiffusion#installation). Toutefois, elle a nécessité l'installation de CURL sur mon Kubuntu OS. Sinon, elle s'est installée tout comme il fallait. Les modèles à capteur de sécurité sont supposés plus sûrs et SD-V1-5 s'était installé dans le sous-répertoire de modèles sous stable-diffusion. Bien que la version 3.X exécute les modèles SDXL, elle doit être téléchargée et ajoutée à ce même sous-répertoire. À mon avis, la nouvelle interface est un peu spartiate. Les utilisateurs doivent savoir qu'il faut sélectionner le bouton des paramètres de l'image (image settings button) pour choisir les options appropriées, puis sélectionner le bouton +Image Modifiers pour choisir parmi ces options.

La version avec l'interface Automatic1111 s'est installée facilement comme avant (https://github.com/AUTOMATIC1111/stable-diffusion-webui).Les modèles SDXL 1.0 doivent être téléchargés séparément aussi ou copiés à partir de l'installation de ED (https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features). Vous pouvez rechercher des mises à jour en sélectionnant Extension tout à droite des onglets de l'interface. À l'ouverture, l'onglet Installed est sélectionné et montre une variété d'options présélectionnées. Le bouton Check for updates fera l'affaire et vous pouvez mettre à jour n'importe quelle option vers la version actuelle avec le bouton Apply and restart UI (appliquer et redémarrer l'interface utilisateur).

I mentioned previously that Automatic1111 is a very popular interface for SD. One reason for that is that many additional options are available. These may be accessed via the same extensions tab, then selecting the Available tab option and the Load from: button. That will load the available options from the default Extension index URL. More than one hundred options will appear – which is a bit overwhelming given that an SD novice may not be familiar with the vocabulary. (Helpful for anyone is the Definitive Stable Diffusion Glossary: https://theally.notion.site/The-Definitive-Stable-Diffusion-Glossary-1d1e6d15059c41e6a6b4306b4ecd9df9.) A portion of the options are shown and I installed the Style Selector for SDXL 1.0. Selecting the Install button adds that option and changes the button to Installed as shown. Installing the Style Selector for SDXL 1.0 extension option results in a choice of button prompt selections. It can be enabled in the interface by selecting the small triangular button at the far right of the SDXL Styles tab near the bottom of the Automatic1111 interface as shown. You can enable the style selector as shown. The styles can then be selected individually by selecting the checkbox for each. You can also generate images of all the options by selecting Generate all Styles In Order, which uses the prompt you have input. The image below is another of the Full Circle Magazine images generated as noted at the beginning. In both cases they look like magazine covers albeit the text language would not be recognized. The ninth part of this introduction will look at other possibilities.

J'ai déjà mentionné qu'Automatic1111 est une interface pour SD qui est très populaire. Une des raisons pour cela est que beaucoup d'options supplémentaires sont disponibles. On peut y accéder avec le même onglet extension, puis, dans l'onglet, en sélectionnant l'option Available (disponible) et le bouton Load from: (télécharger à partir de. Cela chargera les options disponibles à partir de l'URL de l'index d'Extension par défaut. Plus d'une centaine d'options s'afficheront, ce qui est un peu accablant étant donné qu'un novice sur SD peut ne pas connaître le vocabulaire.(Utile pour tous, le glossaire Definitive Stable Diffusion Glossary : https://theally.notion.site/The-Definitive-Stable-Diffusion-Glossary-1d1e6d15059c41e6a6b4306b4ecd9df9.) Une partie des options est montrée et j'ai installé le Style Selector for SDXL 1.0. La sélection du bouton Install ajoute cette option et change le bouton pour Installed, comme montré.

Le résultat de l'installation de l'option de l'extension Style Selector for SDXL 1.0 est un choix parmi des boutons de sélection de prompt. Il peut être activé dans l'interface en choisissant le petit bouton triangulaire tout à droite de l'onglet SDXL Styles vers le bas de l'interface Automatic1111 comme montré. Vous pouvez activer le style selector comme montré. Les styles peuvent alors être sélectionnés individuellement en sélectionnant la case à cocher pour chacun. Vous pouvez également générer des images de toutes les options en sélectionnant Generate all Styles in Order, qui utilise le prompt que vous avez saisi.

L'image ci-dessous est une autre des images du FCM générées comme indiqué au départ. Dans les deux cas, ces images ressemblent à une couverture de magazine bien que le texte ne soit pas reconnu. La neuvième partie de cette instroduction examinera d'autres possibilités.

issue198/stable_diffusion.txt · Dernière modification : 2023/11/01 16:30 de andre_domenech