Skip to content

Commit cbf5426

Browse files
tildebytelstein
authored andcommitted
fix(venv): rename 'ldm' -> 'invokeai'
1 parent bac60ca commit cbf5426

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
lines changed

docs/installation/INSTALL_LINUX.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,23 @@ This will create InvokeAI folder where you will follow the rest of the steps.
4040
```
4141
4242
5. Use anaconda to copy necessary python packages, create a new python
43-
environment named `ldm` and activate the environment.
43+
environment named `invokeai` and activate the environment.
4444
4545
4646
```
4747
(base) ~/InvokeAI$ conda env create
48-
(base) ~/InvokeAI$ conda activate ldm
49-
(ldm) ~/InvokeAI$
48+
(base) ~/InvokeAI$ conda activate invokeai
49+
(invokeai) ~/InvokeAI$
5050
```
5151
52-
After these steps, your command prompt will be prefixed by `(ldm)` as shown
52+
After these steps, your command prompt will be prefixed by `(invokeai)` as shown
5353
above.
5454
5555
6. Load a couple of small machine-learning models required by stable diffusion:
5656
5757
5858
```
59-
(ldm) ~/InvokeAI$ python3 scripts/preload_models.py
59+
(invokeai) ~/InvokeAI$ python3 scripts/preload_models.py
6060
```
6161
6262
!!! note
@@ -81,32 +81,32 @@ This will create InvokeAI folder where you will follow the rest of the steps.
8181
8282
8383
```
84-
(ldm) ~/InvokeAI$ mkdir -p models/ldm/stable-diffusion-v1
85-
(ldm) ~/InvokeAI$ ln -sf /path/to/sd-v1-4.ckpt models/ldm/stable-diffusion-v1/model.ckpt
84+
(invokeai) ~/InvokeAI$ mkdir -p models/ldm/stable-diffusion-v1
85+
(invokeai) ~/InvokeAI$ ln -sf /path/to/sd-v1-4.ckpt models/ldm/stable-diffusion-v1/model.ckpt
8686
```
8787
8888
8. Start generating images!
8989
9090
```
9191
# for the pre-release weights use the -l or --liaon400m switch
92-
(ldm) ~/InvokeAI$ python3 scripts/invoke.py -l
92+
(invokeai) ~/InvokeAI$ python3 scripts/invoke.py -l
9393

9494
# for the post-release weights do not use the switch
95-
(ldm) ~/InvokeAI$ python3 scripts/invoke.py
95+
(invokeai) ~/InvokeAI$ python3 scripts/invoke.py
9696

9797
# for additional configuration switches and arguments, use -h or --help
98-
(ldm) ~/InvokeAI$ python3 scripts/invoke.py -h
98+
(invokeai) ~/InvokeAI$ python3 scripts/invoke.py -h
9999
```
100100
101-
9. Subsequently, to relaunch the script, be sure to run "conda activate ldm" (step 5, second command), enter the `InvokeAI` directory, and then launch the invoke script (step 8). If you forget to activate the ldm environment, the script will fail with multiple `ModuleNotFound` errors.
101+
9. Subsequently, to relaunch the script, be sure to run "conda activate invokeai" (step 5, second command), enter the `InvokeAI` directory, and then launch the invoke script (step 8). If you forget to activate the 'invokeai' environment, the script will fail with multiple `ModuleNotFound` errors.
102102
103103
## Updating to newer versions of the script
104104
105105
106106
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:
107107
108108
```
109-
(ldm) ~/InvokeAI$ git pull
109+
(invokeai) ~/InvokeAI$ git pull
110110
```
111111
112112
This will bring your local copy into sync with the remote one.

docs/installation/INSTALL_WINDOWS.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ cd InvokeAI
5656
5757
```
5858
conda env create (step 6a)
59-
conda activate ldm (step 6b)
59+
conda activate invokeai (step 6b)
6060
```
61-
This will install all python requirements and activate the "ldm" environment
61+
This will install all python requirements and activate the "invokeai" environment
6262
which sets PATH and other environment variables properly.
6363
6464
Note that the long form of the first command is `conda env create -f environment.yml`. If the
@@ -107,7 +107,7 @@ you may instead create a shortcut to it from within `models\ldm\stable-diffusion
107107
python scripts\invoke.py
108108
```
109109
110-
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 ldm` (step 6b), and then launch the invoke script (step 9).
110+
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).
111111
112112
**Note:** Tildebyte has written an alternative
113113
["Easy peasy Windows install"](https://github.com/invoke-ai/InvokeAI/wiki/Easy-peasy-Windows-install)

environment-mac.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ldm
1+
name: invokeai
22
channels:
33
- pytorch
44
- conda-forge

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ldm
1+
name: invokeai
22
channels:
33
- pytorch
44
- defaults

notebooks/Stable-Diffusion-local-Windows.ipynb

+7-7
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,22 @@
5252
"outputs": [],
5353
"source": [
5454
"%%cmd\n",
55-
"pew new --python 3.10 -r requirements-lin-win-colab-CUDA.txt --dont-activate invoke-ai"
55+
"pew new --python 3.10 -r requirements-lin-win-colab-CUDA.txt --dont-activate invokeai"
5656
]
5757
},
5858
{
5959
"cell_type": "markdown",
6060
"metadata": {},
6161
"source": [
62-
"# Switch the notebook kernel to the new 'invoke-ai' environment!\n",
62+
"# Switch the notebook kernel to the new 'invokeai' environment!\n",
6363
"\n",
6464
"## VSCode: restart VSCode and come back to this cell\n",
6565
"\n",
6666
"1. Ctrl+Shift+P\n",
6767
"1. Type \"Select Interpreter\" and select \"Jupyter: Select Interpreter to Start Jupyter Server\"\n",
6868
"1. VSCode will say that it needs to install packages. Click the \"Install\" button.\n",
6969
"1. Once the install is finished, do 1 & 2 again\n",
70-
"1. Pick 'invoke-ai'\n",
70+
"1. Pick 'invokeai'\n",
7171
"1. Run the following cell"
7272
]
7373
},
@@ -88,7 +88,7 @@
8888
"## Jupyter/JupyterLab\n",
8989
"\n",
9090
"1. Run the cell below\n",
91-
"1. Click on the toolbar where it says \"(ipyknel)\" ↗️. You should get a pop-up asking you to \"Select Kernel\". Pick 'invoke-ai' from the drop-down.\n"
91+
"1. Click on the toolbar where it says \"(ipyknel)\" ↗️. You should get a pop-up asking you to \"Select Kernel\". Pick 'invokeai' from the drop-down.\n"
9292
]
9393
},
9494
{
@@ -106,9 +106,9 @@
106106
"source": [
107107
"# DO NOT RUN THIS CELL IF YOU ARE USING VSCODE!!\n",
108108
"%%cmd\n",
109-
"pew workon invoke-ai\n",
109+
"pew workon invokeai\n",
110110
"pip3 install ipykernel\n",
111-
"python -m ipykernel install --name=invoke-ai"
111+
"python -m ipykernel install --name=invokeai"
112112
]
113113
},
114114
{
@@ -183,7 +183,7 @@
183183
"Now:\n",
184184
"\n",
185185
"1. `cd` to wherever the 'InvokeAI' directory is\n",
186-
"1. Run `pew workon invoke-ai`\n",
186+
"1. Run `pew workon invokeai`\n",
187187
"1. Run `winpty python scripts\\dream.py`"
188188
]
189189
},

0 commit comments

Comments
 (0)