Skip to content
This repository has been archived by the owner on Dec 5, 2021. It is now read-only.

why does this target_pad need normalization here? #2

Open
Zhang-O opened this issue Dec 4, 2021 · 1 comment
Open

why does this target_pad need normalization here? #2

Zhang-O opened this issue Dec 4, 2021 · 1 comment

Comments

@Zhang-O
Copy link

Zhang-O commented Dec 4, 2021

targets_padded = F.normalize(targets_padded, p=1, dim=1)

@Zhang-O
Copy link
Author

Zhang-O commented Dec 4, 2021

I had viewed your answer in another issue which you noted that both of methods worked well.

Another question is :
Is therr any need to ignore blank? Just as code here https://github.com/PaddlePaddle/PaddleOCR/blob/dygraph/ppocr/losses/ace_loss.py ,
where they ignored the blank through setting the "ignore_index=0".

Wish to receive your reply!!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant