From 53920003352b6eaa867b2234594dfa504426323b Mon Sep 17 00:00:00 2001 From: mauwii Date: Tue, 11 Oct 2022 04:30:11 +0200 Subject: [PATCH] fix nubered list and codeblocks in INSTALL_WINDOWS --- docs/installation/INSTALL_WINDOWS.md | 61 +++++++++++++++------------- 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/docs/installation/INSTALL_WINDOWS.md b/docs/installation/INSTALL_WINDOWS.md index 343fcde9a4..c7dc9065ea 100644 --- a/docs/installation/INSTALL_WINDOWS.md +++ b/docs/installation/INSTALL_WINDOWS.md @@ -39,7 +39,7 @@ in the wiki 4. Run the command: - ```bash + ```batch 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! -``` -cd InvokeAI -``` + ```batch + cd InvokeAI + ``` 6. Run the following two commands: -``` -conda env create (step 6a) -conda activate invokeai (step 6b) -``` + ```batch title="step 6a" + conda env create + ``` + + ```batch title="step 6b" + conda activate invokeai + ``` + This will install all python requirements and activate the "invokeai" environment which sets PATH and other environment variables properly. @@ -67,7 +71,7 @@ conda activate invokeai (step 6b) 7. Run the command: - ```bash + ```batch 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. -- 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. -- 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 - 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 - downloading may take a while. + 1. For running with the released weights, you will first need to set up an acount with Hugging Face (https://huggingface.co). + 2. Use your credentials to log in, and then point your browser at https://huggingface.co/CompVis/stable-diffusion-v-1-4-original. + 3. You may be asked to sign a license agreement at this point. + 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. + 5. The weight file is >4 GB in size, so + 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: -``` -mkdir -p models\ldm\stable-diffusion-v1 -copy C:\path\to\sd-v1-4.ckpt models\ldm\stable-diffusion-v1\model.ckpt -``` + ```batch + mkdir -p models\ldm\stable-diffusion-v1 + 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, -you may instead create a shortcut to it from within `models\ldm\stable-diffusion-v1\`. + 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\`. 9. Start generating images! - ```bash - # for the pre-release weights + ```batch title="for the pre-release weights" python scripts\invoke.py -l + ``` - # for the post-release weights + ```batch title="for the post-release weights" 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). - **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) which uses the Windows Powershell and pew. If you are having trouble with 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 (step 5) to download the stable-diffusion directory, then to update to the latest and greatest version, launch the Anaconda window, enter