mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Previously conversions of .ckpt and .safetensors files to diffusers models were failing with channel mismatch errors. This is corrected with this PR. - The model_manager convert_and_import() method now accepts the path to the checkpoint file's configuration file, using the parameter `original_config_file`. For inpainting files this should be set to the full path to `v1-inpainting-inference.yaml`. - If no configuration file is provided in the call, then the presence of an inpainting file will be inferred at the `ldm.ckpt_to_diffuser.convert_ckpt_to_diffUser()` level by looking for the string "inpaint" in the path. AUTO1111 does something similar to this, but it is brittle and not recommended. - This PR also changes the model manager model_names() method to return the model names in case folded sort order. |
||
---|---|---|
.. | ||
ckpt_generator | ||
config | ||
generator | ||
restoration | ||
training | ||
__init__.py | ||
_version.py | ||
args.py | ||
ckpt_to_diffuser.py | ||
CLI.py | ||
concepts_lib.py | ||
conditioning.py | ||
devices.py | ||
globals.py | ||
image_util.py | ||
log.py | ||
merge_diffusers.py | ||
model_manager.py | ||
patchmatch.py | ||
pngwriter.py | ||
prompt_parser.py | ||
readline.py | ||
seamless.py | ||
server_legacy.py | ||
server.py | ||
txt2mask.py |