Raghavan commited on
Commit
2e7c6fe
1 Parent(s): a07511c

Upload 3 files

Browse files
fast_base_ic17mlt_640.py ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ model = dict(
2
+ type='FAST',
3
+ backbone=dict(
4
+ type='fast_backbone',
5
+ config='config/fast/nas-configs/fast_base.config'
6
+ ),
7
+ neck=dict(
8
+ type='fast_neck',
9
+ config='config/fast/nas-configs/fast_base.config'
10
+ ),
11
+ detection_head=dict(
12
+ type='fast_head',
13
+ config='config/fast/nas-configs/fast_base.config',
14
+ pooling_size=9,
15
+ loss_text=dict(
16
+ type='DiceLoss',
17
+ loss_weight=0.5
18
+ ),
19
+ loss_kernel=dict(
20
+ type='DiceLoss',
21
+ loss_weight=1.0
22
+ ),
23
+ loss_emb=dict(
24
+ type='EmbLoss_v1',
25
+ feature_dim=4,
26
+ loss_weight=0.25
27
+ )
28
+ )
29
+ )
30
+ repeat_times = 10
31
+ data = dict(
32
+ batch_size=16,
33
+ train=dict(
34
+ type='FAST_IC17MLT',
35
+ split='train',
36
+ is_transform=True,
37
+ img_size=640,
38
+ short_size=640,
39
+ pooling_size=9,
40
+ read_type='cv2',
41
+ repeat_times=repeat_times
42
+ ),
43
+ test=dict(
44
+ type='FAST_IC17MLT',
45
+ split='test',
46
+ short_size=640,
47
+ read_type='cv2'
48
+ )
49
+ )
50
+ train_cfg = dict(
51
+ lr=1e-3,
52
+ schedule='polylr',
53
+ epoch=300 // repeat_times,
54
+ optimizer='Adam',
55
+ save_interval=10 // repeat_times,
56
+ pretrain='pretrained/fast_base_in1k_epoch_299.pth'
57
+ # https://github.com/czczup/FAST/releases/download/release/fast_base_in1k_epoch_299.pth
58
+ )
59
+ test_cfg = dict(
60
+ result_path='outputs/submit_ctw/',
61
+ min_area=250,
62
+ min_score=0.88,
63
+ bbox_type='rect',
64
+ )
fast_small_ic17mlt_640.py ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ model = dict(
2
+ type='FAST',
3
+ backbone=dict(
4
+ type='fast_backbone',
5
+ config='config/fast/nas-configs/fast_small.config'
6
+ ),
7
+ neck=dict(
8
+ type='fast_neck',
9
+ config='config/fast/nas-configs/fast_small.config'
10
+ ),
11
+ detection_head=dict(
12
+ type='fast_head',
13
+ config='config/fast/nas-configs/fast_small.config',
14
+ pooling_size=9,
15
+ loss_text=dict(
16
+ type='DiceLoss',
17
+ loss_weight=0.5
18
+ ),
19
+ loss_kernel=dict(
20
+ type='DiceLoss',
21
+ loss_weight=1.0
22
+ ),
23
+ loss_emb=dict(
24
+ type='EmbLoss_v1',
25
+ feature_dim=4,
26
+ loss_weight=0.25
27
+ )
28
+ )
29
+ )
30
+ repeat_times = 10
31
+ data = dict(
32
+ batch_size=16,
33
+ train=dict(
34
+ type='FAST_IC17MLT',
35
+ split='train',
36
+ is_transform=True,
37
+ img_size=640,
38
+ short_size=640,
39
+ pooling_size=9,
40
+ read_type='cv2',
41
+ repeat_times=repeat_times,
42
+ ),
43
+ test=dict(
44
+ type='FAST_IC17MLT',
45
+ split='test',
46
+ short_size=640,
47
+ read_type='cv2'
48
+ )
49
+ )
50
+ train_cfg = dict(
51
+ lr=1e-3,
52
+ schedule='polylr',
53
+ epoch=300 // repeat_times,
54
+ optimizer='Adam',
55
+ save_interval=10 // repeat_times,
56
+ pretrain='pretrained/fast_small_in1k_epoch_299.pth'
57
+ # https://github.com/czczup/FAST/releases/download/release/fast_small_in1k_epoch_299.pth
58
+ )
59
+ test_cfg = dict(
60
+ result_path='outputs/submit_ctw/',
61
+ min_area=250,
62
+ min_score=0.88,
63
+ bbox_type='rect',
64
+ )
fast_tiny_ic17mlt_640.py ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ model = dict(
2
+ type='FAST',
3
+ backbone=dict(
4
+ type='fast_backbone',
5
+ config='config/fast/nas-configs/fast_tiny.config'
6
+ ),
7
+ neck=dict(
8
+ type='fast_neck',
9
+ config='config/fast/nas-configs/fast_tiny.config'
10
+ ),
11
+ detection_head=dict(
12
+ type='fast_head',
13
+ config='config/fast/nas-configs/fast_tiny.config',
14
+ pooling_size=9,
15
+ loss_text=dict(
16
+ type='DiceLoss',
17
+ loss_weight=0.5
18
+ ),
19
+ loss_kernel=dict(
20
+ type='DiceLoss',
21
+ loss_weight=1.0
22
+ ),
23
+ loss_emb=dict(
24
+ type='EmbLoss_v1',
25
+ feature_dim=4,
26
+ loss_weight=0.25
27
+ )
28
+ )
29
+ )
30
+ repeat_times = 10
31
+ data = dict(
32
+ batch_size=16,
33
+ train=dict(
34
+ type='FAST_IC17MLT',
35
+ split='train',
36
+ is_transform=True,
37
+ img_size=640,
38
+ short_size=640,
39
+ pooling_size=9,
40
+ read_type='cv2',
41
+ repeat_times=repeat_times,
42
+ ),
43
+ test=dict(
44
+ type='FAST_IC17MLT',
45
+ split='valid',
46
+ short_size=640,
47
+ read_type='cv2'
48
+ )
49
+ )
50
+ train_cfg = dict(
51
+ lr=1e-3,
52
+ schedule='polylr',
53
+ epoch=300 // repeat_times,
54
+ optimizer='Adam',
55
+ save_interval=10 // repeat_times,
56
+ pretrain='/Users/eaxxkra/Downloads/fast_tiny_ic17mlt_640.pth'
57
+ # https://github.com/czczup/FAST/releases/download/release/fast_tiny_in1k_epoch_299.pth
58
+ )
59
+ test_cfg = dict(
60
+ result_path='outputs/submit_ctw/',
61
+ min_area=250,
62
+ min_score=0.88,
63
+ bbox_type='rect',
64
+ )