InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: `!load_model` does not work with `--root`

Open damian0815 opened this issue 3 years ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS

macOS

GPU

mps

VRAM

No response

What happened?

Not sure if this is already fixed, but when adding a new model to a subfolder of the --root dir and then trying to use !import_model, autocompletion does not work on the CLI and the model won't load.

>> Initialization file /Users/damian/.invokeai found. Loading...
>> InvokeAI runtime directory is "/Users/damian/Documents/invokeai"
...
invoke> !import_model models/ldm/stable-diffusion-v2/768-v-ema.ckpt
** models/ldm/stable-diffusion-v2/768-v-ema.ckpt: file not found

directory contents:

damian@Damians-mac-mini stable-diffusion % ls /Users/damian/Documents/invokeai/models/ldm/stable-diffusion-v2/
512-base-ema.ckpt	768-v-ema.ckpt

.invokeai:

damian@Damians-mac-mini stable-diffusion % cat ~/.invokeai
# InvokeAI initialization file
# Put frequently-used startup commands here, one or more per line
# Examples:
# --web --host=0.0.0.0
# --steps 20
# -Ak_euler_a -C10.0
--root /Users/damian/Documents/invokeai

Screenshots

No response

Additional context

No response

Contact Details

No response

damian0815 avatar Nov 24 '22 15:11 damian0815

I think this is fixed in the pending PR but I'll check.

lstein avatar Nov 24 '22 16:11 lstein

note that his problem is not caused by the v2 model:

invoke> !import_model models/ldm/stable-diffusion-v1/v1-5-pruned-emaonly.ckpt
** models/ldm/stable-diffusion-v1/v1-5-pruned-emaonly.ckpt: file not found
(invokeai) damian@Damians-mac-mini stable-diffusion % ls /Users/damian/Documents/invokeai/models/ldm/stable-diffusion-v1                                           
GFPGANv1.4.pth                          buzzybee-epoch3-8.pt                    codeformer.pth                          v1-5-pruned-emaonly.sha256
buzzybee-13200.pt                       buzzybee-epoch4-8.pt                    v1-5-pruned-emaonly.ckpt                vae-ft-mse-840000-ema-pruned.ckpt
(invokeai) damian@Damians-mac-mini stable-diffusion % 

damian0815 avatar Nov 28 '22 14:11 damian0815