ZFTurbo / Weighted-Boxes-Fusion

Set of methods to ensemble boxes from different object detection models, including implementation of "Weighted boxes fusion (WBF)" method.
MIT License
1.7k stars 237 forks source link

Rotate Box #20

Open ZeKunZhang1998 opened 3 years ago

ZeKunZhang1998 commented 3 years ago

Hello,How to use it in rotate boxes?

ZFTurbo commented 3 years ago

WBF doesn't support rotated boxes yet. It will be good if you provide some small example.

euminds commented 3 years ago

WBF doesn't support rotated boxes yet. It will be good if you provide some small example. For the rotating box, if the algorithm can get the coordinates of the four corners of the bbox, it can still follow the traditional bbox method. Just when calculating the average coordinate point, change [x1,y1,x2,y2] to [x1,y1,x2,y2,x3,y3,x4,y4].

ZeKunZhang1998 commented 3 years ago

Hi,I want to transform [x1,y1,x2,y2,x3,y3,x4,y4] to [x,y,w,h,theta], and use your WBF

euminds commented 3 years ago

Sorry, I still modify the code

------------------ 原始邮件 ------------------ 发件人: "ZhangZekun"<notifications@github.com>; 发送时间: 2020年11月2日(星期一) 中午1:27 收件人: "ZFTurbo/Weighted-Boxes-Fusion"<Weighted-Boxes-Fusion@noreply.github.com>; 抄送: "戎锦涛"<1501225407@qq.com>; "Comment"<comment@noreply.github.com>; 主题: Re: [ZFTurbo/Weighted-Boxes-Fusion] Rotate Box (#20)

Hi,I want to transform [x1,y1,x2,y2,x3,y3,x4,y4] to [x,y,w,h,theta], and use your WBF

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

ZeKunZhang1998 commented 3 years ago

I have implement it , but is not perfect.How do you do that .I think,you should keep the sequence of [x1,y1,x2,y2,x3,y3,x4,y4] in all boxes the same. It is difficult.

euminds commented 3 years ago

Can you send me a code?  Our target detection method uses AerialDetection (https://github.com/dingjiansw101/AerialDetection).&nbsp; The result obtained based on this method includes the category, the confidence score, and the coordinates of the four corners.

------------------ 原始邮件 ------------------ 发件人: "ZhangZekun"<notifications@github.com>; 发送时间: 2020年11月2日(星期一) 中午1:31 收件人: "ZFTurbo/Weighted-Boxes-Fusion"<Weighted-Boxes-Fusion@noreply.github.com>; 抄送: "戎锦涛"<1501225407@qq.com>; "Comment"<comment@noreply.github.com>; 主题: Re: [ZFTurbo/Weighted-Boxes-Fusion] Rotate Box (#20)

I have implement it , but is not perfect.How do you do that .I think,you should keep the sequence of [x1,y1,x2,y2,x3,y3,x4,y4] in all boxes the same. It is difficult.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

euminds commented 3 years ago

I have implement it , but is not perfect.How do you do that .I think,you should keep the sequence of [x1,y1,x2,y2,x3,y3,x4,y4] in all boxes the same. It is difficult.

Can you send me a WBF about sequence of [x1,y1,x2,y2,x3,y3,x4,y4] implemention?

euminds commented 3 years ago

WBF doesn't support rotated boxes yet. It will be good if you provide some small example.

I tried to solve the problem of Rotate Boxes. There is no problem in debugging, but I am not sure whether the result is correct. So I hope the author can provide an e-mail address. I will provide the code. it is the result of Traditional WBF: 3 [[0.10666665 0.31666666 0.71333331 0.62 ] [0. 0.51 0.81 0.91 ] [0.04 0.56 0.84 0.92 ]] it is the result of Rotate Box WBF: 3 [[0.10666665 0.62 0.10666665 0.31666666 0.71333331 0.31666666 0.71333331 0.62 ] [0. 0.91 0. 0.51 0.81 0.51 0.81 0.91 ] [0.04 0.92 0.04 0.56 0.84 0.56 0.84 0.92 ]]

Astesias commented 2 years ago

Is this project realized now