Skip to content

Commit

Permalink
Update inference.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zml-ai authored Jun 14, 2024
1 parent 442ca2b commit 4398a5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hydit/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ def __init__(self, args, models_root_path):

self.infer_mode = self.args.infer_mode
if self.infer_mode in ['fa', 'torch']:
model_dir = self.root / "model"
model_path = model_dir / f"pytorch_model_{self.args.load_key}.pt"
if not model_path.exists():
raise ValueError(f"model_path not exists: {model_path}")
Expand Down

0 comments on commit 4398a5c

Please sign in to comment.