[Error] getting dataset loader when trainning pp-OCRv4 #12388
Replies: 2 comments
-
The training set supports two data types: simple_data and lmdb_data
|
Beta Was this translation helpful? Give feedback.
-
@tink2123 I used lmdb_data. Sometimes, idx in getitem returned 3 value [32,320,1868], [48,320,4651],[64,320,4651], [5645] I tried to get idx = idx[2] if len(idx) > 1 else: idx=idx[0]. I think that it causes from sampler = MultiScaleSampler, scales: [[320, 32], [320, 48], [320, 64]] |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When I debug, I saw that in lmdb_dataset.py with function:
idx always returns with 4 values: (number1, number2, number3, None), but I think
idx
value should be a single value.Beta Was this translation helpful? Give feedback.
All reactions