Skip to content

Commit ba2ce72

Browse files
authored
Prevent config script from trying to set vram on macs (#4412)
## What type of PR is this? (check all applicable) - [X] Bug Fix ## Have you discussed this change with the InvokeAI team? - [X] Yes ## Have you updated all relevant documentation? - [X] Yes ## Description Running the config script on Macs triggered an error due to absence of VRAM on these machines! VRAM setting is now skipped. ## Added/updated tests? - [ ] Yes - [X] No : Will add this test in the near future.
2 parents dfbcb77 + c54c1f6 commit ba2ce72

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

invokeai/backend/install/invokeai_configure.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ def create(self):
507507
scroll_exit=True,
508508
)
509509
else:
510-
self.vram_cache_size = DummyWidgetValue.zero
510+
self.vram = DummyWidgetValue.zero
511511
self.nextrely += 1
512512
self.outdir = self.add_widget_intelligent(
513513
FileBox,
@@ -605,7 +605,8 @@ def marshall_arguments(self):
605605
"vram",
606606
"outdir",
607607
]:
608-
setattr(new_opts, attr, getattr(self, attr).value)
608+
if hasattr(self, attr):
609+
setattr(new_opts, attr, getattr(self, attr).value)
609610

610611
for attr in self.autoimport_dirs:
611612
directory = Path(self.autoimport_dirs[attr].value)

0 commit comments

Comments
 (0)