jeetv commited on
Commit
476386e
·
verified ·
1 Parent(s): a3e98bd

Create config.yaml

Browse files
Files changed (1) hide show
  1. config.yaml +132 -0
config.yaml ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ TASK: localization
2
+
3
+ dali: True
4
+
5
+ DATA:
6
+ dataset_name: SoccerNet
7
+ data_dir: /home/vorajv/opensportslib/SoccerNet/annotations/
8
+ classes:
9
+ - PASS
10
+ - DRIVE
11
+ - HEADER
12
+ - HIGH PASS
13
+ - OUT
14
+ - CROSS
15
+ - THROW IN
16
+ - SHOT
17
+ - BALL PLAYER BLOCK
18
+ - PLAYER SUCCESSFUL TACKLE
19
+ - FREE KICK
20
+ - GOAL
21
+
22
+ epoch_num_frames: 500000
23
+ mixup: true
24
+ modality: rgb
25
+ crop_dim: -1
26
+ dilate_len: 0 # Dilate ground truth labels
27
+ clip_len: 100
28
+ input_fps: 25
29
+ extract_fps: 2
30
+ imagenet_mean: [0.485, 0.456, 0.406]
31
+ imagenet_std: [0.229, 0.224, 0.225]
32
+ target_height: 224
33
+ target_width: 398
34
+
35
+ train:
36
+ type: VideoGameWithDali
37
+ classes: ${DATA.classes}
38
+ output_map: [data, label]
39
+ video_path: ${DATA.data_dir}/train/
40
+ path: ${DATA.train.video_path}/annotations-2024-224p-train.json
41
+ dataloader:
42
+ batch_size: 8
43
+ shuffle: true
44
+ num_workers: 4
45
+ pin_memory: true
46
+
47
+ valid:
48
+ type: VideoGameWithDali
49
+ classes: ${DATA.classes}
50
+ output_map: [data, label]
51
+ video_path: ${DATA.data_dir}/valid/
52
+ path: ${DATA.valid.video_path}/annotations-2024-224p-valid.json
53
+ dataloader:
54
+ batch_size: 8
55
+ shuffle: true
56
+
57
+ valid_data_frames:
58
+ type: VideoGameWithDaliVideo
59
+ classes: ${DATA.classes}
60
+ output_map: [data, label]
61
+ video_path: ${DATA.valid.video_path}
62
+ path: ${DATA.valid.path}
63
+ overlap_len: 0
64
+ dataloader:
65
+ batch_size: 4
66
+ shuffle: false
67
+
68
+ test:
69
+ type: VideoGameWithDaliVideo
70
+ classes: ${DATA.classes}
71
+ output_map: [data, label]
72
+ video_path: ${DATA.data_dir}/test/
73
+ path: ${DATA.test.video_path}/annotations-2024-224p-test.json
74
+ results: results_spotting_test
75
+ nms_window: 2
76
+ metric: tight
77
+ overlap_len: 50
78
+ dataloader:
79
+ batch_size: 4
80
+ shuffle: false
81
+
82
+ challenge:
83
+ type: VideoGameWithDaliVideo
84
+ overlap_len: 50
85
+ output_map: [data, label]
86
+ path: ${DATA.data_dir}/challenge/annotations.json
87
+ dataloader:
88
+ batch_size: 4
89
+ shuffle: false
90
+
91
+ MODEL:
92
+ type: E2E
93
+ runner:
94
+ type: runner_e2e
95
+ backbone:
96
+ type: rny008_gsm
97
+ head:
98
+ type: gru
99
+ multi_gpu: true
100
+ load_weights: null
101
+
102
+ TRAIN:
103
+ type: trainer_e2e
104
+ num_epochs: 10
105
+ acc_grad_iter: 1
106
+ base_num_valid_epochs: 4
107
+ start_valid_epoch: 4
108
+ valid_map_every: 1
109
+ criterion_valid: map
110
+
111
+ criterion:
112
+ type: CrossEntropyLoss
113
+
114
+ optimizer:
115
+ type: AdamWithScaler
116
+ lr: 0.01
117
+
118
+ scheduler:
119
+ type: ChainedSchedulerE2E
120
+ acc_grad_iter: 1
121
+ num_epochs: ${TRAIN.num_epochs}
122
+ warm_up_epochs: 3
123
+
124
+ SYSTEM:
125
+ log_dir: ./logs
126
+ save_dir: ./checkpoints
127
+ work_dir: ${SYSTEM.save_dir}
128
+ seed: 42
129
+ GPU: 4 # number of gpus to use
130
+ device: cuda # auto | cuda | cpu
131
+ gpu_id: 0 # device id for single gpu training
132
+