Open imsazzad opened 6 years ago
width in cfg-file
, and 1.5 x height in cfg-file
. Where is 1.5 - a multiplier during data augmentation when random=1
in your cfg-file. Also you should follow the rule: https://github.com/AlexeyAB/darknet#how-to-improve-object-detectionGeneral rule - your training dataset should include such a set of relative sizes of objects that you want to detect:
train_network_width * train_obj_width / train_image_width ~= detection_network_width * detection_obj_width / detection_image_width
train_network_height * train_obj_height / train_image_height ~= detection_network_height * detection_obj_height / detection_image_height
cvResize(src_image, dst_image, CV_INTER_CUBIC);
cv::resize(src_image, dst_image, cv::Size(new_w, new_h), 0, 0, CV_INTER_CUBIC);
dst_image= cv2.resize(src_image, (new_w, new_h), interpolation=CV_INTER_CUBIC)
I have some images of various height and width which you implementation can easily handle, I know. it gave an excellent result on my dataset. Thank you/ :1st_place_medal: .But I want to resize the image before giving it to the Yolo as it takes huge memory( width- height: 2000 +,2000+). So my questions are :
Thanks in advance