Merge branch 'master' into ScuNET

This commit is contained in:
d8ahazard 2022-10-02 07:56:22 -05:00 committed by GitHub
commit 5d26ba2b4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 922 additions and 400 deletions

View file

@ -1,3 +1,4 @@
import glob
import os
import shutil
import importlib
@ -40,8 +41,8 @@ def load_models(model_path: str, model_url: str = None, command_path: str = None
for place in places:
if os.path.exists(place):
for file in os.listdir(place):
full_path = os.path.join(place, file)
for file in glob.iglob(place + '**/**', recursive=True):
full_path = file
if os.path.isdir(full_path):
continue
if len(ext_filter) != 0: