mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
ckpt model conversion now done in ModelCache
This commit is contained in:
@ -54,10 +54,6 @@ def main():
|
||||
"--weights argument has been deprecated. Please edit ./configs/models.yaml, and select the weights using --model instead."
|
||||
)
|
||||
sys.exit(-1)
|
||||
if args.max_loaded_models is not None:
|
||||
if args.max_loaded_models <= 0:
|
||||
print("--max_loaded_models must be >= 1; using 1")
|
||||
args.max_loaded_models = 1
|
||||
|
||||
# alert - setting a few globals here
|
||||
Globals.try_patchmatch = args.patchmatch
|
||||
@ -136,7 +132,7 @@ def main():
|
||||
esrgan=esrgan,
|
||||
free_gpu_mem=opt.free_gpu_mem,
|
||||
safety_checker=opt.safety_checker,
|
||||
max_loaded_models=opt.max_loaded_models,
|
||||
max_cache_size=opt.max_cache_size,
|
||||
)
|
||||
except (FileNotFoundError, TypeError, AssertionError) as e:
|
||||
report_model_error(opt, e)
|
||||
|
Reference in New Issue
Block a user