Hello! Thank you for your work! However, such a problem occurred when I reproduced your code. When I tried to train the COCO dataset, the Labels, P, R, mAP50, and mAP90 in the val of each training were all Zero. Since I made a few changes, I'm not sure what the problem is, and I'll show my changes below.
Additional context
Here are the changes I made to address the error in the original code
1.Data set format
![Uploading b083cea0aa52d1903d9351b1d3c9f04.jpg…]()
.....
3.loss.py
Under the 'def build_targets' function of loss.py
① anchors = self.anchors[i] Replace with anchors, shape = self.anchors[i], p[i].shape
②
indices.append((b, a, gj.clamp_(0, gain[3] - 1), gi.clamp_(0, gain[2] - 1))) # image, anchor, grid indices
Replace with
indices.append((b, a, gj.clamp_(0, shape[2] - 1), gi.clamp_(0, shape[3] - 1)))
I am not sure whether it is the above problem or other reasons that cause the labels, P, R and map values in Val to be 0. If you have any suggestions, please let me know. If you need to provide any other information, I will be happy to do so
❔Question
Hello! Thank you for your work! However, such a problem occurred when I reproduced your code. When I tried to train the COCO dataset, the Labels, P, R, mAP50, and mAP90 in the val of each training were all Zero. Since I made a few changes, I'm not sure what the problem is, and I'll show my changes below.
Additional context
Here are the changes I made to address the error in the original code
1.Data set format ![Uploading b083cea0aa52d1903d9351b1d3c9f04.jpg…]()
2.My configuration environment Windows 2080 cunda=11.6
..... 3.loss.py Under the 'def build_targets' function of loss.py
I am not sure whether it is the above problem or other reasons that cause the labels, P, R and map values in Val to be 0. If you have any suggestions, please let me know. If you need to provide any other information, I will be happy to do so