Dark-Chocolate icon indicating copy to clipboard operation
Dark-Chocolate copied to clipboard

Difference between the conversion math and the output data

Open yunxdai opened this issue 3 years ago • 1 comments

Hello, I found the math of the conversion described in the README is conflicted with the example result you provided above. In the example, the first coordinate in the output is 0.8265625, but following the math, it should be (x + bbox_width / 2) / img_width) = (529 + 89 / 2) / 640 = 0.89609375. Actually, I found 0.8265625 is equal to x / img_width. When I go through the code, the implementation of the conversion equation seems to be right. Moreover, the label files provided in your FLIR_Object_Detection repo also did't follow the conversion equation shown in the README. Therefore, I am writing to find out how the current results, as well as those labels in another repo, are generated, and which one should I use, the existing labels or the conversion equations?

yunxdai avatar May 21 '21 06:05 yunxdai

Hey - thanks for the find. Give me some time to look into this and get back to you.

On Fri, May 21, 2021 at 1:41 AM Yunx Dai @.***> wrote:

Hello, I found the math of the conversion described in the README is conflicted with the example result you provided above. In the example, the first coordinate in the output is 0.8265625, but following the math, it should be (x + bbox_width / 2) / img_width) = (529 + 89 / 2) / 640 = 0.89609375. Actually, I found 0.8265625 is equal to x / img_width. When I go through the code, the implementation of the conversion equation seems to be right. Moreover, the label files provided in your FLIR_Object_Detection repo https://github.com/joehoeller/Object-Detection-on-Thermal-Images also did't follow the conversion equation shown in the README. Therefore, I am writing to find out how the current results, as well as those labels in another repo, are generated, and which one should I use, the existing labels or the conversion equations?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/joehoeller/Dark-Chocolate/issues/6, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHVQHGFM4AXIKAWTXMXHLLTOX6AHANCNFSM45IQWZCQ .

daddydrac avatar May 21 '21 11:05 daddydrac