JDet icon indicating copy to clipboard operation
JDet copied to clipboard

无法开始训练

Open liuyanyi opened this issue 3 years ago • 14 comments

运行训练代码时出现了如下错误

Traceback (most recent call last):
  File "tools/run_net.py", line 47, in <module>
    main()
  File "tools/run_net.py", line 40, in main
    runner.run()
  File "/workspace/JDet/python/jdet/runner/runner.py", line 81, in run
    self.train()
  File "/workspace/JDet/python/jdet/runner/runner.py", line 101, in train
    batch_size = len(targets)**jt.mpi.world_size()
AttributeError: 'NoneType' object has no attribute 'world_size'

根据Jittor官网上的说明,jt.mpi在没有mpi环境时是None,那么单卡环境下如何运行JDet呢

liuyanyi avatar Aug 05 '21 11:08 liuyanyi

可以先把jt.mpi.world_size(),改成1,应该是没有装好mpi导致jt.mpi是None,我们稍后会更新一下jittor,感谢反馈!

li-xl avatar Aug 05 '21 12:08 li-xl

同学你好,现在已经可以用了,更新下jittor和jdet即可。

li-xl avatar Aug 05 '21 12:08 li-xl

感谢您的回复,现在已经可以开始训练了

liuyanyi avatar Aug 05 '21 13:08 liuyanyi

同学你好,现在已经可以用了,更新下jittor和jdet即可。

image 您好,我更新了之后还是有同样的问题。。

Kodapsy avatar Aug 07 '21 03:08 Kodapsy

可以用git clone的方式更新一下jittor,或者直接把jt.world_size替换为1就可以了

祝好

---原始邮件--- 发件人: @.> 发送时间: 2021年8月7日(周六) 中午11:11 收件人: @.>; 抄送: "Xiang-Li @.@.>; 主题: Re: [Jittor/JDet] 无法开始训练 (#3)

同学你好,现在已经可以用了,更新下jittor和jdet即可。

您好,我更新了之后还是有同样的问题。。

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

li-xl avatar Aug 07 '21 03:08 li-xl

可以用git clone的方式更新一下jittor,或者直接把jt.world_size替换为1就可以了 祝好 ---原始邮件--- 发件人: @.> 发送时间: 2021年8月7日(周六) 中午11:11 收件人: @.>; 抄送: "Xiang-Li @.@.>; 主题: Re: [Jittor/JDet] 无法开始训练 (#3) 同学你好,现在已经可以用了,更新下jittor和jdet即可。 您好,我更新了之后还是有同样的问题。。 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

感谢回复,我替换成1可以了。

Kodapsy avatar Aug 07 '21 03:08 Kodapsy

感谢您的回复,现在已经可以开始训练了

你好,我想请问下你的训练结果怎么样,我在dota数据集上提交的结果很差

bangbox2 avatar Aug 12 '21 01:08 bangbox2

感谢您的回复,现在已经可以开始训练了

你好,我想请问下你的训练结果怎么样,我在dota数据集上提交的结果很差

您训练的是哪个模型呢,用的什么脚本呢?

cxjyxxme avatar Aug 12 '21 02:08 cxjyxxme

感谢您的回复,现在已经可以开始训练了

你好,我想请问下你的训练结果怎么样,我在dota数据集上提交的结果很差

我训练的是s2anet,精度上和readme里给的差不太多

liuyanyi avatar Aug 12 '21 03:08 liuyanyi

请问,config是哪个,有修改吗?

祝好

---原始邮件--- 发件人: "Yanyi @.> 发送时间: 2021年8月12日(周四) 中午11:57 收件人: @.>; 抄送: "Xiang-Li @.@.>; 主题: Re: [Jittor/JDet] 无法开始训练 (#3)

感谢您的回复,现在已经可以开始训练了

你好,我想请问下你的训练结果怎么样,我在dota数据集上提交的结果很差

我训练的是s2anet,精度上和readme里给的差不太多

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

li-xl avatar Aug 12 '21 04:08 li-xl

请问,config是哪个,有修改吗? 祝好 ---原始邮件--- 发件人: "Yanyi @.> 发送时间: 2021年8月12日(周四) 中午11:57 收件人: @.>; 抄送: "Xiang-Li @.@.>; 主题: Re: [Jittor/JDet] 无法开始训练 (#3) 感谢您的回复,现在已经可以开始训练了 你好,我想请问下你的训练结果怎么样,我在dota数据集上提交的结果很差 我训练的是s2anet,精度上和readme里给的差不太多 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

我用的是这个config config 应该只修改了数据集的位置,去掉了最后的pretrained_weights

liuyanyi avatar Aug 12 '21 08:08 liuyanyi

请问,config是哪个,有修改吗? 祝好 ---原始邮件--- 发件人: "Yanyi @.> 发送时间: 2021年8月12日(周四) 中午11:57 收件人: @.>; 抄送: "Xiang-Li @.@.>; 主题: Re: [Jittor/JDet] 无法开始训练 (#3) 感谢您的回复,现在已经可以开始训练了 你好,我想请问下你的训练结果怎么样,我在dota数据集上提交的结果很差 我训练的是s2anet,精度上和readme里给的差不太多 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

直接用下面这个训练的 python tools/run_net.py --config-file=configs/s2anet_r50_fpn_1x_dota.py --task=train 之修改了数据集的位置,mAP只有0.01

bangbox2 avatar Aug 12 '21 09:08 bangbox2

那应该没问题,我训过几次都没问题。您方便加群761222083交流,或者把代码发给我我看一下吗,我邮箱:[email protected]

li-xl avatar Aug 12 '21 09:08 li-xl

您好,我觉得mAP这么低可能是图片尺寸的问题,我把s2anet的get_bboxes,rescale默认改成True了,您再试一下?

li-xl avatar Aug 15 '21 02:08 li-xl