{'type': 'RecTextLineDataset', 'file': 'C:/Users/94752/PycharmProjects/ReadMeter/PytorchOCR/icdar2015/text_localization/train_icdar2015_label.txt', 'input_h': 32, 'mean': 0.5, 'std': 0.5, 'augmentation': False, 'alphabet': 'C:/Users/94752/PycharmProjects/ReadMeter/PytorchOCR/torchocr/datasets/alphabets/digit.txt'}
RecTextLineDataset
Traceback (most recent call last):
File "tools/rec_train.py", line 352, in
main()
File "tools/rec_train.py", line 343, in main
train_loader = build_dataloader(cfg.dataset.train)
File "C:\Users\94752\PycharmProjects\ReadMeter\PytorchOCR\torchocr\datasets__init.py", line 79, in build_dataloader
loader = build_loader(dataset, copy_config.loader)
File "C:\Users\94752\PycharmProjects\ReadMeter\PytorchOCR\torchocr\datasets__init__.py", line 48, in build_loader
dataloader_class = eval(dataloader_type)(dataset=dataset, collate_fn=collate_fn, **config)
File "C:\Users\94752\PycharmProjects\ReadMeter\venv\lib\site-packages\torch\utils\data\dataloader.py", line 344, in init
sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type]
File "C:\Users\94752\PycharmProjects\ReadMeter\venv\lib\site-packages\torch\utils\data\sampler.py", line 108, in init__
"value, but got num_samples={}".format(self.num_samples))
ValueError: num_samples should be a positive integer value, but got num_samples=0
{'type': 'RecTextLineDataset', 'file': 'C:/Users/94752/PycharmProjects/ReadMeter/PytorchOCR/icdar2015/text_localization/train_icdar2015_label.txt', 'input_h': 32, 'mean': 0.5, 'std': 0.5, 'augmentation': False, 'alphabet': 'C:/Users/94752/PycharmProjects/ReadMeter/PytorchOCR/torchocr/datasets/alphabets/digit.txt'} RecTextLineDataset Traceback (most recent call last): File "tools/rec_train.py", line 352, in
main()
File "tools/rec_train.py", line 343, in main
train_loader = build_dataloader(cfg.dataset.train)
File "C:\Users\94752\PycharmProjects\ReadMeter\PytorchOCR\torchocr\datasets__init.py", line 79, in build_dataloader
loader = build_loader(dataset, copy_config.loader)
File "C:\Users\94752\PycharmProjects\ReadMeter\PytorchOCR\torchocr\datasets__init__.py", line 48, in build_loader
dataloader_class = eval(dataloader_type)(dataset=dataset, collate_fn=collate_fn, **config)
File "C:\Users\94752\PycharmProjects\ReadMeter\venv\lib\site-packages\torch\utils\data\dataloader.py", line 344, in init
sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type]
File "C:\Users\94752\PycharmProjects\ReadMeter\venv\lib\site-packages\torch\utils\data\sampler.py", line 108, in init__
"value, but got num_samples={}".format(self.num_samples))
ValueError: num_samples should be a positive integer value, but got num_samples=0
请大家帮忙看看,是什么问题,数据的路径我也检查了没有问题,但是还是报错