load model function fix

pull/38/head
davidchang 2023-06-22 06:03:36 +08:00
parent 4ce41b6b34
commit 29acad245e
1 changed files with 1 additions and 1 deletions

View File

@ -18,8 +18,8 @@ import os
def get_models():
models = glob.glob(models_path)
models_path = os.path.join(scripts.basedir(), "models/roop/*")
models = glob.glob(models_path)
models += glob.glob(models_path)
models = [x for x in models if x.endswith(".onnx") or x.endswith(".pth")]
return models