Skip to content

Commit 34e0d7a

Browse files
committed
(config) rename all mentions of scripts/configure_invokeai.py to the new invokeai-configure command
1 parent abe4e1e commit 34e0d7a

12 files changed

Lines changed: 37 additions & 42 deletions

File tree

docs/features/CLI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ mixture of both using any of the accepted command switch formats:
136136
# InvokeAI initialization file
137137
# This is the InvokeAI initialization file, which contains command-line default values.
138138
# Feel free to edit. If anything goes wrong, you can re-initialize this file by deleting
139-
# or renaming it and then running configure_invokeai.py again.
139+
# or renaming it and then running invokeai-configure again.
140140

141141
# The --root option below points to the folder in which InvokeAI stores its models, configs and outputs.
142142
--root="/Users/mauwii/invokeai"

docs/features/CONCEPTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ You can also combine styles and concepts:
5151
If you used an installer to install InvokeAI, you may have already set a HuggingFace token.
5252
If you skipped this step, you can:
5353

54-
- run the InvokeAI configuration script again (if you used a manual installer): `scripts/configure_invokeai.py`
54+
- run the InvokeAI configuration script again (if you used a manual installer): `invokeai-configure`
5555
- set one of the `HUGGINGFACE_TOKEN` or `HUGGING_FACE_HUB_TOKEN` environment variables to contain your token
5656

5757
Finally, if you already used any HuggingFace library on your computer, you might already have a token

docs/features/OUTPAINTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ A number of caveats:
120120
(`--iterations`) argument.
121121

122122
3. Your results will be _much_ better if you use the `inpaint-1.5` model
123-
released by runwayML and installed by default by `scripts/configure_invokeai.py`.
123+
released by runwayML and installed by default by `invokeai-configure`.
124124
This model was trained specifically to harmoniously fill in image gaps. The
125125
standard model will work as well, but you may notice color discontinuities at
126126
the border.

docs/features/POSTPROCESS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ should "just work" without further intervention. Simply pass the `--upscale`
2828
the popup in the Web GUI.
2929

3030
**GFPGAN** requires a series of downloadable model files to work. These are
31-
loaded when you run `scripts/configure_invokeai.py`. If GFPAN is failing with an
31+
loaded when you run `invokeai-configure`. If GFPAN is failing with an
3232
error, please run the following from the InvokeAI directory:
3333

3434
```bash
35-
python scripts/configure_invokeai.py
35+
invokeai-configure
3636
```
3737

