add support for an initialization file, invokeai.init

- Place preferred startup command switches in a file named
  "invokeai.init". The file can consist of a single line of switches
  such as "--web --steps=28", a series of switches on each
  line, or any combination of the two.

 Example:
 ```
   --web
   --host=0.0.0.0
   --steps=28
   --grid
   -f 0.6 -C 11.0 -A k_euler_a
```

- The following options, which were previously only available within
  the CLI, are now available on the command line as well:

  --steps
  --strength
  --cfg_scale
  --width
  --height
  --fit
This commit is contained in:
Lincoln Stein
2022-11-05 14:28:01 -04:00
committed by tildebyte
parent 2ad6ef355a
commit 1fe41146f0
3 changed files with 102 additions and 24 deletions

5
.gitignore vendored
View File

@@ -208,4 +208,7 @@ gfpgan/
configs/models.yaml
# weights (will be created by installer)
models/ldm/stable-diffusion-v1/*.ckpt
models/ldm/stable-diffusion-v1/*.ckpt
# ignore initfile
invokeai.init