Closed fathur-rs closed 4 months ago
so how you slove this question?
Im also getting zero mAP for my custom config file. I wanted to reduce the size to half of the original size of the image. So i added this line in the test_pipeline
dict(type="Resize, scale=0.5, keep_ratio=True)
And it starts giving zero mAP after evaluation. Any suggestions would be helpful.
During your training process, are you also getting 0s for your mAP scores? That's what's happening to me during my actual training
so how you slove this question?
I solved this by changing my activation function to ReLU
I am performing object detection using Cascade R-CNN. I have already trained the model, but when I try to evaluate it using test data, the result is consistently zero.
My code:
!./tools/dist_test.sh configs/cascade_rcnn/cascade-rcnn_x101-64x4d_fpn_1x_coco.py checkpoints/cascade_rcnn_x101_64x4d_fpn_1x_coco_20200515_075702-43ce6a30.pth 1
My configs:
Output:
Accumulating evaluation results... DONE (t=0.29s). Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.000 Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=1000 ] = 0.000 Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=1000 ] = 0.000 Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=1000 ] = 0.000 Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=1000 ] = 0.000 Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=1000 ] = 0.000 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.011 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=300 ] = 0.011 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=1000 ] = 0.011 Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=1000 ] = 0.000 Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=1000 ] = 0.017 Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=1000 ] = 0.002 05/05 10:00:09 - mmengine - INFO - bbox_mAP_copypaste: 0.000 0.000 0.000 0.000 0.000 0.000 05/05 10:00:09 - mmengine - INFO - Results has been saved to results.pkl. 05/05 10:00:09 - mmengine - INFO - Epoch(test) [68/68] coco/bbox_mAP: 0.0000 coco/bbox_mAP_50: 0.0000 coco/bbox_mAP_75: 0.0000 coco/bbox_mAP_s: 0.0000 coco/bbox_mAP_m: 0.0000 coco/bbox_mAP_l: 0.0000 data_time: 0.0036 time: 0.0511
any suggestions is really helpfull