2014gaokao / pedestrian-attribute-recognition-with-GCN

Pytorch implementation of pedestrian attribute recognition with graph convolutional network
77 stars 17 forks source link

engine.py #10

Open SissiW opened 4 years ago

SissiW commented 4 years ago

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

2014gaokao commented 4 years ago

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

SissiW commented 4 years ago

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

------------------ 原始邮件 ------------------ 发件人: "zhoucongcong"<notifications@github.com>; 发送时间: 2020年5月18日(星期一) 下午3:27 收件人: "2014gaokao/pedestrian-attribute-recognition-with-GCN"<pedestrian-attribute-recognition-with-GCN@noreply.github.com>; 抄送: "-阳光与茉莉??"<971539734@qq.com>;"Author"<author@noreply.github.com>; 主题: 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 commented 4 years ago

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

2014gaokao commented 4 years ago

我用的是1.0.0

SissiW commented 4 years ago

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