Skip to content

Commit

Permalink
put model in eval mode before evaluation (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdidc authored Jan 30, 2023
1 parent ff19f62 commit 8d994cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clip_benchmark/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def run(args):
cache_dir=args.model_cache_dir,
device=args.device
)
model.eval()
dataset = build_dataset(
dataset_name=args.dataset,
root=dataset_root,
Expand Down

0 comments on commit 8d994cf

Please sign in to comment.