issue203:stable_diffusion
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue203:stable_diffusion [2024/03/30 10:13] – créée auntiee | issue203:stable_diffusion [2024/04/03 17:05] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | You may remember the last time I introduced the ComfyUI interface to Stable Diffusion. Hopefully it enticed some readers, and this article is an explanation of how to install it. I wanted to do a clean install, and accomplished that by using a V-NAND connected via USB on which I had previously installed Ubuntu Studio. There are several installation web pages available which are essentially the same. I used the Yushan777 version, which also includes a windows install, and is found here: https:// | + | **You may remember the last time I introduced the ComfyUI interface to Stable Diffusion. Hopefully it enticed some readers, and this article is an explanation of how to install it. I wanted to do a clean install, and accomplished that by using a V-NAND connected via USB on which I had previously installed Ubuntu Studio. There are several installation web pages available which are essentially the same. I used the Yushan777 version, which also includes a windows install, and is found here: https:// |
It does require Python 3.10 and Git. It is installed via a few lines pasted in terminal, and begins by cloning the repository. First make an appropriate directory: mkdir ai, in your home directory for example. Then clone the repo by using terminal in that new directory using: | It does require Python 3.10 and Git. It is installed via a few lines pasted in terminal, and begins by cloning the repository. First make an appropriate directory: mkdir ai, in your home directory for example. Then clone the repo by using terminal in that new directory using: | ||
Ligne 5: | Ligne 5: | ||
git clone https:// | git clone https:// | ||
- | In a few minutes it responds with done; then change to the newly created subdirectory (cd ComfyUI), and input: python3 -m venv venv, to create a virtual environment – named venv in this example. Make it active via: source venv/ | + | In a few minutes it responds with done; then change to the newly created subdirectory (cd ComfyUI), and input: python3 -m venv venv, to create a virtual environment – named venv in this example. Make it active via: source venv/ |
- | Next, dependencies are added: | + | Vous vous souvenez peut-être que, la dernière fois, j'ai présenté l' |
+ | |||
+ | Python 3.10 et Git sont nécessaires. L' | ||
+ | |||
+ | git clone https:// | ||
+ | |||
+ | Au bout de quelques minutes, le terminal répondra « done » ; passez alors dans le sous-répertoire nouvellement créé (cd ComfyUI), et entrez : python3 -m venv venv, pour créer un environnement virtuel - nommé venv dans cet exemple. Activez-le via : source venv/ | ||
+ | |||
+ | |||
+ | **Next, dependencies are added: | ||
pip install torch torchvision torchaudio --extra-index-url https:// | pip install torch torchvision torchaudio --extra-index-url https:// | ||
Ligne 26: | Ligne 35: | ||
with terminal in that directory, will start ComfyUI but it will not allow you to produce any images. You need to install a model. I used: ghostmix_v20Bakedvae.safetensors https:// | with terminal in that directory, will start ComfyUI but it will not allow you to produce any images. You need to install a model. I used: ghostmix_v20Bakedvae.safetensors https:// | ||
- | (below). | + | (below). |
- | Using the default positive and negative prompts will produce a 512x 512 image such as that shown on the next page, top right. | + | Ensuite, les dépendances sont ajoutées : |
+ | |||
+ | pip install torch torchvision torchaudio --extra-index-url https:// | ||
+ | |||
+ | Cela prendra plusieurs minutes, mais vous avez presque terminé. Enfin, installez les dépendances supplémentaires : | ||
+ | |||
+ | pip install -r requirements.txt | ||
+ | |||
+ | Bien qu'à ce stade, l' | ||
+ | |||
+ | source venv/ | ||
+ | |||
+ | python3 main.py | ||
+ | |||
+ | Exécution du programme | ||
+ | |||
+ | Quand le terminal est dans ce répertoire, | ||
+ | |||
+ | ./ | ||
+ | |||
+ | démarrera ComfyUI mais ne vous permettra pas de produire des images. Vous devez installer un modèle. J'ai utilisé : ghostmix_v20Bakedvae.safetensors https:// | ||
+ | |||
+ | |||
+ | **Using the default positive and negative prompts will produce a 512x 512 image such as that shown on the next page, top right. | ||
At the same location where examples of outputs can be found for the Ghostmix model, you can find prompts to produce impressive images. Using the below Positive and Negative prompts will allow you to produce something like the below. The output was 1024 x 1024, resized in the Empty Latent Image node, which was resized back down for this article (provided prompts can be used with any model). | At the same location where examples of outputs can be found for the Ghostmix model, you can find prompts to produce impressive images. Using the below Positive and Negative prompts will allow you to produce something like the below. The output was 1024 x 1024, resized in the Empty Latent Image node, which was resized back down for this article (provided prompts can be used with any model). | ||
Positive Prompt: | Positive Prompt: | ||
+ | 1mechanical girl, | ||
+ | |||
+ | L' | ||
+ | |||
+ | Au même endroit où vous trouverez des exemples de sorties pour le modèle Ghostmix, vous trouverez des invites pour produire des images impressionnantes. L' | ||
+ | |||
+ | Invite positive : | ||
1mechanical girl, | 1mechanical girl, | ||
- | Negative Prompt: | + | |
+ | **Negative Prompt: | ||
NSFW, 3d, cartoon, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, | NSFW, 3d, cartoon, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, | ||
Ligne 44: | Ligne 84: | ||
git clone https:// | git clone https:// | ||
- | After restarting ComfyUI, you should notice the Manager button option. The colored button labeled Share allows you to publish your work in a variety of appropriate web locations. We will address some of these options next time. | + | After restarting ComfyUI, you should notice the Manager button option. The colored button labeled Share allows you to publish your work in a variety of appropriate web locations. We will address some of these options next time.** |
+ | |||
+ | Invite négative : | ||
+ | NSFW, 3d, cartoon, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, | ||
+ | |||
+ | À ce stade, tout est prêt, mais il y a encore une addition qui mérite d' | ||
+ | |||
+ | Pour ajouter le Manager, ouvrez le terminal dans le répertoire ComfyUI/ | ||
+ | |||
+ | git clone https:// | ||
+ | |||
+ | Après avoir redémarré ComfyUI, vous devriez remarquer l' | ||
issue203/stable_diffusion.1711790027.txt.gz · Dernière modification : 2024/03/30 10:13 de auntiee