Improved notation of prepare data sets section

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
Jim Martens 2019-08-05 17:48:31 +02:00
parent 1a29d01f3c
commit d354b923e0
1 changed files with 6 additions and 8 deletions

View File

@ -634,8 +634,6 @@ repository.
\section{Preparation of data sets}
% TODO better mathematical/code notation
Usually, data sets are not perfect when it comes to neural
networks: they contain outliers, invalid bounding boxes, and similar
problematic things. Before a data set can be used, these problems
@ -643,12 +641,12 @@ need to be removed.
For the MS COCO data set, all annotations were checked for
impossible values: bounding box height or width lower than zero,
x1 and y1 bounding box coordinates lower than zero,
x2 and y2 coordinates lower than or equal to zero, x1 greater than x2,
y1 greater than y2, image width lower than x2,
and image height lower than y2. In the last two cases the
bounding box width or height was set to (image with - x1) or
(image height - y1) respectively;
\(x_{min}\) and \(y_{min}\) bounding box coordinates lower than zero,
\(x_{max}\) and \(y_{max}\) coordinates lower than or equal to zero, \(x_{min}\) greater than \(x_{max}\),
\(y_{min}\) greater than \(y_{max}\), image width lower than \(x_{max}\),
and image height lower than \(y_{max}\). In the last two cases the
bounding box width or height was set to (image with - \(x_{min}\)) or
(image height - \(y_{min}\)) respectively;
in the other cases the annotation was skipped.
If the bounding box width or height afterwards is
lower than or equal to zero the annotation is skipped.