Skip to content

Commit

Permalink
[dev] clean code of s2anet (PaddlePaddle#3733)
Browse files Browse the repository at this point in the history
* clean code of s2anet

* fix for paddle==2.1.0

* remove debug info

* update comment
  • Loading branch information
cnn authored Jul 21, 2021
1 parent ed52601 commit ce7f8ab
Show file tree
Hide file tree
Showing 2 changed files with 209 additions and 184 deletions.
8 changes: 4 additions & 4 deletions configs/dota/_base_/s2anet.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
architecture: S2ANet
pretrain_weights: https://paddledet.bj.bcebos.com/models/pretrained/ResNet50_cos_pretrained.pdparams
pretrain_weights: https://paddledet.bj.bcebos.com/models/pretrained/ResNet50_vd_ssld_v2_pretrained.pdparams
weights: output/s2anet_r50_fpn_1x_dota/model_final.pdparams


Expand All @@ -12,6 +12,7 @@ S2ANet:

ResNet:
depth: 50
variant: d
norm_type: bn
return_idx: [1,2,3]
num_stages: 4
Expand All @@ -33,11 +34,9 @@ S2ANetHead:
feat_in: 256
feat_out: 256
num_classes: 15
align_conv_type: 'Conv' # AlignConv Conv
align_conv_type: 'AlignConv' # AlignConv Conv
align_conv_size: 3
use_sigmoid_cls: True
reg_loss_weight: [ 1.0, 1.0, 1.0, 1.0, 1.1 ]
cls_loss_weight: [ 1.1, 1.05 ]

RBoxAssigner:
pos_iou_thr: 0.5
Expand All @@ -54,3 +53,4 @@ S2ANetBBoxPostProcess:
score_threshold: 0.05
nms_threshold: 0.1
normalized: False
#background_label: -1
Loading

0 comments on commit ce7f8ab

Please sign in to comment.