# YOLOv2 Config yolov2_cfg = { # input 'trans_type': 'ssd', 'multi_scale': [0.5, 1.5], # model 'backbone': 'darknet19', 'pretrained': True, 'stride': 32, # P5 'max_stride': 32, # neck 'neck': 'sppf', 'expand_ratio': 0.5, 'pooling_size': 5, 'neck_act': 'lrelu', 'neck_norm': 'BN', 'neck_depthwise': False, # head 'head': 'decoupled_head', 'head_act': 'lrelu', 'head_norm': 'BN', 'num_cls_head': 2, 'num_reg_head': 2, 'head_depthwise': False, 'anchor_size': [[17, 25], [55, 75], [92, 206], [202, 21], [289, 311]], # 416 # matcher 'iou_thresh': 0.5, # loss weight 'loss_obj_weight': 1.0, 'loss_cls_weight': 1.0, 'loss_box_weight': 5.0, # training configuration 'trainer_type': 'yolov8', }