diff --git a/components/hand_detect/yolo_v3_hand.py b/components/hand_detect/yolo_v3_hand.py index 00024409b9d1221524d3ea191116a877d95ff938..4161426b238701471d7ebaf0327b41637a571746 100644 --- a/components/hand_detect/yolo_v3_hand.py +++ b/components/hand_detect/yolo_v3_hand.py @@ -249,7 +249,7 @@ class yolo_v3_hand_model(object): self.nms_thres = nms_thres #----------------------------------------------------------------------- weights = model_path - if "-tiny" in model_arch: + if "tiny" in model_arch: a_scalse = 416./img_size anchors=[(10, 14), (23, 27), (37, 58), (81, 82), (135, 169), (344, 319)] anchors_new = [ (int(anchors[j][0]/a_scalse),int(anchors[j][1]/a_scalse)) for j in range(len(anchors)) ]