Merge pull request #452 from ryanwalder/main

UPDATE: Sort models list alphabetically
This commit is contained in:
Евгений Гурьев | Eugene Gourieff | 古仁 2024-09-15 17:44:29 +07:00 committed by GitHub
commit 7298d8650d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -203,9 +203,12 @@ def get_facemodels():
def get_model_names(get_models):
models = get_models()
names = ["None"]
names = []
for x in models:
names.append(os.path.basename(x))
# Sort ignoring case during sort but retain in output
names.sort(key=str.lower)
names.insert(0, "None")
return names
def get_images_from_folder(path: str):