mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix model download and autodetection bugs
- Corrected error that caused --full-precision argument to be ignored when models downloaded using the --yes argument. - Improved autodetection of v1 inpainting files; no longer relies on the file having 'inpaint' in the name.
This commit is contained in:
@ -368,8 +368,11 @@ def process_and_execute(app: npyscreen.NPSAppManaged):
|
||||
# --------------------------------------------------------
|
||||
def select_and_download_models(opt: Namespace):
|
||||
if opt.default_only:
|
||||
models_to_download = default_dataset()
|
||||
install_requested_models(models_to_download)
|
||||
models_to_install = default_dataset()
|
||||
install_requested_models(
|
||||
install_initial_models = models_to_install,
|
||||
precision = 'float32' if opt.full_precision else choose_precision(torch.device(choose_torch_device())),
|
||||
)
|
||||
else:
|
||||
installApp = AddModelApplication()
|
||||
installApp.opt = opt
|
||||
|
Reference in New Issue
Block a user