deep-text-recognition-benchmark
deep-text-recognition-benchmark copied to clipboard
TypeError: cannot pickle 'Environment' object
Hello,
I have this error and I really don't know what to do. I'm new in coding so, I really need help! :-P
there is all lines in my Terminal : (THX for helping me)
PS C:\Users\guit_\PycharmProjects\Text Recognition\deep-text-recognition-benchmark-master> python train.py --train_data data_lmdb_release/training --valid_data data_lmdb_release/validation --select_data MJ-ST --batch_ratio 0.5-0.5 --Transformation None --FeatureExtraction ResNet --SequenceModeling BiLSTM --Prediction CTC 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_release/training opt.select_data: ['MJ', 'ST'] opt.batch_ratio: ['0.5', '0.5']
dataset_root: data_lmdb_release/training dataset: MJ
sub-directory: /MJ\MJ_test num samples: 891924
sub-directory: /MJ\MJ_train num samples: 7224586
sub-directory: /MJ\MJ_valid num samples: 802731
num total samples of MJ: 8919241 x 1.0 (total_data_usage_ratio) = 8919241
num samples of MJ per batch: 192 x 0.5 (batch_ratio) = 96
Traceback (most recent call last):
File "train.py", line 317, in
I have the same problem.
That sounds to be related to PyTorch. Adding --workers 0
fixed the problem for me. Check this issue.
That sounds to be related to PyTorch. Adding
--workers 0
fixed the problem for me. Check this issue.
thanks, it works!