Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to genreate training dataset CVLtrH32? #10

Open
chenyangMl opened this issue Dec 8, 2020 · 1 comment
Open

How to genreate training dataset CVLtrH32? #10

chenyangMl opened this issue Dec 8, 2020 · 1 comment

Comments

@chenyangMl
Copy link

chenyangMl commented Dec 8, 2020

Thanks for this remarkable work, and I want to run semi-supervised training command with
python train_semi_supervised.py --dataname IAMcharH32W16rmPunct --unlabeled_dataname CVLtrH32 --disjoint

So I have download cvl-database-1-1, and noticed the CVLtrH32 defination in "data/dataset_catalog.py" that looks like below
"CVLtrH32": _DATA_ROOT+'CVL/h32/train_new_partition'
But i can not create it with script "data/create_text_data.py", cause there is not corresponding paramtere of mode. The related code at line 89~100 of "create_text_data.py".
if dataset=='CVL':
root_dir = os.path.join(root_dir, 'cvl-database-1-1')
if words:
images_name = 'words'
else:
images_name = 'lines'
if mode == 'tr' or mode == 'val':
mode_dir = ['trainset']
elif mode == 'te':
mode_dir = ['testset']
elif mode == 'all':
mode_dir = ['testset', 'trainset']

I change the dataset key "CVLtrH32": _DATA_ROOT+'CVL/h32/tr', and create dataset with script. Then training working. but i can not sure it's correct or not.

So, how to create a correct dataset and make semi-supervised training working well? look forward your answer.

@sharonFogel
Copy link

It's correct, we just haven't updated the dataset dictionary after changing the data generation code.

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

No branches or pull requests

2 participants