yolov1_config.py 690 B

1234567891011121314151617181920212223242526272829303132
  1. # YOLOv1 Config
  2. yolov1_cfg = {
  3. # input
  4. 'trans_type': 'ssd',
  5. 'multi_scale': [0.5, 1.5],
  6. # model
  7. 'backbone': 'resnet18',
  8. 'pretrained': True,
  9. 'stride': 32, # P5
  10. 'max_stride': 32,
  11. # neck
  12. 'neck': 'sppf',
  13. 'expand_ratio': 0.5,
  14. 'pooling_size': 5,
  15. 'neck_act': 'lrelu',
  16. 'neck_norm': 'BN',
  17. 'neck_depthwise': False,
  18. # head
  19. 'head': 'decoupled_head',
  20. 'head_act': 'lrelu',
  21. 'head_norm': 'BN',
  22. 'num_cls_head': 2,
  23. 'num_reg_head': 2,
  24. 'head_depthwise': False,
  25. # loss weight
  26. 'loss_obj_weight': 1.0,
  27. 'loss_cls_weight': 1.0,
  28. 'loss_box_weight': 5.0,
  29. # training configuration
  30. 'trainer_type': 'yolo',
  31. }