Letter box is disabled in the darknet.py by defualt

This commit is contained in:
AlexeyAB
2018-06-04 22:11:05 +03:00
parent 3eb58c51b9
commit 1e512b2308
4 changed files with 5 additions and 4 deletions

View File

@ -640,7 +640,8 @@ void free_detections(detection *dets, int n)
float *network_predict_image(network *net, image im)
{
image imr = letterbox_image(im, net->w, net->h);
//image imr = letterbox_image(im, net->w, net->h);
image imr = resize_image(im, net->w, net->h);
set_batch_network(net, 1);
float *p = network_predict(*net, imr.data);
free_image(imr);