Skip to content

Commit

Permalink
load model function fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchang committed Jun 21, 2023
1 parent 4ce41b6 commit 29acad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/faceswap.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@


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
Expand Down

0 comments on commit 29acad2

Please sign in to comment.