File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -558,7 +558,7 @@ def default_user_selections(program_opts: Namespace) -> InstallSelections:
558
558
559
559
# -------------------------------------
560
560
def initialize_rootdir (root : Path , yes_to_all : bool = False ):
561
- logger .info ("** INITIALIZING INVOKEAI RUNTIME DIRECTORY ** " )
561
+ logger .info ("Initializing InvokeAI runtime directory " )
562
562
for name in (
563
563
"models" ,
564
564
"databases" ,
@@ -788,15 +788,14 @@ def main():
788
788
sys .exit (0 )
789
789
790
790
if opt .skip_support_models :
791
- logger .info ("SKIPPING SUPPORT MODEL DOWNLOADS PER USER REQUEST " )
791
+ logger .info ("Skipping support models at user's request " )
792
792
else :
793
- logger .info ("CHECKING/UPDATING SUPPORT MODELS " )
793
+ logger .info ("Installing support models " )
794
794
download_support_models ()
795
795
796
796
if opt .skip_sd_weights :
797
- logger .warning ("SKIPPING DIFFUSION WEIGHTS DOWNLOAD PER USER REQUEST " )
797
+ logger .warning ("Skipping diffusion weights download per user request " )
798
798
elif models_to_download :
799
- logger .info ("DOWNLOADING DIFFUSION WEIGHTS" )
800
799
process_and_execute (opt , models_to_download )
801
800
802
801
postscript (errors = errors )
Original file line number Diff line number Diff line change @@ -149,16 +149,17 @@ def list_models(self, model_type):
149
149
for i in installed :
150
150
print (f"{ i ['model_name' ]} \t { i ['base_model' ]} \t { i ['path' ]} " )
151
151
152
- def starter_models (self )-> Set [str ]:
152
+ # logic here a little reversed to maintain backward compatibility
153
+ def starter_models (self , all_models : bool = False )-> Set [str ]:
153
154
models = set ()
154
155
for key , value in self .datasets .items ():
155
156
name ,base ,model_type = ModelManager .parse_key (key )
156
- if model_type == ModelType .Main :
157
+ if all_models or model_type == ModelType .Main :
157
158
models .add (key )
158
159
return models
159
160
160
161
def recommended_models (self )-> Set [str ]:
161
- starters = self .starter_models ()
162
+ starters = self .starter_models (all_models = True )
162
163
return set ([x for x in starters if self .datasets [x ].get ('recommended' ,False )])
163
164
164
165
def default_model (self )-> str :
You can’t perform that action at this time.
0 commit comments