-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault #394
Comments
抱歉再来打扰一下,我执行train_rotate_WN18RR_adv.py(openke自带的rotate例子)的时候会出现:Finish initializing... |
我也有segmentation fault的错误,请问你是怎么解决的?存储格式也是按照examples里数据集改的 |
train_dataloader = TrainDataLoader( add "/" at the end of in_path line, and then solved the Segmentation fault problem. |
Aipura‘s suggestion is so helpful.Thank you so much! |
请问怎么解决Segmentation fault错误呢 |
我在in_path后面加了/还是报错 |
说一下我的情况,我首次使用openke-pytorch,报错segmentation fault,发现这个版本的代码教程在https://github.com/thunlp/OpenKE/tree/OpenKE-PyTorch,按照这里面的流程,需要先执行cp examples/train_transe_FB15K237.py ./这一步,然后就不会报错了,应该还是路径的问题。 |
我尝试采用https://github.com/yuyuz/MetaQA这个数据集里面的kb.txt(三元组(h,r,t))和python代码构建:
entity2id.txt
relation2id.txt
train2id.txt
test2id.txt
valid2id.txt这几个文件,
我发现kb.txt里面有重复的三元组,我将重复的三元组删除了并且也严格对应要求的(e1,e2,r)对格式进行了修改,而且采用'\t'进行分隔,但还是会报错:Segmentation fault,烦请各位前辈告诉我可能的原因,谢谢!
The text was updated successfully, but these errors were encountered: