Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PaddlePaddle Hackathon] Task 71: Mask-RCNN compression #4564

Closed
wants to merge 2 commits into from

Conversation

gbstack
Copy link
Contributor

@gbstack gbstack commented Nov 12, 2021

PR types

New features

PR changes

APIs

Describe

Hi,

This PR add pruning for Mask-RCNN.

The new pruning configuration file is located at configs/slim/prune/mask_rcnn_r50_prune_fpgm.yml.

The model parameters count ratio after pruning is 0.8.

For improving training, 5 epoches (learning rate will be decreased by 10 times at epoch 3) are used and learning rate is 1/10 of original learning rate. And weight decay is set to 0 according to this post: https://docs.nvidia.com/tao/tao-toolkit/text/instance_segmentation/mask_rcnn.html#pruning-the-model.

Test result at epoch 3

Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.320
Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets=100 ] = 0.506
Average Precision  (AP) @[ IoU=0.75      | area=   all | maxDets=100 ] = 0.338
Average Precision  (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.171
Average Precision  (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.364
Average Precision  (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.417
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=  1 ] = 0.291
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets= 10 ] = 0.459
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.479
Average Recall     (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.272
Average Recall     (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.537
Average Recall     (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.620

@lyuwenyu
Copy link
Collaborator

这个有最后的结果嘛

@jerrywgz
Copy link
Collaborator

https://github.com/PaddlePaddle/PaddleDetection/tree/develop/configs/slim 文档里补充下最终模型训练精度和速度对比吧

@gbstack
Copy link
Contributor Author

gbstack commented Nov 18, 2021

这个有最后的结果嘛

目前训练到了epoch 3

@gbstack
Copy link
Contributor Author

gbstack commented Nov 18, 2021

https://github.com/PaddlePaddle/PaddleDetection/tree/develop/configs/slim 文档里补充下最终模型训练精度和速度对比吧

好的

@lyuwenyu
Copy link
Collaborator

目前训练到了epoch 3

要不训练完吧

@gbstack
Copy link
Contributor Author

gbstack commented Nov 19, 2021

目前训练到了epoch 3

要不训练完吧

好的,正在训练

@gbstack
Copy link
Contributor Author

gbstack commented Nov 22, 2021

最后的训练结果是这样的

epoch 4

Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.320
Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=100 ] = 0.505
Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=100 ] = 0.338
Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.171
Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.364
Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.417
Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 1 ] = 0.290
Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 10 ] = 0.459
Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.479
Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.272
Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.537
Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.620

@paddle-bot paddle-bot bot closed this Feb 6, 2024
Copy link

paddle-bot bot commented Feb 6, 2024

Automatically closed by Paddle-bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants