jbwang1997 / OBBDetection

OBBDetection is an oriented object detection library, which is based on MMdetection.
Apache License 2.0
520 stars 111 forks source link

After fixing the seed, the training results still cannot be reproduced. 固定seed后训练结果仍不能被复现 #116

Open Amberrferr opened 2 years ago

Amberrferr commented 2 years ago

我尝试固定random seed, 并将deterministic设置为true, 但是网络结果仍然没有被复现,第一次map=72.6, 第二次map=73.3, 我想问一下原因出在哪里? 该怎样做才可以将训练结果复现呢? 我使用的命令行为: python tools/train.py configs/obb/gliding_vertex/gliding_vertex_r50_fpn_1x_dota10.py --seed 8 --deterministic

jbwang1997 commented 2 years ago

我在写程序的时候没有注意随机数的固定,可能一些操作打破了原本 mmdetection 随机数的设定导致随机数无法固定。

a1b2c3s4d4 commented 2 years ago

我尝试固定random seed, 并将deterministic设置为true, 但是网络结果仍然没有被复现,第一次map=72.6, 第二次map=73.3, 我想问一下原因出在哪里? 该怎样做才可以将训练结果复现呢? 我使用的命令行为: python tools/train.py configs/obb/gliding_vertex/gliding_vertex_r50_fpn_1x_dota10.py --seed 8 --deterministic

请问现在结果复现出来了吗?