Sort models by name

This commit is contained in:
cmdr2 2022-11-09 17:35:55 +05:30 committed by GitHub
parent 18292e447c
commit 087c10d52d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,6 +250,7 @@ def getModels():
models['options'][model_type].append(model_name)
models['options'][model_type] = [*set(models['options'][model_type])] # remove duplicates
models['options'][model_type].sort()
# custom models
listModels(models_dirname='stable-diffusion', model_type='stable-diffusion', model_extensions=['.ckpt'])