pedestrian-attribute-recognition-with-GCN icon indicating copy to clipboard operation
pedestrian-attribute-recognition-with-GCN copied to clipboard

engine.py

Open SissiW opened this issue 5 years ago • 5 comments

运行到该文件的line204时一直出现错误:非法指令 (核心已转储)。 我进行跟踪测试发现,该行函数调用结束时就立刻出现这个错误,执行不了下一行代码。 请问这里为什么会出现这样的情况?是不是需要修改才能正确运行?

SissiW avatar May 18 '20 06:05 SissiW

不应该啊,估计是反向传播异常,可能pytorch出问题了吧;又或者你可以看下这个链接, 模型代码取自于此,你看看这个代码能不能运行,CVPR2019的代码应该比较权威的:https://github.com/Megvii-Nanjing/ML-GCN

2014gaokao avatar May 18 '20 07:05 2014gaokao

ML-GCN的代码我运行过,是可以的,没有出现这样的问题 代码在你的GitHub下载后我没有改动,运行之后一直出现非法指令 (核心已转储)。pytorch版本是按照代码README中要求安装的,不知道你运行代码过程中是否出现这样类似错误?或者你觉得可能是哪里出现问题?

------------------ 原始邮件 ------------------ 发件人: "zhoucongcong"<[email protected]>; 发送时间: 2020年5月18日(星期一) 下午3:27 收件人: "2014gaokao/pedestrian-attribute-recognition-with-GCN"<[email protected]>; 抄送: "-阳光与茉莉??"<[email protected]>;"Author"<[email protected]>; 主题: Re: [2014gaokao/pedestrian-attribute-recognition-with-GCN] engine.py (#10)

不应该啊,估计是反向传播异常,可能pytorch出问题了吧;又或者你可以看下这个链接, 模型代码取自于此,你看看这个代码能不能运行,CVPR2019的代码应该比较权威的:https://github.com/Megvii-Nanjing/ML-GCN

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

SissiW avatar May 18 '20 07:05 SissiW

ML-GCN使用的是pytorch0.3.1版本,你提供的是安装pytorch1.1,所以我安装的也是pytorch1.1。请问你是在pytorch1.1下运行的吗

SissiW avatar May 18 '20 07:05 SissiW

我用的是1.0.0

2014gaokao avatar May 18 '20 07:05 2014gaokao

必须pytorch1.0.0,我的问题已经解决了,非常感谢

SissiW avatar May 18 '20 08:05 SissiW