Unverified Commit 85d340bd authored by Double_V's avatar Double_V Committed by GitHub
Browse files

Merge pull request #1951 from light1003/patch-1

Update det_basic_loss.py
parents 1e5c6e43 4a8fc917
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment