From 8bd7dcbd581b666b61306012efc1de2f99050054 Mon Sep 17 00:00:00 2001 From: AlexeyAB Date: Sun, 5 Jan 2020 14:04:11 +0300 Subject: [PATCH] Minor fix --- src/data.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/data.c b/src/data.c index 6fa37846..c83c6877 100644 --- a/src/data.c +++ b/src/data.c @@ -948,6 +948,10 @@ data load_data_detection(int n, char **paths, int m, int w, int h, int c, int bo c = c ? c : 3; assert(use_mixup != 2); + if (use_mixup == 3 && letter_box) { + printf("\n Combination: letter_box=1 & mosaic=1 - isn't supported, use only 1 of these parameters \n"); + exit(0); + } if (random_gen() % 2 == 0) use_mixup = 0; int i;