mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
compress height needed by configure script
This commit is contained in:
parent
0ce8472562
commit
da76f6fee4
@ -287,33 +287,6 @@ Use cursor arrows to make a checkbox selection, and space to toggle.
|
|||||||
color="CONTROL",
|
color="CONTROL",
|
||||||
)
|
)
|
||||||
|
|
||||||
self.nextrely += 1
|
|
||||||
self.add_widget_intelligent(
|
|
||||||
npyscreen.TitleFixedText,
|
|
||||||
name="== BASIC OPTIONS ==",
|
|
||||||
begin_entry_at=0,
|
|
||||||
editable=False,
|
|
||||||
color="CONTROL",
|
|
||||||
scroll_exit=True,
|
|
||||||
)
|
|
||||||
self.nextrely -= 1
|
|
||||||
self.add_widget_intelligent(
|
|
||||||
npyscreen.FixedText,
|
|
||||||
value="Select an output directory for images:",
|
|
||||||
editable=False,
|
|
||||||
color="CONTROL",
|
|
||||||
)
|
|
||||||
self.outdir = self.add_widget_intelligent(
|
|
||||||
npyscreen.TitleFilename,
|
|
||||||
name="(<tab> autocompletes, ctrl-N advances):",
|
|
||||||
value=str(default_output_dir()),
|
|
||||||
select_dir=True,
|
|
||||||
must_exist=False,
|
|
||||||
use_two_lines=False,
|
|
||||||
labelColor="GOOD",
|
|
||||||
begin_entry_at=40,
|
|
||||||
scroll_exit=True,
|
|
||||||
)
|
|
||||||
self.nextrely += 1
|
self.nextrely += 1
|
||||||
label = """HuggingFace access token (OPTIONAL) for automatic model downloads. See https://huggingface.co/settings/tokens."""
|
label = """HuggingFace access token (OPTIONAL) for automatic model downloads. See https://huggingface.co/settings/tokens."""
|
||||||
for line in textwrap.wrap(label,width=window_width-6):
|
for line in textwrap.wrap(label,width=window_width-6):
|
||||||
@ -333,15 +306,6 @@ Use cursor arrows to make a checkbox selection, and space to toggle.
|
|||||||
scroll_exit=True,
|
scroll_exit=True,
|
||||||
)
|
)
|
||||||
self.nextrely += 1
|
self.nextrely += 1
|
||||||
self.add_widget_intelligent(
|
|
||||||
npyscreen.TitleFixedText,
|
|
||||||
name="== ADVANCED OPTIONS ==",
|
|
||||||
begin_entry_at=0,
|
|
||||||
editable=False,
|
|
||||||
color="CONTROL",
|
|
||||||
scroll_exit=True,
|
|
||||||
)
|
|
||||||
self.nextrely -= 1
|
|
||||||
self.add_widget_intelligent(
|
self.add_widget_intelligent(
|
||||||
npyscreen.TitleFixedText,
|
npyscreen.TitleFixedText,
|
||||||
name="GPU Management",
|
name="GPU Management",
|
||||||
@ -401,6 +365,18 @@ Use cursor arrows to make a checkbox selection, and space to toggle.
|
|||||||
editable=False,
|
editable=False,
|
||||||
color="CONTROL",
|
color="CONTROL",
|
||||||
)
|
)
|
||||||
|
self.outdir = self.add_widget_intelligent(
|
||||||
|
FileBox,
|
||||||
|
name="Output directory for images (<tab> autocompletes, ctrl-N advances):",
|
||||||
|
value=str(default_output_dir()),
|
||||||
|
select_dir=True,
|
||||||
|
must_exist=False,
|
||||||
|
use_two_lines=False,
|
||||||
|
labelColor="GOOD",
|
||||||
|
begin_entry_at=40,
|
||||||
|
max_height=3,
|
||||||
|
scroll_exit=True,
|
||||||
|
)
|
||||||
self.autoimport_dirs = {}
|
self.autoimport_dirs = {}
|
||||||
self.autoimport_dirs['autoimport_dir'] = self.add_widget_intelligent(
|
self.autoimport_dirs['autoimport_dir'] = self.add_widget_intelligent(
|
||||||
FileBox,
|
FileBox,
|
||||||
@ -527,7 +503,7 @@ class EditOptApplication(npyscreen.NPSAppManaged):
|
|||||||
"MAIN",
|
"MAIN",
|
||||||
editOptsForm,
|
editOptsForm,
|
||||||
name="InvokeAI Startup Options",
|
name="InvokeAI Startup Options",
|
||||||
cycle_widgets=True,
|
cycle_widgets=False,
|
||||||
)
|
)
|
||||||
if not (self.program_opts.skip_sd_weights or self.program_opts.default_only):
|
if not (self.program_opts.skip_sd_weights or self.program_opts.default_only):
|
||||||
self.model_select = self.addForm(
|
self.model_select = self.addForm(
|
||||||
@ -535,7 +511,7 @@ class EditOptApplication(npyscreen.NPSAppManaged):
|
|||||||
addModelsForm,
|
addModelsForm,
|
||||||
name="Install Stable Diffusion Models",
|
name="Install Stable Diffusion Models",
|
||||||
multipage=True,
|
multipage=True,
|
||||||
cycle_widgets=True,
|
cycle_widgets=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
def new_opts(self):
|
def new_opts(self):
|
||||||
|
@ -553,7 +553,7 @@ class AddModelApplication(npyscreen.NPSAppManaged):
|
|||||||
def onStart(self):
|
def onStart(self):
|
||||||
npyscreen.setTheme(npyscreen.Themes.DefaultTheme)
|
npyscreen.setTheme(npyscreen.Themes.DefaultTheme)
|
||||||
self.main_form = self.addForm(
|
self.main_form = self.addForm(
|
||||||
"MAIN", addModelsForm, name="Install Stable Diffusion Models", cycle_widgets=True,
|
"MAIN", addModelsForm, name="Install Stable Diffusion Models", cycle_widgets=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
class StderrToMessage():
|
class StderrToMessage():
|
||||||
|
Loading…
Reference in New Issue
Block a user