motokimura/yolo_v1_pytorch

randomg scaling question..

HERIUN opened this issue · 0 comments

in voc.py

def random_scale(self, img, boxes):

WHY
img = cv2.resize(img, dsize=(int(w * scale), h), interpolation=cv2.INTER_LINEAR)

I suggest
img = cv2.resize(img, dsize=(int(w * scale), int(h * scale)), interpolation=cv2.INTER_LINEAR)