3838
If you do not run this script in advance, the GFPGAN module will attempt to
@@ -106,7 +106,7 @@ This repo also allows you to perform face restoration using
106106
[CodeFormer](https://github.com/sczhou/CodeFormer).
107107

108108
In order to setup CodeFormer to work, you need to download the models like with
109-
GFPGAN. You can do this either by running `configure_invokeai.py` or by manually
109+
GFPGAN. You can do this either by running `invokeai-configure` or by manually
110110
downloading the
111111
[model file](https://github.com/sczhou/CodeFormer/releases/download/v0.1.0/codeformer.pth)
112112
and saving it to `ldm/invoke/restoration/codeformer/weights` folder.

docs/installation/010_INSTALL_AUTOMATED.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ version of InvokeAI with the option to upgrade to experimental versions later.
177177
minutes and nothing is happening, you can interrupt the script with ^C. You
178178
may restart it and it will pick up where it left off.
179179
180-
10. After installation completes, the installer will launch a script called
181-
`configure_invokeai.py`, which will guide you through the first-time process
180+
10. After installation completes, the installer will launch the configuration script, which will guide you through the first-time process
182181
of selecting one or more Stable Diffusion model weights files, downloading
183182
and configuring them. We provide a list of popular models that InvokeAI
184183
performs well with. However, you can add more weight files later on using
@@ -227,7 +226,7 @@ version of InvokeAI with the option to upgrade to experimental versions later.
227226
`invokeai\invokeai.init`. It contains a variety of examples that you can
228227
follow to add and modify launch options.
229228
230-
!!! warning "The `invokeai` directory contains the `invoke` application, its
229+
!!! warning "The `invokeai` directory contains the `invokeai` application, its
231230
configuration files, the model weight files, and outputs of image generation.
232231
Once InvokeAI is installed, do not move or remove this directory."
233232
@@ -253,18 +252,18 @@ will bring InvokeAI up to date with the latest libraries.
253252
254253
### Corrupted configuration file
255254
256-
Everything seems to install ok, but `invoke` complains of a corrupted
255+
Everything seems to install ok, but `invokeai` complains of a corrupted
257256
configuration file and goes back into the configuration process (asking you to
258257
download models, etc), but this doesn't fix the problem.
259258
260259
This issue is often caused by a misconfigured configuration directive in the
261260
`invokeai\invokeai.init` initialization file that contains startup settings. The
262261
easiest way to fix the problem is to move the file out of the way and re-run
263-
`configure_invokeai.py`. Enter the developer's console (option 3 of the launcher
262+
`invokeai-configure`. Enter the developer's console (option 3 of the launcher
264263
script) and run this command:
265264
266265
```cmd
267-
configure_invokeai.py --root=.
266+
invokeai-configure --root=.
268267
```
269268

270269
Note the dot (.) after `--root`. It is part of the command.
@@ -289,15 +288,15 @@ hours, and often much sooner.
289288
This distribution is changing rapidly, and we add new features on a daily basis.
290289
To update to the latest released version (recommended), run the `update.sh`
291290
(Linux/Mac) or `update.bat` (Windows) scripts. This will fetch the latest
292-
release and re-run the `configure_invokeai` script to download any updated
291+
release and re-run the `invokeai-configure` script to download any updated
293292
models files that may be needed. You can also use this to add additional models
294293
that you did not select at installation time.
295294

296295
You can now close the developer console and run `invoke` as before. If you get
297296
complaints about missing models, then you may need to do the additional step of
298-
running `configure_invokeai.py`. This happens relatively infrequently. To do
297+
running `invokeai-configure`. This happens relatively infrequently. To do
299298
this, simply open up the developer's console again and type
300-
`python scripts/configure_invokeai.py`.
299+
`invokeai-configure`.
301300

302301
You may also use the `update` script to install any selected version of
303302
InvokeAI. From https://github.com/invoke-ai/InvokeAI, navigate to the zip file

docs/installation/020_INSTALL_MANUAL.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ manager, please follow these steps:
135135
default to `invokeai` in your home directory.
136136
137137
```bash
138-
configure_invokeai --root_dir ~/Programs/invokeai
138+
invokeai-configure --root_dir ~/Programs/invokeai
139139
```
140140
141-
The script `configure_invokeai.py` will interactively guide you through the
141+
The script `invokeai-configure` will interactively guide you through the
142142
process of downloading and installing the weights files needed for InvokeAI.
143143
Note that the main Stable Diffusion weights file is protected by a license
144144
agreement that you have to agree to. The script will list the steps you need
@@ -149,10 +149,10 @@ manager, please follow these steps:
149149
If you get an error message about a module not being installed, check that
150150
the `invokeai` environment is active and if not, repeat step 5.
151151
152-
Note that `configure_invokeai.py` and `invoke.py` should be installed
152+
Note that `invokeai-configure` and `invoke.py` should be installed
153153
under your virtual environment directory and the system should find them
154154
on the PATH. If this isn't working on your system, you can call the
155-
scripts directory using `python scripts/configure_invokeai.py` and
155+
scripts directory using `python scripts/invokeai-configure` and
156156
`python scripts/invoke.py`.
157157

158158
!!! tip
@@ -353,10 +353,10 @@ manager, please follow these steps:
353353
default to `invokeai` in your home directory.
354354
355355
```bash
356-
python scripts/configure_invokeai.py --root_dir ~/Programs/invokeai
356+
python scripts/invokeai-configure --root_dir ~/Programs/invokeai
357357
```
358358
359-
The script `configure_invokeai.py` will interactively guide you through the
359+
The script `invokeai-configure` will interactively guide you through the
360360
process of downloading and installing the weights files needed for InvokeAI.
361361
Note that the main Stable Diffusion weights file is protected by a license
362362
agreement that you have to agree to. The script will list the steps you need
@@ -367,7 +367,7 @@ manager, please follow these steps:
367367
If you get an error message about a module not being installed, check that
368368
the `invokeai` environment is active and if not, repeat step 5.
369369
370-
Note that `configure_invokeai.py` and `invoke.py` should be
370+
Note that `invokeai-configure` and `invoke.py` should be
371371
installed under your conda directory and the system should find
372372
them automatically on the PATH. If this isn't working on your
373373
system, you can call the scripts directory using `python
@@ -468,7 +468,7 @@ greatest version, launch the Anaconda window, enter `InvokeAI` and type:
468468
```bash
469469
git pull
470470
conda env update
471-
python scripts/configure_invokeai.py --skip-sd-weights #optional
471+
python scripts/invokeai-configure --skip-sd-weights #optional
472472
```
473473
474474
This will bring your local copy into sync with the remote one. The last step may
@@ -518,7 +518,7 @@ brew install llvm
518518
519519
If brew config has Clang installed, update to the latest llvm and try creating the environment again.
520520
521-
#### `configure_invokeai.py` or `invoke.py` crashes at an early stage
521+
#### `invokeai-configure` or `invoke.py` crashes at an early stage
522522
523523
This is usually due to an incomplete or corrupted Conda install. Make sure you
524524
have linked to the correct environment file and run `conda update` again.

docs/installation/050_INSTALLING_MODELS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ unofficial Stable Diffusion models and where they can be obtained.
5656

5757
There are three ways to install weights files:
5858

59-
1. During InvokeAI installation, the `configure_invokeai.py` script can download
59+
1. During InvokeAI installation, the `invokeai-configure` script can download
6060
them for you.
6161

6262
2. You can use the command-line interface (CLI) to import, configure and modify
@@ -65,13 +65,13 @@ There are three ways to install weights files:
6565
3. You can download the files manually and add the appropriate entries to
6666
`models.yaml`.
6767

68-
### Installation via `configure_invokeai.py`
68+
### Installation via `invokeai-configure`
6969

70-
This is the most automatic way. Run `scripts/configure_invokeai.py` from the
70+
This is the most automatic way. Run `invokeai-configure` from the
7171
console. It will ask you to select which models to download and lead you through
7272
the steps of setting up a Hugging Face account if you haven't done so already.
7373

74-
To start, run `python scripts/configure_invokeai.py` from within the InvokeAI:
74+
To start, run `invokeai-configure` from within the InvokeAI:
7575
directory
7676

7777
!!! example ""
@@ -244,7 +244,7 @@ arabian-nights-1.0:
244244
| arabian-nights-1.0 | This is the name of the model that you will refer to from within the CLI and the WebGUI when you need to load and use the model. |
245245
| description | Any description that you want to add to the model to remind you what it is. |
246246
| weights | Relative path to the .ckpt weights file for this model. |
247-
| config | This is the confusingly-named configuration file for the model itself. Use `./configs/stable-diffusion/v1-inference.yaml` unless the model happens to need a custom configuration, in which case the place you downloaded it from will tell you what to use instead. For example, the runwayML custom inpainting model requires the file `configs/stable-diffusion/v1-inpainting-inference.yaml`. This is already inclued in the InvokeAI distribution and is configured automatically for you by the `configure_invokeai.py` script. |
247+
| config | This is the confusingly-named configuration file for the model itself. Use `./configs/stable-diffusion/v1-inference.yaml` unless the model happens to need a custom configuration, in which case the place you downloaded it from will tell you what to use instead. For example, the runwayML custom inpainting model requires the file `configs/stable-diffusion/v1-inpainting-inference.yaml`. This is already inclued in the InvokeAI distribution and is configured automatically for you by the `invokeai-configure` script. |
248248
| vae | If you want to add a VAE file to the model, then enter its path here. |
249249
| width, height | This is the width and height of the images used to train the model. Currently they are always 512 and 512. |
250250

installer/templates/invoke.bat.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ IF /I "%restore%" == "1" (
2828
echo Starting model merging script..
2929
python .venv\Scripts\merge_models --gui %*
3030
) ELSE IF /I "%restore%" == "5" (
31-
echo Running configure_invokeai.py...
32-
python .venv\Scripts\configure_invokeai %*
31+
echo Running invokeai-configure...
32+
python .venv\Scripts\invokeai-configure %*
3333
) ELSE IF /I "%restore%" == "6" (
3434
echo Developer Console
3535
echo Python command is:

installer/templates/update.bat.in

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if "%arg%" neq "" (
2424
set INVOKE_AI_SRC="https://github.com/invoke-ai/InvokeAI/archive/!INVOKE_AI_VERSION!.zip"
2525
set INVOKE_AI_DEP=https://raw.githubusercontent.com/invoke-ai/InvokeAI/!INVOKE_AI_VERSION!/environments-and-requirements/requirements-base.txt
2626
set INVOKE_AI_MODELS=https://raw.githubusercontent.com/invoke-ai/InvokeAI/$INVOKE_AI_VERSION/configs/INITIAL_MODELS.yaml
27-
27+
2828
call curl -I "%INVOKE_AI_DEP%" -fs >.tmp.out
2929
if %errorlevel% neq 0 (
3030
echo '!INVOKE_AI_VERSION!' is not a known branch name or tag. Please check the version and try again.
@@ -57,7 +57,7 @@ if %errorlevel% neq 0 (
5757
exit /b
5858
)
5959

60-
@rem call .venv\Scripts\python .venv\Scripts\configure_invokeai.py --root=.
60+
@rem call .venv\Scripts\invokeai-configure --root=.
6161

6262
@rem if %errorlevel% neq 0 (
6363
@rem echo Configuration InvokeAI failed. See https://invoke-ai.github.io/InvokeAI/installation/INSTALL_AUTOMATED/#troubleshooting for suggestions.
@@ -70,4 +70,3 @@ echo InvokeAI has been updated to '%INVOKE_AI_VERSION%'
7070
echo "Press any key to continue"
7171
pause
7272
endlocal
73-

installer/templates/update.sh.in

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [ $# -ge 1 ] && [ "${1:0:2}" == "-h" ]; then
1515
fi
1616

1717
INVOKE_AI_VERSION=${1:-latest}
18-
18+
1919
INVOKE_AI_SRC="https://github.com/invoke-ai/InvokeAI/archive/$INVOKE_AI_VERSION.zip"
2020
INVOKE_AI_DEP=https://raw.githubusercontent.com/invoke-ai/InvokeAI/$INVOKE_AI_VERSION/environments-and-requirements/requirements-base.txt
2121
INVOKE_AI_MODELS=https://raw.githubusercontent.com/invoke-ai/InvokeAI/$INVOKE_AI_VERSION/configs/INITIAL_MODELS.yaml
@@ -56,6 +56,3 @@ _err_exit $? "The pip program failed to install InvokeAI's requirements."
5656
_err_exit $? "The pip program failed to install InvokeAI."
5757

5858
echo InvokeAI updated to \'$INVOKE_AI_VERSION\'
59-
60-
# ./.venv/bin/python .venv/bin/configure_invokeai.py --root .
61-
# _err_exit $? "The configure script failed to run successfully."

0 commit comments

Comments
 (0)