issue192:tutoriel1
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
issue192:tutoriel1 [2023/04/30 18:36] – auntiee | issue192:tutoriel1 [2023/05/03 14:41] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
**Given I am still a bit of a newbie myself, I thought I should note some of the problems I have run into with Stable Diffusion (SD.) In order to support the graphics, I upgraded my computer to a gamer desktop with a Nvidia card. The new system (CYBERPOWERPC Gamer Xtreme VR Gaming PC with an Nvidia GeForce RTX 3060, 12GB) was initially only slightly faster than the CPU option. The screen capture below shows the new computer configurations.** | **Given I am still a bit of a newbie myself, I thought I should note some of the problems I have run into with Stable Diffusion (SD.) In order to support the graphics, I upgraded my computer to a gamer desktop with a Nvidia card. The new system (CYBERPOWERPC Gamer Xtreme VR Gaming PC with an Nvidia GeForce RTX 3060, 12GB) was initially only slightly faster than the CPU option. The screen capture below shows the new computer configurations.** | ||
- | Étant | + | Étant |
**In order to address the slow imaging speed, I looked at the Settings tab in SD and found that it was set to use the CPU not GPU. (Also note the presence of the Beta Channel version option which may fix some issues and add new options.) | **In order to address the slow imaging speed, I looked at the Settings tab in SD and found that it was set to use the CPU not GPU. (Also note the presence of the Beta Channel version option which may fix some issues and add new options.) | ||
Ligne 11: | Ligne 11: | ||
Afin de pouvoir corriger la lenteur de la création d’image, j’ai regardé l’onglet Settings dans SD et j’ai vu qu’il était réglé pour utiliser le CPU et pas le GPU. (Notez aussi la présence d’une option de la version Beta Channel qui corrigera peut-être quelques problèmes et ajoutera de nouvelles options.) | Afin de pouvoir corriger la lenteur de la création d’image, j’ai regardé l’onglet Settings dans SD et j’ai vu qu’il était réglé pour utiliser le CPU et pas le GPU. (Notez aussi la présence d’une option de la version Beta Channel qui corrigera peut-être quelques problèmes et ajoutera de nouvelles options.) | ||
- | Je n’arrivais pas à désactiver l’option « use CPU » et c'est ainsi que je me suis rendu compte que les pilotes Nvidia n’étaient pas installés par défaut lors de l’installation d’Ubuntu Studio. J’ai alors installé les pilotes Nvidia par défaut en utilisant la version propriétaire et testée. Une modification de la configuration des pilotes a donné une amélioration spectaculaire dans la vitesse de création des images : quelques secondes au lieu de plusieurs minutes. | + | Je n’arrivais pas à désactiver l’option « use CPU » |
Finalement, j’ai rencontré un autre problème. En démarrant SD, je voyais parfois la ligne suivante dans le terminal et mon navigateur ne s’est jamais ouvert. | Finalement, j’ai rencontré un autre problème. En démarrant SD, je voyais parfois la ligne suivante dans le terminal et mon navigateur ne s’est jamais ouvert. | ||
- | qt.qpa.plugin: | + | qt.qpa.plugin: |
- | This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. (Cette application n'a pas démarré parce que aucun greffon de la plateforme Qt n'a pu être initialisé. Une réinstallation de l' | + | This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. (Cette application n'a pas démarré parce qu'aucun greffon de la plateforme Qt n'a pu être initialisé. Une réinstallation de l' |
**To fix the problem, first close the program (type Ctrl+c {Enter}) and then close the Browser tab. I could fix the above problem each time it happened by pasting the command below in the same terminal window: | **To fix the problem, first close the program (type Ctrl+c {Enter}) and then close the Browser tab. I could fix the above problem each time it happened by pasting the command below in the same terminal window: | ||
Ligne 30: | Ligne 30: | ||
Thanks to ljubomirb | Thanks to ljubomirb | ||
- | Pour corriger le problème, fermez | + | Pour corriger le problème, fermez d’abord |
export QT_QPA_PLATFORM=offscreen | export QT_QPA_PLATFORM=offscreen | ||
- | Appuyez sur Entrée et redémarrer | + | Appuyez sur Entrée et redémarrez |
./start.sh puis Entrée | ./start.sh puis Entrée | ||
Ligne 44: | Ligne 44: | ||
As noted in the introductory article, Stable Diffusion part 1, the prompt is the top and likely most important option. It gets saved as part of the image name. Depending on your purpose, you may eventually want to save additional information automatically. To do so, select the Settings tab, next to the Generate tab and with the Auto-Save Images on, select a metadata format such as json or txt. A json file can simply be selected to produce the same file, with txt, information will need to be manually input. Use the full path for the location of your Auto-Saved images. ** | As noted in the introductory article, Stable Diffusion part 1, the prompt is the top and likely most important option. It gets saved as part of the image name. Depending on your purpose, you may eventually want to save additional information automatically. To do so, select the Settings tab, next to the Generate tab and with the Auto-Save Images on, select a metadata format such as json or txt. A json file can simply be selected to produce the same file, with txt, information will need to be manually input. Use the full path for the location of your Auto-Saved images. ** | ||
- | Par la suite, j’ai parfois rencontré le problème à nouveau avec le CPU sélectionné et il fallait tout simplement redémarrer. En regardant le panneau Easy Diffusion Generate (la version actuelle est la 2.5.31, des modifications sont souvent faites sur plusieurs jours : regardez l’onglet What’s New en haut à droite côté gauche de l’interface de votre navigateur Web. | + | Par la suite, j’ai parfois rencontré le problème à nouveau avec le CPU sélectionné et il fallait tout simplement redémarrer. En regardant le panneau Easy Diffusion Generate (la version actuelle est la 2.5.31), des modifications sont souvent faites sur plusieurs jours : regardez l’onglet What’s New en haut à droite côté gauche de l’interface de votre navigateur Web. |
- | Comme noté dans l’article de présentation, | + | Comme noté dans l’article de présentation, |
**You may also use the Download images button for a single image. As I understand it, SD is deterministic, | **You may also use the Download images button for a single image. As I understand it, SD is deterministic, | ||
Ligne 54: | Ligne 54: | ||
When making your first images you will likely be impressed but eventually you will recognize various issues. For example using the prompt “two small possums, photo realistic, | When making your first images you will likely be impressed but eventually you will recognize various issues. For example using the prompt “two small possums, photo realistic, | ||
- | Vous pouvez également utiliser le bouton Download images pour une seule image. Tel que je le comprends, SD est déterministe et, normalement, | + | Vous pouvez également utiliser le bouton Download images pour une seule image. Tel que je le comprends, SD est déterministe et, normalement, |
- | La taille d’une image par défaut est de 512 x 512 px et, si vous choisissez une plus petite taille, un avertissement s’affichera vous indiquant qu'une petite taille d’image (moins que la taille par défaut) peut engendrer une mauvaise qualité de l’image. Si une seule dimension est plus petite que 512, l’avertissement ne s’affichera peut-être pas, mais la qualité de l’image sera néanmoins tout de même mauvaise. Des tailles d’image plus grandes peuvent aussi affecter l’image générée de façon indésirée. Quand j’essayais de générer l’image d’un bébé avec les yeux grand ouverts, la taille de l' | + | La taille d’une image par défaut est de 512 x 512 px et, si vous choisissez une plus petite taille, un avertissement s’affichera vous indiquant qu'une petite taille d’image (moins que la taille par défaut) peut engendrer une mauvaise qualité de l’image. Si une seule dimension est plus petite que 512, l’avertissement ne s’affichera peut-être pas, mais la qualité de l’image sera néanmoins tout de même mauvaise. Des tailles d’image plus grandes peuvent aussi affecter l’image générée de façon indésirée. Quand j’essayais de générer l’image d’un bébé avec les yeux grand ouverts, la taille de l' |
- | Quand vous créez | + | Quand vous créerez |
**Similarly it can’t do a Pablo Picasso rendering of yourself because your photographs were also not part of the training. That said, try inputting your name in the prompt and see what you get. I thought I would end with a more desirable image, create something like the below with the prompt library with fireplace burning with a single bay window. No fire is in the fireplace in the below image possibly because the prompt was worded incorrectly but it may be because of the viewing angle. You might want to bump up the number of images to 10 in the options below the prompt to make ten different versions. You may want to hold off on using that parameter if you don’t have a more capable graphic card otherwise the wait time may be significant. | **Similarly it can’t do a Pablo Picasso rendering of yourself because your photographs were also not part of the training. That said, try inputting your name in the prompt and see what you get. I thought I would end with a more desirable image, create something like the below with the prompt library with fireplace burning with a single bay window. No fire is in the fireplace in the below image possibly because the prompt was worded incorrectly but it may be because of the viewing angle. You might want to bump up the number of images to 10 in the options below the prompt to make ten different versions. You may want to hold off on using that parameter if you don’t have a more capable graphic card otherwise the wait time may be significant. | ||
- | De la même façon, il ne peut pas faire une image de vous-même à la Pablo Picasso parce que vos photographes | + | De la même façon, il ne peut pas faire une image de vous-même à la Pablo Picasso parce que les photographies de vous ne faisaient pas partie de l' |
issue192/tutoriel1.1682872568.txt.gz · Dernière modification : 2023/04/30 18:36 de auntiee