added sumbmodules

This commit is contained in:
leno3003 2022-03-30 18:00:43 +02:00
parent 56da12185e
commit 3e50e37e69
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ import os
dictionary = { dictionary = {
'4' : '\n', '4' : '\n',
'Choose one of saved models, or enter a name to create a new model.' : '\n', '5' : '0',
'Output image format':'png', 'Output image format':'png',
'NonInteractiveMode':'True', 'NonInteractiveMode':'True',
'Which GPU indexes to choose?': '0', 'Which GPU indexes to choose?': '0',

View file

@ -80,7 +80,7 @@ class ModelBase(object):
s += "- latest" s += "- latest"
io.log_info (s) io.log_info (s)
inp = io.input_str(f"", "0", show_default_value=False ) inp = io.input_str(f"", "0", show_default_value=False, "5" )
model_idx = -1 model_idx = -1
try: try:
model_idx = np.clip ( int(inp), 0, len(saved_models_names)-1 ) model_idx = np.clip ( int(inp), 0, len(saved_models_names)-1 )