Merge pull request #38 from j129008/main

load model function fix
pull/118/head
Somdev Sangwan 2023-06-22 05:30:33 +05:30 committed by GitHub
commit 9cf85b19f8
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