Skip to content

Commit

Permalink
Add : swin-L backbone config for ATTNet
Browse files Browse the repository at this point in the history
  • Loading branch information
maengjemo committed Feb 13, 2025
1 parent a15e220 commit acb28f8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,34 @@
),
roi_head=dict(
bbox_head=dict(
num_classes=len(classes)
)
num_classes=len(classes),
# test_cfg=dict(
# # Set NMS settings for the bounding boxes
# nms=dict(
# type='nms', # Use Non-Maximum Suppression
# iou_threshold=0.5, # IoU threshold (visualize boxes with IoU > 0.5)
# score_thr=0.7, # Score threshold (only visualize boxes with score >= 70%)
# ),
# max_per_img=100 # Optionally limit the maximum number of boxes per image
# ),
),
),
)


test_cfg = dict(
rcnn=dict(
score_thr=0.7,
nms=dict(type='nms', iou_threshold=0.5),
max_per_img=100),
roi_head = dict(
nms=dict(type='nms', iou_threshold=0.5),
score_thr=0.7
)
)



train_pipeline = [
dict(type='LoadImageFromFile', backend_args=backend_args),
dict(type='LoadThermalImageFromFile', backend_args=backend_args),
Expand Down Expand Up @@ -111,6 +134,12 @@
pipeline=test_pipeline,
backend_args=backend_args))

test_cfg = dict(
rcnn=dict(
score_thr=0.05,
nms=dict(type='nms', iou_threshold=0.5),
max_per_img=100))

test_dataloader = val_dataloader

val_evaluator = [
Expand Down
2 changes: 1 addition & 1 deletion tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def main():

if args.show or args.show_dir:
cfg = trigger_visualization_hook(cfg, args)
cfg.model.test_cfg.nms.iou_threshold = 0.5
# cfg.model.test_cfg.nms.iou_threshold = 0.5
cfg.model.test_cfg.score_thr = 0.7

if args.tta:
Expand Down

0 comments on commit acb28f8

Please sign in to comment.