mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2026-10-24 12:18:47 +08:00
Merge pull request #1951 from light1003/patch-1
Update det_basic_loss.py
This commit is contained in:
@@ -200,6 +200,6 @@ def ohem_batch(scores, gt_texts, training_masks, ohem_ratio):
|
||||
i, :, :], ohem_ratio))
|
||||
|
||||
selected_masks = np.concatenate(selected_masks, 0)
|
||||
selected_masks = paddle.to_variable(selected_masks)
|
||||
selected_masks = paddle.to_tensor(selected_masks)
|
||||
|
||||
return selected_masks
|
||||
|
||||
Reference in New Issue
Block a user