如何解决小行星EOFError
我正在尝试使用 ssp (https://github.com/russellizadi/ssp) 来减少数据集 Cora 的 SOTA。但是我得到了以下异常:
Traceback (most recent call last):
File "D:/School/Papers/GNN/2021_05_06 Node Classification SOTA/ssp/experiments/gcn.py",line 96,in <module>
dataset = get_planetoid_dataset(name=args.dataset,normalize_features=args.normalize_features,split=args.split)
File "...\ssp\experiments\datasets.py",line 17,in get_planetoid_dataset
dataset = Planetoid(path,name,split=split)
File "...\site-packages\torch_geometric\datasets\planetoid.py",line 55,in __init__
super(Planetoid,self).__init__(root,transform,pre_transform)
File "...\site-packages\torch_geometric\data\in_memory_dataset.py",line 54,in __init__
pre_filter)
File "...\site-packages\torch_geometric\data\dataset.py",line 92,in __init__
self._process()
File "...\site-packages\torch_geometric\data\dataset.py",line 165,in _process
self.process()
File "...\site-packages\torch_geometric\datasets\planetoid.py",line 108,in process
data = read_planetoid_data(self.raw_dir,self.name)
File "...\site-packages\torch_geometric\io\planetoid.py",line 19,in read_planetoid_data
items = [read_file(folder,prefix,name) for name in names]
File "...\site-packages\torch_geometric\io\planetoid.py",in <listcomp>
items = [read_file(folder,line 66,in read_file
out = pickle.load(f,encoding='latin1')
EOFError: Ran out of input
我打印路径并确保我拥有所有数据集文件。所以我想知道为什么会发生这种情况,以及如何处理它?谢谢。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。