fix nubered list and codeblocks in INSTALL_WINDOWS

This commit is contained in:
mauwii 2022-10-11 04:30:11 +02:00
parent ffe9276f1e
commit 5392000335
No known key found for this signature in database
GPG Key ID: D923DB04ADB3F5AB

View File

@ -39,7 +39,7 @@ in the wiki
4. Run the command: 4. Run the command:
```bash ```batch
git clone https://github.com/invoke-ai/InvokeAI.git git clone https://github.com/invoke-ai/InvokeAI.git
``` ```
@ -48,16 +48,20 @@ in the wiki
5. Enter the newly-created InvokeAI folder. From this step forward make sure that you are working in the InvokeAI directory! 5. Enter the newly-created InvokeAI folder. From this step forward make sure that you are working in the InvokeAI directory!
``` ```batch
cd InvokeAI cd InvokeAI
``` ```
6. Run the following two commands: 6. Run the following two commands:
``` ```batch title="step 6a"
conda env create (step 6a) conda env create
conda activate invokeai (step 6b) ```
```
```batch title="step 6b"
conda activate invokeai
```
This will install all python requirements and activate the "invokeai" environment This will install all python requirements and activate the "invokeai" environment
which sets PATH and other environment variables properly. which sets PATH and other environment variables properly.
@ -67,7 +71,7 @@ conda activate invokeai (step 6b)
7. Run the command: 7. Run the command:
```bash ```batch
python scripts\preload_models.py python scripts\preload_models.py
``` ```
@ -79,45 +83,44 @@ conda activate invokeai (step 6b)
8. Now you need to install the weights for the big stable diffusion model. 8. Now you need to install the weights for the big stable diffusion model.
- For running with the released weights, you will first need to set up an acount with Hugging Face (https://huggingface.co). 1. For running with the released weights, you will first need to set up an acount with Hugging Face (https://huggingface.co).
- Use your credentials to log in, and then point your browser at https://huggingface.co/CompVis/stable-diffusion-v-1-4-original. 2. Use your credentials to log in, and then point your browser at https://huggingface.co/CompVis/stable-diffusion-v-1-4-original.
- You may be asked to sign a license agreement at this point. 3. You may be asked to sign a license agreement at this point.
- Click on "Files and versions" near the top of the page, and then click on the file named `sd-v1-4.ckpt`. You'll be taken to a page that 4. Click on "Files and versions" near the top of the page, and then click on the file named `sd-v1-4.ckpt`. You'll be taken to a page that
prompts you to click the "download" link. Now save the file somewhere safe on your local machine. prompts you to click the "download" link. Now save the file somewhere safe on your local machine.
- The weight file is >4 GB in size, so 5. The weight file is >4 GB in size, so
downloading may take a while. downloading may take a while.
Now run the following commands from **within the InvokeAI directory** to copy the weights file to the right place: Now run the following commands from **within the InvokeAI directory** to copy the weights file to the right place:
``` ```batch
mkdir -p models\ldm\stable-diffusion-v1 mkdir -p models\ldm\stable-diffusion-v1
copy C:\path\to\sd-v1-4.ckpt models\ldm\stable-diffusion-v1\model.ckpt copy C:\path\to\sd-v1-4.ckpt models\ldm\stable-diffusion-v1\model.ckpt
``` ```
Please replace `C:\path\to\sd-v1.4.ckpt` with the correct path to wherever you stashed this file. If you prefer not to copy or move the .ckpt file, Please replace `C:\path\to\sd-v1.4.ckpt` with the correct path to wherever you stashed this file. If you prefer not to copy or move the .ckpt file,
you may instead create a shortcut to it from within `models\ldm\stable-diffusion-v1\`. you may instead create a shortcut to it from within `models\ldm\stable-diffusion-v1\`.
9. Start generating images! 9. Start generating images!
```bash ```batch title="for the pre-release weights"
# for the pre-release weights
python scripts\invoke.py -l python scripts\invoke.py -l
```
# for the post-release weights ```batch title="for the post-release weights"
python scripts\invoke.py python scripts\invoke.py
``` ```
10. Subsequently, to relaunch the script, first activate the Anaconda command window (step 3),enter the InvokeAI directory (step 5, `cd \path\to\InvokeAI`), run `conda activate invokeai` (step 6b), and then launch the invoke script (step 9). 10. Subsequently, to relaunch the script, first activate the Anaconda command window (step 3),enter the InvokeAI directory (step 5, `cd \path\to\InvokeAI`), run `conda activate invokeai` (step 6b), and then launch the invoke script (step 9).
**Note:** Tildebyte has written an alternative !!! tip "Tildebyte has written an alternative"
["Easy peasy Windows install"](https://github.com/invoke-ai/InvokeAI/wiki/Easy-peasy-Windows-install) ["Easy peasy Windows install"](https://github.com/invoke-ai/InvokeAI/wiki/Easy-peasy-Windows-install)
which uses the Windows Powershell and pew. If you are having trouble with which uses the Windows Powershell and pew. If you are having trouble with
Anaconda on Windows, give this a try (or try it first!) Anaconda on Windows, give this a try (or try it first!)
--- ---
This distribution is changing rapidly. If you used the `git clone` method (step 5) to download the InvokeAI directory, then to update to the latest and greatest version, launch the Anaconda window, enter `InvokeAI`, and type:
This distribution is changing rapidly. If you used the `git clone` method This distribution is changing rapidly. If you used the `git clone` method
(step 5) to download the stable-diffusion directory, then to update to the (step 5) to download the stable-diffusion directory, then to update to the
latest and greatest version, launch the Anaconda window, enter latest and greatest version, launch the Anaconda window, enter