Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitda76f6f

Browse files
author
Lincoln Stein
committed
compress height needed by configure script
1 parent0ce8472 commitda76f6f

File tree

2 files changed

+15
-39
lines changed

2 files changed

+15
-39
lines changed

‎invokeai/backend/install/invokeai_configure.py‎

Lines changed: 14 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -287,33 +287,6 @@ def create(self):
287287
color="CONTROL",
288288
)
289289

290-
self.nextrely+=1
291-
self.add_widget_intelligent(
292-
npyscreen.TitleFixedText,
293-
name="== BASIC OPTIONS ==",
294-
begin_entry_at=0,
295-
editable=False,
296-
color="CONTROL",
297-
scroll_exit=True,
298-
)
299-
self.nextrely-=1
300-
self.add_widget_intelligent(
301-
npyscreen.FixedText,
302-
value="Select an output directory for images:",
303-
editable=False,
304-
color="CONTROL",
305-
)
306-
self.outdir=self.add_widget_intelligent(
307-
npyscreen.TitleFilename,
308-
name="(<tab> autocompletes, ctrl-N advances):",
309-
value=str(default_output_dir()),
310-
select_dir=True,
311-
must_exist=False,
312-
use_two_lines=False,
313-
labelColor="GOOD",
314-
begin_entry_at=40,
315-
scroll_exit=True,
316-
)
317290
self.nextrely+=1
318291
label="""HuggingFace access token (OPTIONAL) for automatic model downloads. See https://huggingface.co/settings/tokens."""
319292
forlineintextwrap.wrap(label,width=window_width-6):
@@ -333,15 +306,6 @@ def create(self):
333306
scroll_exit=True,
334307
)
335308
self.nextrely+=1
336-
self.add_widget_intelligent(
337-
npyscreen.TitleFixedText,
338-
name="== ADVANCED OPTIONS ==",
339-
begin_entry_at=0,
340-
editable=False,
341-
color="CONTROL",
342-
scroll_exit=True,
343-
)
344-
self.nextrely-=1
345309
self.add_widget_intelligent(
346310
npyscreen.TitleFixedText,
347311
name="GPU Management",
@@ -401,6 +365,18 @@ def create(self):
401365
editable=False,
402366
color="CONTROL",
403367
)
368+
self.outdir=self.add_widget_intelligent(
369+
FileBox,
370+
name="Output directory for images (<tab> autocompletes, ctrl-N advances):",
371+
value=str(default_output_dir()),
372+
select_dir=True,
373+
must_exist=False,
374+
use_two_lines=False,
375+
labelColor="GOOD",
376+
begin_entry_at=40,
377+
max_height=3,
378+
scroll_exit=True,
379+
)
404380
self.autoimport_dirs= {}
405381
self.autoimport_dirs['autoimport_dir']=self.add_widget_intelligent(
406382
FileBox,
@@ -527,15 +503,15 @@ def onStart(self):
527503
"MAIN",
528504
editOptsForm,
529505
name="InvokeAI Startup Options",
530-
cycle_widgets=True,
506+
cycle_widgets=False,
531507
)
532508
ifnot (self.program_opts.skip_sd_weightsorself.program_opts.default_only):
533509
self.model_select=self.addForm(
534510
"MODELS",
535511
addModelsForm,
536512
name="Install Stable Diffusion Models",
537513
multipage=True,
538-
cycle_widgets=True,
514+
cycle_widgets=False,
539515
)
540516

541517
defnew_opts(self):

‎invokeai/frontend/install/model_install.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ def __init__(self,opt):
553553
defonStart(self):
554554
npyscreen.setTheme(npyscreen.Themes.DefaultTheme)
555555
self.main_form=self.addForm(
556-
"MAIN",addModelsForm,name="Install Stable Diffusion Models",cycle_widgets=True,
556+
"MAIN",addModelsForm,name="Install Stable Diffusion Models",cycle_widgets=False,
557557
)
558558

559559
classStderrToMessage():

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp