Skip to content

Commit

Permalink
Update evaluator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
RituYadav92 authored Sep 22, 2024
1 parent b4a536e commit ad69bf9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engine/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ def __init__(self, args, val_loader, exp_dir, device):

@torch.no_grad()
def evaluate(self, model, model_name='model', model_ckpt_path=None):
# TODO: Rework this to allow evaluation only runs
# Move common parts to parent class, and get loss function from the registry.
t = time.time()

if model_ckpt_path is not None:
Expand Down

0 comments on commit ad69bf9

Please sign in to comment.