anastasispk commited on
Commit
d30706b
·
verified ·
1 Parent(s): 2ddf9e8

anastasispk/law-game-rt-detr

Browse files
Files changed (5) hide show
  1. README.md +85 -0
  2. config.json +112 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +26 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: PekingU/rtdetr_r50vd_coco_o365
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: law-game-evidence-replacement-finetune
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # law-game-evidence-replacement-finetune
15
+
16
+ This model is a fine-tuned version of [PekingU/rtdetr_r50vd_coco_o365](https://huggingface.co/PekingU/rtdetr_r50vd_coco_o365) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - eval_loss: 3.4253
19
+ - eval_map: 0.8264
20
+ - eval_map_50: 0.8488
21
+ - eval_map_75: 0.8441
22
+ - eval_map_small: 0.5688
23
+ - eval_map_medium: 0.9527
24
+ - eval_map_large: 0.8547
25
+ - eval_mar_1: 0.7043
26
+ - eval_mar_10: 0.9575
27
+ - eval_mar_100: 0.9727
28
+ - eval_mar_small: 0.5949
29
+ - eval_mar_medium: 0.9738
30
+ - eval_mar_large: 0.9894
31
+ - eval_map_evidence: -1.0
32
+ - eval_mar_100_evidence: -1.0
33
+ - eval_map_ambulance: 0.9802
34
+ - eval_mar_100_ambulance: 0.9899
35
+ - eval_map_artificial_target: 0.9267
36
+ - eval_mar_100_artificial_target: 0.9572
37
+ - eval_map_cartridge: 0.9742
38
+ - eval_mar_100_cartridge: 0.9949
39
+ - eval_map_gun: 0.9165
40
+ - eval_mar_100_gun: 0.9403
41
+ - eval_map_knife: 0.8599
42
+ - eval_mar_100_knife: 0.931
43
+ - eval_map_police: 0.9935
44
+ - eval_mar_100_police: 0.9959
45
+ - eval_map_traffic: 0.9586
46
+ - eval_mar_100_traffic: 0.9726
47
+ - eval_map_traffic_cone: 0.0013
48
+ - eval_mar_100_traffic_cone: 1.0
49
+ - eval_runtime: 50.5267
50
+ - eval_samples_per_second: 16.467
51
+ - eval_steps_per_second: 2.058
52
+ - epoch: 28.0
53
+ - step: 5152
54
+
55
+ ## Model description
56
+
57
+ More information needed
58
+
59
+ ## Intended uses & limitations
60
+
61
+ More information needed
62
+
63
+ ## Training and evaluation data
64
+
65
+ More information needed
66
+
67
+ ## Training procedure
68
+
69
+ ### Training hyperparameters
70
+
71
+ The following hyperparameters were used during training:
72
+ - learning_rate: 5e-05
73
+ - train_batch_size: 16
74
+ - eval_batch_size: 8
75
+ - seed: 42
76
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
77
+ - lr_scheduler_type: linear
78
+ - lr_scheduler_warmup_steps: 300
79
+ - num_epochs: 50
80
+
81
+ ### Framework versions
82
+
83
+ - Transformers 4.44.0.dev0
84
+ - Pytorch 2.3.1+cu121
85
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "PekingU/rtdetr_r50vd_coco_o365",
3
+ "activation_dropout": 0.0,
4
+ "activation_function": "silu",
5
+ "anchor_image_size": null,
6
+ "architectures": [
7
+ "RTDetrForObjectDetection"
8
+ ],
9
+ "attention_dropout": 0.0,
10
+ "auxiliary_loss": true,
11
+ "backbone": null,
12
+ "backbone_config": {
13
+ "model_type": "rt_detr_resnet",
14
+ "out_features": [
15
+ "stage2",
16
+ "stage3",
17
+ "stage4"
18
+ ],
19
+ "out_indices": [
20
+ 2,
21
+ 3,
22
+ 4
23
+ ]
24
+ },
25
+ "backbone_kwargs": null,
26
+ "batch_norm_eps": 1e-05,
27
+ "box_noise_scale": 1.0,
28
+ "d_model": 256,
29
+ "decoder_activation_function": "relu",
30
+ "decoder_attention_heads": 8,
31
+ "decoder_ffn_dim": 1024,
32
+ "decoder_in_channels": [
33
+ 256,
34
+ 256,
35
+ 256
36
+ ],
37
+ "decoder_layers": 6,
38
+ "decoder_n_points": 4,
39
+ "disable_custom_kernels": true,
40
+ "dropout": 0.0,
41
+ "encode_proj_layers": [
42
+ 2
43
+ ],
44
+ "encoder_activation_function": "gelu",
45
+ "encoder_attention_heads": 8,
46
+ "encoder_ffn_dim": 1024,
47
+ "encoder_hidden_dim": 256,
48
+ "encoder_in_channels": [
49
+ 512,
50
+ 1024,
51
+ 2048
52
+ ],
53
+ "encoder_layers": 1,
54
+ "eos_coefficient": 0.0001,
55
+ "eval_size": null,
56
+ "feat_strides": [
57
+ 8,
58
+ 16,
59
+ 32
60
+ ],
61
+ "focal_loss_alpha": 0.75,
62
+ "focal_loss_gamma": 2.0,
63
+ "hidden_expansion": 1.0,
64
+ "id2label": {
65
+ "0": "evidence",
66
+ "1": "ambulance",
67
+ "2": "artificial_target",
68
+ "3": "cartridge",
69
+ "4": "gun",
70
+ "5": "knife",
71
+ "6": "police",
72
+ "7": "traffic",
73
+ "8": "traffic_cone"
74
+ },
75
+ "initializer_bias_prior_prob": null,
76
+ "initializer_range": 0.01,
77
+ "is_encoder_decoder": true,
78
+ "label2id": {
79
+ "ambulance": 1,
80
+ "artificial_target": 2,
81
+ "cartridge": 3,
82
+ "evidence": 0,
83
+ "gun": 4,
84
+ "knife": 5,
85
+ "police": 6,
86
+ "traffic": 7,
87
+ "traffic_cone": 8
88
+ },
89
+ "label_noise_ratio": 0.5,
90
+ "layer_norm_eps": 1e-05,
91
+ "learn_initial_query": false,
92
+ "matcher_alpha": 0.25,
93
+ "matcher_bbox_cost": 5.0,
94
+ "matcher_class_cost": 2.0,
95
+ "matcher_gamma": 2.0,
96
+ "matcher_giou_cost": 2.0,
97
+ "model_type": "rt_detr",
98
+ "normalize_before": false,
99
+ "num_denoising": 100,
100
+ "num_feature_levels": 3,
101
+ "num_queries": 300,
102
+ "positional_encoding_temperature": 10000,
103
+ "torch_dtype": "float32",
104
+ "transformers_version": "4.44.0.dev0",
105
+ "use_focal_loss": true,
106
+ "use_pretrained_backbone": false,
107
+ "use_timm_backbone": false,
108
+ "weight_loss_bbox": 5.0,
109
+ "weight_loss_giou": 2.0,
110
+ "weight_loss_vfl": 1.0,
111
+ "with_box_refine": true
112
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8cbec5cda1ddefe8f9daaeba676ff68063648b0b7c9e9ab38aa67a7c63dc5df0
3
+ size 171592228
preprocessor_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_annotations": true,
3
+ "do_normalize": false,
4
+ "do_pad": false,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "format": "coco_detection",
8
+ "image_mean": [
9
+ 0.485,
10
+ 0.456,
11
+ 0.406
12
+ ],
13
+ "image_processor_type": "RTDetrImageProcessor",
14
+ "image_std": [
15
+ 0.229,
16
+ 0.224,
17
+ 0.225
18
+ ],
19
+ "pad_size": null,
20
+ "resample": 2,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "size": {
23
+ "height": 480,
24
+ "width": 480
25
+ }
26
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8555611b571efdf412a9dedc609daeb79ad133b76bc2cda49e7cc6eefce53577
3
+ size 5240