-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Fix] Bug in post dark udp #1079
Conversation
Thank you very much for your contribution. We will review the PR asap. |
Codecov Report
@@ Coverage Diff @@
## dev-0.22 #1079 +/- ##
===========================================
Coverage ? 83.37%
===========================================
Files ? 196
Lines ? 15165
Branches ? 2741
===========================================
Hits ? 12644
Misses ? 1827
Partials ? 694
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
@@ -3,6 +3,7 @@ | |||
|
|||
import cv2 | |||
import numpy as np | |||
import math |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use np for math ops
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
already done
already done. |
a7c3794
to
aa64e70
Compare
* update fap (open-mmlab#1070) * fix a bug in post_dark_udp * fix a bug in post_dark_udp * Modified a bad comment * add unit test for udp * add unit test for udp * use numpy instead math for math ops * fix lint Co-authored-by: Jas <jinsheng@sensetime.com> Co-authored-by: quyang <quyang@qiyi.com> Co-authored-by: ly015 <liyining0712@gmail.com>
You should take into account that it is invalid use of copyMakeBorder: opencv/opencv#21274 (comment) |
Thanks @qtboi |
* update fap (#1070) * fix a bug in post_dark_udp * fix a bug in post_dark_udp * Modified a bad comment * add unit test for udp * add unit test for udp * use numpy instead math for math ops * fix lint Co-authored-by: Jas <jinsheng@sensetime.com> Co-authored-by: quyang <quyang@qiyi.com> Co-authored-by: ly015 <liyining0712@gmail.com>
* update fap (#1070) * fix a bug in post_dark_udp * fix a bug in post_dark_udp * Modified a bad comment * add unit test for udp * add unit test for udp * use numpy instead math for math ops * fix lint Co-authored-by: Jas <jinsheng@sensetime.com> Co-authored-by: quyang <quyang@qiyi.com> Co-authored-by: ly015 <liyining0712@gmail.com>
Hi @X00123!First of all, we want to express our gratitude for your significant PR in the MMPose project. Your contribution is highly appreciated, and we are grateful for your efforts in helping improve this open-source project during your personal time. We believe that many developers will benefit from your PR. We would also like to invite you to join our Special Interest Group (SIG) private channel on Discord, where you can share your experiences, ideas, and build connections with like-minded peers. To join the SIG channel, simply message moderator— OpenMMLab on Discord or briefly share your open-source contributions in the #introductions channel and we will assist you. Look forward to seeing you there! Join us :https://discord.gg/UjgXkPWNqA If you have WeChat account,welcome to join our community on WeChat. You can add our assistant :openmmlabwx. Please add "mmsig + Github ID" as a remark when adding friends:) |
* update fap (open-mmlab#1070) * fix a bug in post_dark_udp * fix a bug in post_dark_udp * Modified a bad comment * add unit test for udp * add unit test for udp * use numpy instead math for math ops * fix lint Co-authored-by: Jas <jinsheng@sensetime.com> Co-authored-by: quyang <quyang@qiyi.com> Co-authored-by: ly015 <liyining0712@gmail.com>
* update fap (open-mmlab#1070) * fix a bug in post_dark_udp * fix a bug in post_dark_udp * Modified a bad comment * add unit test for udp * add unit test for udp * use numpy instead math for math ops * fix lint Co-authored-by: Jas <jinsheng@sensetime.com> Co-authored-by: quyang <quyang@qiyi.com> Co-authored-by: ly015 <liyining0712@gmail.com>
Motivation
Met a bug when training with udp, look like this
Review the code and find that cv2.copMakeBorder will report an error when input dimension exceeds 512
In the raw code, the author directly use cv2.copyMakeBorder to operate batch of heatmaps and it crashed
The tested opencv-python version is 4.5.4.60, 4.4.0.40, 4.1.0.25, all have this problem
Complete environmental information is like this
Modification
When the input heatmaps' dimension exceeds 512, split it to operation, and then concat the splitted heatmaps
Use cases (Optional)
Just test this bug with official command line
It doesn't work on the original code, and work well on the new code
Checklist
Before PR:
After PR: