calculate the box original width and height #222
+29
−13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
在浏览issue的时候看到一个有意思的讨论 #145
很显然,适当的调整后处理的一些参数会带来更好的效果。
但是大家都没有讨论过unclip_ratio 这个参数,在原始的代码中,使用的是默认的参数1.5
但是对于不同的数据集,不同的宽高比,这个参数带来的误差还是比较大的,起码在我的数据集中是这样的。
既然新矩形的宽高是通过旧矩形通过固定过程裁剪出来的,我们就可以尝试计算二次方程来通过新的宽高求解原始宽高。
我尝试了一下,效果很不错。在我的数据集上,这种自适应的宽高,将F1从88.75%提高到了90.39%
限于时间和算力,我没有在其他数据集上进行评测,但是我觉得会有不错的效果。