mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Merge branch 'main' into bugfix/use-cu117-wheel
This commit is contained in:
commit
fcd9b813e3
@ -355,7 +355,10 @@ class InvokeAiInstance:
|
|||||||
|
|
||||||
ext = "bat" if OS == "Windows" else "sh"
|
ext = "bat" if OS == "Windows" else "sh"
|
||||||
|
|
||||||
for script in ["invoke", "update"]:
|
#scripts = ['invoke', 'update']
|
||||||
|
scripts = ['invoke']
|
||||||
|
|
||||||
|
for script in scripts:
|
||||||
src = Path(__file__).parent / "templates" / f"{script}.{ext}.in"
|
src = Path(__file__).parent / "templates" / f"{script}.{ext}.in"
|
||||||
dest = self.runtime / f"{script}.{ext}"
|
dest = self.runtime / f"{script}.{ext}"
|
||||||
shutil.copy(src, dest)
|
shutil.copy(src, dest)
|
||||||
|
@ -847,7 +847,7 @@ class Generate:
|
|||||||
# the model cache does the loading and offloading
|
# the model cache does the loading and offloading
|
||||||
cache = self.model_manager
|
cache = self.model_manager
|
||||||
if not cache.valid_model(model_name):
|
if not cache.valid_model(model_name):
|
||||||
raise KeyError('** "{model_name}" is not a known model name. Cannot change.')
|
raise KeyError(f'** "{model_name}" is not a known model name. Cannot change.')
|
||||||
|
|
||||||
cache.print_vram_usage()
|
cache.print_vram_usage()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user