提交 3312d624 编写于 作者: L LDOUBLEV

fix train

上级 dc7d4b00
...@@ -239,7 +239,7 @@ def train(config, ...@@ -239,7 +239,7 @@ def train(config,
else: else:
if model_type == 'table' or extra_input: if model_type == 'table' or extra_input:
preds = model(images, data=batch[1:]) preds = model(images, data=batch[1:])
if model_type == "kie": elif model_type == "kie":
preds = model(batch) preds = model(batch)
else: else:
preds = model(images) preds = model(images)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册