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.

faster_rcnn_r50_fpn_1x_cityscapes.py 1.5 kB

2 years ago
123456789101112131415161718192021222324252627282930313233343536373839
  1. _base_ = [
  2. '../_base_/models/faster_rcnn_r50_fpn.py',
  3. '../_base_/datasets/cityscapes_detection.py',
  4. '../_base_/default_runtime.py'
  5. ]
  6. model = dict(
  7. backbone=dict(init_cfg=None),
  8. roi_head=dict(
  9. bbox_head=dict(
  10. type='Shared2FCBBoxHead',
  11. in_channels=256,
  12. fc_out_channels=1024,
  13. roi_feat_size=7,
  14. num_classes=8,
  15. bbox_coder=dict(
  16. type='DeltaXYWHBBoxCoder',
  17. target_means=[0., 0., 0., 0.],
  18. target_stds=[0.1, 0.1, 0.2, 0.2]),
  19. reg_class_agnostic=False,
  20. loss_cls=dict(
  21. type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0),
  22. loss_bbox=dict(type='SmoothL1Loss', beta=1.0, loss_weight=1.0))))
  23. # optimizer
  24. # lr is set for a batch size of 8
  25. optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001)
  26. optimizer_config = dict(grad_clip=None)
  27. # learning policy
  28. lr_config = dict(
  29. policy='step',
  30. warmup='linear',
  31. warmup_iters=500,
  32. warmup_ratio=0.001,
  33. # [7] yields higher performance than [6]
  34. step=[7])
  35. runner = dict(
  36. type='EpochBasedRunner', max_epochs=8) # actual epoch = 8 * 8 = 64
  37. log_config = dict(interval=100)
  38. # For better, more stable performance initialize from COCO
  39. load_from = 'https://download.openmmlab.com/mmdetection/v2.0/faster_rcnn/faster_rcnn_r50_fpn_1x_coco/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth' # noqa

No Description

Contributors (2)