You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

rpn_r50_caffe_fpn_1x_coco.py 1.4 kB

2 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041
  1. _base_ = './rpn_r50_fpn_1x_coco.py'
  2. model = dict(
  3. backbone=dict(
  4. norm_cfg=dict(requires_grad=False),
  5. norm_eval=True,
  6. style='caffe',
  7. init_cfg=dict(
  8. type='Pretrained',
  9. checkpoint='open-mmlab://detectron2/resnet50_caffe')))
  10. # use caffe img_norm
  11. img_norm_cfg = dict(
  12. mean=[103.530, 116.280, 123.675], std=[1.0, 1.0, 1.0], to_rgb=False)
  13. train_pipeline = [
  14. dict(type='LoadImageFromFile'),
  15. dict(type='LoadAnnotations', with_bbox=True, with_label=False),
  16. dict(type='Resize', img_scale=(1333, 800), keep_ratio=True),
  17. dict(type='RandomFlip', flip_ratio=0.5),
  18. dict(type='Normalize', **img_norm_cfg),
  19. dict(type='Pad', size_divisor=32),
  20. dict(type='DefaultFormatBundle'),
  21. dict(type='Collect', keys=['img', 'gt_bboxes']),
  22. ]
  23. test_pipeline = [
  24. dict(type='LoadImageFromFile'),
  25. dict(
  26. type='MultiScaleFlipAug',
  27. img_scale=(1333, 800),
  28. flip=False,
  29. transforms=[
  30. dict(type='Resize', keep_ratio=True),
  31. dict(type='RandomFlip'),
  32. dict(type='Normalize', **img_norm_cfg),
  33. dict(type='Pad', size_divisor=32),
  34. dict(type='ImageToTensor', keys=['img']),
  35. dict(type='Collect', keys=['img']),
  36. ])
  37. ]
  38. data = dict(
  39. train=dict(pipeline=train_pipeline),
  40. val=dict(pipeline=test_pipeline),
  41. test=dict(pipeline=test_pipeline))

No Description

Contributors (3)