Skip to content
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

按照指示配置完所需库,但无法执行demo.py #21

Closed
AIR-hl opened this issue Mar 19, 2023 · 10 comments
Closed

按照指示配置完所需库,但无法执行demo.py #21

AIR-hl opened this issue Mar 19, 2023 · 10 comments

Comments

@AIR-hl
Copy link

AIR-hl commented Mar 19, 2023

由于本机显卡原因,pytorch为1.10.0的GPU版,其余库均按指示要求配置,运行demo.py出现如下问题
image

@Modberge
Copy link
Collaborator

你好,目前截图的报错信息似乎并不完整,能否提供完整的异常信息呢?

@AIR-hl
Copy link
Author

AIR-hl commented Mar 19, 2023

image
没事可以不用劳烦了,Colab上的示例可以正常运行,我可以尝试用Colab完成我的工作🙇‍

@hmy11111
Copy link

hmy11111 commented Apr 6, 2023

您好,我也同样遇到配置完环境后无法成功运行demo.py的问题,我的报错如下:
image

@AIR-hl
Copy link
Author

AIR-hl commented Apr 6, 2023

可能是你的windows系统编码问题,不过我还是建议你直接使用colab,NeuralKG的提供的colab示例是可以正常使用

@hmy11111
Copy link

hmy11111 commented Apr 6, 2023

好的,谢谢您,我尝试一下

@hmy11111
Copy link

hmy11111 commented Apr 7, 2023

很抱歉来麻烦您,我还是想询问下以上编码报错有没有什么方法可以解决呢

@yjq12
Copy link

yjq12 commented May 6, 2023

很抱歉来麻烦您,我还是想询问下以上编码报错有没有什么方法可以解决呢

您好 我用windows编译也遇见了同样的问题, 请问您最后解决了吗?

@yjq12
Copy link

yjq12 commented May 6, 2023

由于本机显卡原因,pytorch为1.10.0的GPU版,其余库均按指示要求配置,运行demo.py出现如下问题 image

在TransE_demo_kg.yaml中将num_workers值改为0
eb62f449c9622ab873ae22182470250

@yjq12
Copy link

yjq12 commented May 6, 2023

很抱歉来麻烦您,我还是想询问下以上编码报错有没有什么方法可以解决呢

您好 我用windows编译也遇见了同样的问题, 请问您最后解决了吗?

已经解决。打开文件时加上encoding=’utf-8‘
4cb13cd43c058dc8c7e7bae50a41fdf
6f27877474646cd848fb6a095f71a52
e2db6207910ad20a31d4332c1fd5548

@yjq12
Copy link

yjq12 commented May 6, 2023

此外 使用windows系统可能还会出现文件名无效的问题:
0a7f5d7ba4c5e971b9d77bf1bdf9eda
在demo.py中将文件名Eval|mrr改为Eval_mrr(不能有|):
fc8ae497240416932facd709559d501

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants