Fix for multi-GPU and DGX

This commit is contained in:
AlexeyAB
2018-06-03 14:21:15 +03:00
parent 4cf4a89f05
commit 483fdfa951

View File

@ -106,7 +106,7 @@ void train_detector(char *datacfg, char *cfgfile, char *weightfile, int *gpus, i
args.hue = net.hue;
#ifdef OPENCV
args.threads = 3;
args.threads = 3 * ngpus;
IplImage* img = NULL;
float max_img_loss = 5;
int number_of_lines = 100;