issue207:stable_diffusion
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 | ||
issue207:stable_diffusion [2024/07/29 07:18] – d52fr | issue207:stable_diffusion [2024/07/30 10:46] (Version actuelle) – auntiee | ||
---|---|---|---|
Ligne 14: | Ligne 14: | ||
pip install -r requirements_versions.txt** | pip install -r requirements_versions.txt** | ||
+ | |||
+ | Ce mois-ci, comme je l'ai indiqué la dernière fois, nous allons nous pencher sur Fooocus et plus particulièrement sur les problèmes d' | ||
+ | |||
+ | L' | ||
+ | |||
+ | Pour installer Fooocus, Github (https:// | ||
+ | |||
+ | git clone https:// | ||
+ | |||
+ | cd Fooocus | ||
+ | |||
+ | python3 -m venv fooocus_env | ||
+ | |||
+ | source fooocus_env/ | ||
+ | |||
+ | pip install -r requirements_versions.txt | ||
+ | |||
**During installation. you may find that various packages are not available on your OS, but code to install what is needed will be suggested. It can be a lengthy process as it will also download a variety of Nvidia files, a minimum of 4GB of video ram is required, but more is desirable. (For AMD video cards, additional instructions are provided.) When that has completed, you will want to create a launch file in the Fooocus folder. You can do this by creating a file named focus.sh using nano within the terminal, or Kate, or any suitable editor, with the following two lines: | **During installation. you may find that various packages are not available on your OS, but code to install what is needed will be suggested. It can be a lengthy process as it will also download a variety of Nvidia files, a minimum of 4GB of video ram is required, but more is desirable. (For AMD video cards, additional instructions are provided.) When that has completed, you will want to create a launch file in the Fooocus folder. You can do this by creating a file named focus.sh using nano within the terminal, or Kate, or any suitable editor, with the following two lines: | ||
Ligne 32: | Ligne 49: | ||
This should open the program in the default browser. ** | This should open the program in the default browser. ** | ||
+ | |||
+ | Au cours de l' | ||
+ | |||
+ | source fooocus_env/ | ||
+ | |||
+ | python entry_with_update.py | ||
+ | |||
+ | Une fois créé, vous devez rendre le fichier exécutable en tapant dans le terminal : | ||
+ | |||
+ | sudo chmod +x focus.sh | ||
+ | |||
+ | Vous pouvez également le modifier en faisant un clic droit sur le fichier focus.sh, en allant dans les propriétés, | ||
+ | |||
+ | Enfin, vous pouvez lancer Fooocus dans le terminal en exécutant : | ||
+ | |||
+ | ./focus.sh | ||
+ | |||
+ | Cela devrait ouvrir le programme dans le navigateur par défaut. | ||
+ | |||
**When you first start loading Fooocus, you will likely see an error message suggesting you are running an older version of Gradio. (At the bottom of the Fooocus interface window you will see a reference to ‘Built with Gradio’.) Do not upgrade Gradio, it needs to use the previously installed version. It may also need some additional files, and some specifically for your graphics card – which it will start downloading. (That may require a reboot.) Also part of the process will be a download of the JuggernaultXL.safesensor model, which is over 7 GB. Another issue you may experience is that, when initially starting to generate images, the software is waiting to start. Sometimes it will be downloading additional files and that must finish before file generation starts. Or restarting Fooocus may solve that problem, and, as a general rule, restarting the Operating System solves most issues with the various versions of Stable Diffusion I have used. | **When you first start loading Fooocus, you will likely see an error message suggesting you are running an older version of Gradio. (At the bottom of the Fooocus interface window you will see a reference to ‘Built with Gradio’.) Do not upgrade Gradio, it needs to use the previously installed version. It may also need some additional files, and some specifically for your graphics card – which it will start downloading. (That may require a reboot.) Also part of the process will be a download of the JuggernaultXL.safesensor model, which is over 7 GB. Another issue you may experience is that, when initially starting to generate images, the software is waiting to start. Sometimes it will be downloading additional files and that must finish before file generation starts. Or restarting Fooocus may solve that problem, and, as a general rule, restarting the Operating System solves most issues with the various versions of Stable Diffusion I have used. | ||
The above answers some problems, but I thought I should also leave the reader with an example of what you can do after installation. First, I created an image of Hilary Clinton by simply using her name. The result is shown as the output seen in the History Log (with the Advanced checkbox checked, select the History Log on the lower right.)** | The above answers some problems, but I thought I should also leave the reader with an example of what you can do after installation. First, I created an image of Hilary Clinton by simply using her name. The result is shown as the output seen in the History Log (with the Advanced checkbox checked, select the History Log on the lower right.)** | ||
+ | |||
+ | Lorsque vous commencez à charger Fooocus, vous verrez probablement un message d' | ||
+ | |||
+ | Ce qui précède répond à certains problèmes, mais j'ai pensé qu'il fallait aussi laisser au lecteur un exemple de ce qu'il est possible de faire après l' | ||
+ | |||
**You will notice the two word prompt was expanded significantly by Fooocus. In Fooocus, with the Image Input checkbox selected, you can drag the original output into the Image Prompt area by first selecting that Tab. Note that some browsers don’t seem to allow that function, but you can save the output first and then Click to Upload that same image. Once the file has been selected, you can select the FaceSwap option. | **You will notice the two word prompt was expanded significantly by Fooocus. In Fooocus, with the Image Input checkbox selected, you can drag the original output into the Image Prompt area by first selecting that Tab. Note that some browsers don’t seem to allow that function, but you can save the output first and then Click to Upload that same image. Once the file has been selected, you can select the FaceSwap option. | ||
Ligne 44: | Ligne 85: | ||
Next time we will continue with Fooocus. We will also install and use DeFooocus, a modified version. Because it is modified and essentially the same, the examples will mostly be relevant to both. You can then decide which version works best for you.** | Next time we will continue with Fooocus. We will also install and use DeFooocus, a modified version. Because it is modified and essentially the same, the examples will mostly be relevant to both. You can then decide which version works best for you.** | ||
+ | |||
+ | Vous remarquerez que l' | ||
+ | |||
+ | Vous pouvez alors modifier l' | ||
+ | |||
+ | Générez ensuite l' | ||
+ | |||
+ | La prochaine fois, nous continuerons avec Fooocus. Nous installerons et utiliserons également DeFooocus, une version modifiée. Comme il s'agit d'une version modifiée et essentiellement la même, les exemples seront essentiellement pertinents pour les deux. Vous pourrez alors décider quelle version vous convient le mieux. | ||
issue207/stable_diffusion.1722230311.txt.gz · Dernière modification : 2024/07/29 07:18 de d52fr