diff --git a/tools/im2rec.cc b/tools/im2rec.cc index 3d082eff..beb514b5 100644 --- a/tools/im2rec.cc +++ b/tools/im2rec.cc @@ -78,7 +78,7 @@ int main(int argc, char *argv[]) { if (new_size > 0) { cv::resize(img, res, cv::Size(new_size, new_size), 0, 0, CV_INTER_CUBIC); - } else { + } else { res = img; } encode_buf.clear();