deep-text-recognition-benchmark
deep-text-recognition-benchmark copied to clipboard
please help my code {ValueError: num_samples should be a positive integer value, but got num_samples=0}
Filtering the images containing characters which are not in opt.character Filtering the images whose label is longer than opt.batch_max_length
dataset_root: data_lmdb/training opt.select_data: ['/'] opt.batch_ratio: ['1']
dataset_root: data_lmdb/training dataset: /
sub-directory: /. num samples: 0
num total samples of /: 0 x 1.0 (total_data_usage_ratio) = 0
num samples of / per batch: 192 x 1.0 (batch_ratio) = 192
Traceback (most recent call last):
File "train.py", line 317, in
i dont know why... i changed batch_raio, select_data, character default in train.py
Maybe you should check the your data path, and make sure the data in a right way. By the way, do you have any interest to take a look at our STR toolbox vedastr?
Did you solve this problem? I have the same question, if you have solved this, could you tell me how to solve it? Thanks!
It is a filtering issue. Just turn it off by --data_filtering_off
when training
add " --data_filtering_off --workers 0", it will solve your problem.