想问一下关键点检测前后处理用resize代替仿射变换为什么结果可视化时位置不对。 #1195
-
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
This is the my test which compares with resize and warpaffine. |
Beta Was this translation helpful? Give feedback.
-
@ping-Huang old brother有微信吗,请教下,我测试的后处理用resize代替,关键点映射回原图有偏移。 |
Beta Was this translation helpful? Give feedback.
-
What postprocessing do you use? |
Beta Was this translation helpful? Give feedback.
-
@ping-Huang TopDownAffine |
Beta Was this translation helpful? Give feedback.
-
I've try some experiments below. If you only want to use resize, you should get center, width and height there. I'm not sure why the input image should get the 1.25 times background padding. Hope this experiment will be helpful for you. |
Beta Was this translation helpful? Give feedback.
-
Thanks @ping-Huang |
Beta Was this translation helpful? Give feedback.
I've try some experiments below.
I'm not sure the left image is the bias which you means.
If you only want to use resize, you should get center, width and height there.
Then, using 1.25 times of width and height to crop the image.
Finally, you can resize the crop image to model inputs.
I'm not sure why the input image should get the 1.25 times background padding.
Hope this experiment will be helpful for you.