Skip to content

Commit

Permalink
Update ch_PP-OCRv4_det_cml.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheliu authored May 18, 2024
1 parent 502e167 commit 7c039a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configs/det/ch_PP-OCRv4/ch_PP-OCRv4_det_cml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Global:
eval_batch_step:
- 0
- 1000
cal_metric_during_train: true
cal_metric_during_train: false
checkpoints: null
pretrained_model: null
save_inference_dir: null
Expand Down

2 comments on commit 7c039a7

@mattheliu
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个issue主要是因为cal_metric_during_train参出的问题
495fcf7163e726ce2f19a7c03dd587f3_
comment应该给出答复了,我看了一下应该是通用的

为什么cal_metric_during_train: true不行

cal_metric_during_train 参数是计算当前训练batch数据的精度,pred是一个mask
发现shape_list[batch_index]好像不是四个值的列,导致传递的时候报错ValueError:too many values to unpack (expected 4)
e5680e2a691876aac74b7555e727101e_
现在没找到修复的方案,佬们能帮我看一下吗

@mattheliu
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.