Minor fix

This commit is contained in:
AlexeyAB 2020-01-05 14:04:11 +03:00
parent 2652263727
commit 8bd7dcbd58
1 changed files with 4 additions and 0 deletions

View File

@ -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;