Skip to content

Commit

Permalink
Merge pull request #5019 from BeyondYourself/release/2.4
Browse files Browse the repository at this point in the history
add a constraint
  • Loading branch information
LDOUBLEV authored Dec 22, 2021
2 parents d76ba53 + e45b4c5 commit 93328b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def train(config,
stats['lr'] = lr
train_stats.update(stats)

if cal_metric_during_train: # only rec and cls need
if cal_metric_during_train and model_type is not "det": # only rec and cls need
batch = [item.numpy() for item in batch]
if model_type in ['table', 'kie']:
eval_class(preds, batch)
Expand Down

0 comments on commit 93328b6

Please sign in to comment.