Issues
- 0
data/CNER/里的label为空
#8 opened by CRonaldo1997 - 2
Traceback (most recent call last): File "run.py", line 46, in <module> train_loader = dm.get_dataset(data_type='train') File "/user-data/lm_ner_span-main/DataManager.py", line 34, in get_dataset dataloader = self.data_process(file) File "/user-data/lm_ner_span-main/DataManager.py", line 68, in data_process sampler = RandomSampler(tokenized_datasets) if not torch.cuda.device_count() > 1 else DistributedSampler(tokenized_datasets) File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/sampler.py", line 103, in __init__ raise ValueError("num_samples should be a positive integer " ValueError: num_samples should be a positive integer value, but got num_samples=0 请问这个报错怎么解决啊 好像是dataloader出错了 但是按照网上的解决办法将参数shuffle设置为FALSE还是没办法解决 请问大佬有什么解决办法吗
#3 opened by 20214021016 - 0
- 1
- 0
- 4
对抗学习参数问题
#4 opened by ZZQ908268856 - 0
ValueError: num_samples should be a positive integer value, but got num_samples=0 请问此句报错怎么解决啊
#1 opened by 20214021016 - 0
Traceback (most recent call last): File "run.py", line 46, in <module> train_loader = dm.get_dataset(data_type='train') File "/user-data/lm_ner_span-main/DataManager.py", line 34, in get_dataset dataloader = self.data_process(file) File "/user-data/lm_ner_span-main/DataManager.py", line 68, in data_process sampler = RandomSampler(tokenized_datasets) if not torch.cuda.device_count() > 1 else DistributedSampler(tokenized_datasets) File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/sampler.py", line 103, in __init__ raise ValueError("num_samples should be a positive integer " ValueError: num_samples should be a positive integer value, but got num_samples=0
#2 opened by 20214021016