Closed YuMJie closed 1 year ago
Can you provide more detail? I can't reproduce this problem
Can you provide more detail? I can't reproduce this problem
Thank for your reply!
I set the --train_dataset totaltext_train:ic13_train \
and due to the limitation of the memory, the batch_size = 1
is set. Others are set as same as the original code.
What is more, it sometime can run correctly if set --train_dataset totaltext_train \
, I provide the structure tree of the dataset as follow:
├── CTW1500
│ ├── annotations
│ ├── ctwtest_text_image
│ ├── ctwtrain_text_image
│ ├── weak_voc_new.txt
│ └── weak_voc_pair_list.txt
├── icdar2013
│ ├── ic13_train.json
│ └── train_images
├── icdar2015_all
│ ├── GenericVocabulary.txt
│ ├── GenericVocabulary_new.txt
│ ├── GenericVocabulary_pair_list.txt
│ ├── ch4_test_vocabulary.txt
│ ├── ch4_test_vocabulary_new.txt
│ ├── ch4_test_vocabulary_pair_list.txt
│ ├── ic15_test.json
│ ├── ic15_train.json
│ ├── new_strong_lexicon
│ ├── strong_lexicon
│ ├── test_images
│ └── train_images
├── mlt2017
│ ├── MLT_train_images
│ ├── images
│ └── train.json
├── syntext1
│ ├── images
│ ├── syntext_word_eng
│ └── train.json
├── syntext2
│ ├── emcs_imgs
│ ├── images
│ └── train.json
└── totaltext
├── test.json
├── test_images
├── train.json
├── train_images
├── weak_voc_new.txt
└── weak_voc_pair_list.txt
Looking forward to your reply!
When I run the code
bash scripts/Pretrain.sh /path/to/your/dataset
The code lineif dn_meta and dn_meta['pad_size'] > 0:
is False, which causesHow can I fix it? Thank you!