InvokeAI/docs/features
Lincoln Stein 6afc0f9b38 add ability to import and edit alternative models online
- !import_model <path/to/model/weights> will import a new model,
  prompt the user for its name and description, write it to the
  models.yaml file, and load it.

- !edit_model <model_name> will bring up a previously-defined model
  and prompt the user to edit its descriptive fields.

Example of !import_model

<pre>
invoke> <b>!import_model models/ldm/stable-diffusion-v1/model-epoch08-float16.ckpt</b>
>> Model import in process. Please enter the values needed to configure this model:

Name for this model: <b>waifu-diffusion</b>
Description of this model: <b>Waifu Diffusion v1.3</b>
Configuration file for this model: <b>configs/stable-diffusion/v1-inference.yaml</b>
Default image width: <b>512</b>
Default image height: <b>512</b>
>> New configuration:
waifu-diffusion:
  config: configs/stable-diffusion/v1-inference.yaml
  description: Waifu Diffusion v1.3
  height: 512
  weights: models/ldm/stable-diffusion-v1/model-epoch08-float16.ckpt
  width: 512
OK to import [n]? <b>y</b>
>> Caching model stable-diffusion-1.4 in system RAM
>> Loading waifu-diffusion from models/ldm/stable-diffusion-v1/model-epoch08-float16.ckpt
   | LatentDiffusion: Running in eps-prediction mode
   | DiffusionWrapper has 859.52 M params.
   | Making attention of type 'vanilla' with 512 in_channels
   | Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
   | Making attention of type 'vanilla' with 512 in_channels
   | Using faster float16 precision
</pre>

Example of !edit_model

<pre>
invoke> <b>!edit_model waifu-diffusion</b>
>> Editing model waifu-diffusion from configuration file ./configs/models.yaml
description: <b>Waifu diffusion v1.4beta</b>
weights: models/ldm/stable-diffusion-v1/<b>model-epoch10-float16.ckpt</b>
config: configs/stable-diffusion/v1-inference.yaml
width: 512
height: 512

>> New configuration:
waifu-diffusion:
  config: configs/stable-diffusion/v1-inference.yaml
  description: Waifu diffusion v1.4beta
  weights: models/ldm/stable-diffusion-v1/model-epoch10-float16.ckpt
  height: 512
  width: 512

OK to import [n]? y
>> Caching model stable-diffusion-1.4 in system RAM
>> Loading waifu-diffusion from models/ldm/stable-diffusion-v1/model-epoch10-float16.ckpt
...
</pre>
2022-10-13 23:48:07 -04:00
..
CHANGELOG.md Fix markdown typo in WEB.md 2022-10-09 08:57:14 -04:00
CLI.md add ability to import and edit alternative models online 2022-10-13 23:48:07 -04:00
EMBIGGEN.md rebrand CLI from "dream" to "invoke" 2022-10-08 09:32:06 -04:00
IMG2IMG.md Merge branch 'main' into development 2022-10-09 14:47:27 -04:00
INPAINTING.md Update INPAINTING.md 2022-10-09 08:45:33 -04:00
OTHER.md rebrand CLI from "dream" to "invoke" 2022-10-08 09:32:06 -04:00
OUTPAINTING.md rebrand CLI from "dream" to "invoke" 2022-10-08 09:32:06 -04:00
POSTPROCESS.md add missing doc files 2022-10-09 11:38:39 -04:00
PROMPTS.md rebrand CLI from "dream" to "invoke" 2022-10-08 09:32:06 -04:00
TEXTUAL_INVERSION.md rebrand CLI from "dream" to "invoke" 2022-10-08 09:32:06 -04:00
VARIATIONS.md rebrand CLI from "dream" to "invoke" 2022-10-08 09:32:06 -04:00
WEB.md Merge branch 'main' into development 2022-10-09 14:47:27 -04:00