From 7826bdbb911213d4a350c55a93d6fc29a4b7188a Mon Sep 17 00:00:00 2001 From: karamel Date: Tue, 3 Nov 2020 16:57:55 +0100 Subject: [PATCH] Update bbox coordinate research to prevent x and y inversion --- docs/source/scripts/generate_tfrecord.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/scripts/generate_tfrecord.py b/docs/source/scripts/generate_tfrecord.py index caad456..463427d 100644 --- a/docs/source/scripts/generate_tfrecord.py +++ b/docs/source/scripts/generate_tfrecord.py @@ -85,10 +85,10 @@ def xml_to_csv(path): int(root.find('size')[0].text), int(root.find('size')[1].text), member[0].text, - int(member[4][0].text), - int(member[4][1].text), - int(member[4][2].text), - int(member[4][3].text) + int(member[4].find('xmin').text), + int(member[4].find('ymin').text), + int(member[4].find('xmax').text), + int(member[4].find('ymax').text) ) xml_list.append(value) column_name = ['filename', 'width', 'height', pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy