issue202:tutoriel
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 | ||
issue202:tutoriel [2024/02/27 12:40] – d52fr | issue202:tutoriel [2024/02/29 09:15] (Version actuelle) – auntiee | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
**This article focuses on ComfyUI, an interface to Stable Diffusion that provides greater flexibility for producing images. For some time, I was thinking there was no reason to consider the ComfyUI option - both Easy Diffusion and Automatic1111 were more than sufficient. However, as one becomes familiar with the possibilities, | **This article focuses on ComfyUI, an interface to Stable Diffusion that provides greater flexibility for producing images. For some time, I was thinking there was no reason to consider the ComfyUI option - both Easy Diffusion and Automatic1111 were more than sufficient. However, as one becomes familiar with the possibilities, | ||
+ | |||
+ | Cet article se concentre sur ComfyUI, une interface de Stable Diffusion qui offre une plus grande flexibilité pour la production d' | ||
+ | |||
**We will cover a few nodes in some detail, but consider how this differs from the other interfaces. They consist of what appears to be similar options – without the node and connector concept. With nodes and connectors, you make the interface reflect your needs and not hamper your creativity. ComfyUI allows you to add duplicate nodes wherever needed or add additional nodes and reroute the workflow. You can right-click on the node area and select a node to add. As an example I selected add Node, sampling, custom sampling, and samplers. The number of choices gives you a taste for the possibilities and we will use this feature in the future. Other interfaces may have additional options but the simplicity of drawing out your workflow like a map makes it both: | **We will cover a few nodes in some detail, but consider how this differs from the other interfaces. They consist of what appears to be similar options – without the node and connector concept. With nodes and connectors, you make the interface reflect your needs and not hamper your creativity. ComfyUI allows you to add duplicate nodes wherever needed or add additional nodes and reroute the workflow. You can right-click on the node area and select a node to add. As an example I selected add Node, sampling, custom sampling, and samplers. The number of choices gives you a taste for the possibilities and we will use this feature in the future. Other interfaces may have additional options but the simplicity of drawing out your workflow like a map makes it both: | ||
Ligne 6: | Ligne 9: | ||
That said, the complexity can dramatically increase, and learning and understanding all the possible options can require much more experience.** | That said, the complexity can dramatically increase, and learning and understanding all the possible options can require much more experience.** | ||
+ | |||
+ | Nous examinerons quelques nœuds en détail, mais réfléchissons à la différence avec les autres interfaces. Elles consistent en ce qui semble être des options similaires, sans le concept de nœuds et de connecteurs. Avec les nœuds et les connecteurs, | ||
+ | ••ce que vous faites maintenant est évident, et | ||
+ | ••il sera plus facile à suivre lorsque vous y reviendrez à l' | ||
+ | |||
+ | Cela dit, la complexité peut augmenter considérablement, | ||
+ | |||
**But before we get too carried away with adding complexity to what some would think is already too complex, let’s see what it takes to make an image. Keep in mind that this is an introduction, | **But before we get too carried away with adding complexity to what some would think is already too complex, let’s see what it takes to make an image. Keep in mind that this is an introduction, | ||
When you first start ComfyUI, you get a generic interface which contains essentially the same interface as other “simpler” interfaces. First you determine the checkpoint to be used, which in this case is an SDXL safetensors version or sd_xl_base_1.0.safetensors. Clicking on that area of the Load Checkpoint node gives you the option of choosing from what is available. Next, as with other interfaces, you need to add appropriate descriptive text or prompt. Instead of two different areas set in the interface, ComfyUI uses a CLIP Text Encode (Prompt) node which is only differentiated by where it is connected. The yellow CLIP connection goes to two different CLIP nodes (you could rename them as Positive and Negative). Nodes can also be moved around to reflect your needs with connectors following appropriately.** | When you first start ComfyUI, you get a generic interface which contains essentially the same interface as other “simpler” interfaces. First you determine the checkpoint to be used, which in this case is an SDXL safetensors version or sd_xl_base_1.0.safetensors. Clicking on that area of the Load Checkpoint node gives you the option of choosing from what is available. Next, as with other interfaces, you need to add appropriate descriptive text or prompt. Instead of two different areas set in the interface, ComfyUI uses a CLIP Text Encode (Prompt) node which is only differentiated by where it is connected. The yellow CLIP connection goes to two different CLIP nodes (you could rename them as Positive and Negative). Nodes can also be moved around to reflect your needs with connectors following appropriately.** | ||
+ | |||
+ | Mais avant d' | ||
+ | |||
+ | Lorsque vous démarrez ComfyUI pour la première fois, vous obtenez une interface générique qui contient essentiellement la même chose que d' | ||
+ | |||
**It all starts to come together in the KSampler node. Conditioning outputs from the CLIP nodes in orange go to the Positive and Negative input in the KSampler. The Model output originating from the Load Checkpoint node (light purple) does the same. An Empty Latent Image node (pink), which also connects to the KSampler, allows you to determine image size and batch size for the image(s) to be created. A latent image is not a true image but essentially information that can be converted into an image. | **It all starts to come together in the KSampler node. Conditioning outputs from the CLIP nodes in orange go to the Positive and Negative input in the KSampler. The Model output originating from the Load Checkpoint node (light purple) does the same. An Empty Latent Image node (pink), which also connects to the KSampler, allows you to determine image size and batch size for the image(s) to be created. A latent image is not a true image but essentially information that can be converted into an image. | ||
A variety of options are available within the KSampler (also see the larger version). Sampling steps with higher numbers increase quality and time required, and a minimum of 20 is a good start. The CFG or Classifier Free Guidance scale controls how much the prompt should be followed. De-noise strength determines how much the image should change in the IMG2IMG process, zero is none and one is completely changed. Other options are available via drop-down lists. To create an image, click on the Queue Prompt button.** | A variety of options are available within the KSampler (also see the larger version). Sampling steps with higher numbers increase quality and time required, and a minimum of 20 is a good start. The CFG or Classifier Free Guidance scale controls how much the prompt should be followed. De-noise strength determines how much the image should change in the IMG2IMG process, zero is none and one is completely changed. Other options are available via drop-down lists. To create an image, click on the Queue Prompt button.** | ||
+ | |||
+ | Tout commence à s' | ||
+ | |||
+ | Plusieurs options sont disponibles dans le KSampler (voir aussi la version agrandie). Des étapes d' | ||
+ | |||
**As it starts, you can watch it progress as each node border becomes highlighted in green. Most processing occurs in the Ksampler, now highlighted, | **As it starts, you can watch it progress as each node border becomes highlighted in green. Most processing occurs in the Ksampler, now highlighted, | ||
The initial result produced is a single image or batch with the 40 images shown in this case. You can select one and look at each in detail. Hopefully this introduction will entice you to try the ComfyUI interface (rather than discourage you). Next time we will address initial installation, | The initial result produced is a single image or batch with the 40 images shown in this case. You can select one and look at each in detail. Hopefully this introduction will entice you to try the ComfyUI interface (rather than discourage you). Next time we will address initial installation, | ||
+ | |||
+ | Au fur et à mesure qu'il se déroule, vous pouvez en voir la progression, | ||
+ | |||
+ | Le résultat initial produit est une image unique ou un lot avec les 40 images montrées dans ce cas. Vous pouvez en sélectionner une et examiner chacune en détail. Nous espérons que cette introduction vous incitera à essayer l' | ||
issue202/tutoriel.1709034000.txt.gz · Dernière modification : 2024/02/27 12:40 de d52fr