Pytorch: some characters cannot be found in 'vocab' #1029
khawar-islam
started this conversation in
General
Replies: 3 comments 102 replies
-
Hi @khawar-islam 👋, vocabs.py:
test.py
works without problems :) you have passed the string korean to encode but provided a vocab which contains only korean characters this can not work 😅 |
Beta Was this translation helpful? Give feedback.
32 replies
-
Hi @khawar-islam yeah let me know the results 👍 |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi @khawar-islam if the Images with your fonts generated correctly that result is not possible ... Are you sure you have the latest changes from main branch pulled ? |
Beta Was this translation helpful? Give feedback.
69 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello @frgfm I am also training a recognition model for korean language and i made three changes but still there is some problem like above.
First changed [Added korean language]
Second changed [french to korean]
parser.add_argument('--vocab', type=str, default="korean", help='Vocab to be used for training')
Training start
python3 references/recognition/train_pytorch.py master --train_path /media/cvpr/CM_1/CM/dataset_KR/dataset/train --val_path /media/cvpr/CM_1/CM/dataset_KR/dataset/val --epochs 5 --batch_size 16
After following thread, I wrote two lines
Error
Beta Was this translation helpful? Give feedback.
All reactions