mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-06-03 21:53:39 +08:00
add a constraint
This commit is contained in:
parent
73f3dbd508
commit
e45b4c515c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user