From a284a7da8d1facbf984a22302665a2a50295a687 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Wed, 08 Aug 2018 16:08:58 +0000
Subject: [PATCH] Try to use avx_hs() - slow and requires alignment 4096 bits < (l.size*l.size*l.c) May be faster only from 8192 bits and more.
---
scripts/voc_label_difficult.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/scripts/voc_label_difficult.py b/scripts/voc_label_difficult.py
index 93e57fe..cfffce3 100644
--- a/scripts/voc_label_difficult.py
+++ b/scripts/voc_label_difficult.py
@@ -10,10 +10,10 @@
def convert(size, box):
- dw = 1./size[0]
- dh = 1./size[1]
- x = (box[0] + box[1])/2.0
- y = (box[2] + box[3])/2.0
+ dw = 1./(size[0])
+ dh = 1./(size[1])
+ x = (box[0] + box[1])/2.0 - 1
+ y = (box[2] + box[3])/2.0 - 1
w = box[1] - box[0]
h = box[3] - box[2]
x = x*dw
--
Gitblit v1.10.0