anastasispk commited on
Commit
dcaf631
·
verified ·
1 Parent(s): 8cc7f52

anastasispk/law-game-rt-detr-without-aug

Browse files
Files changed (5) hide show
  1. README.md +109 -0
  2. config.json +110 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +26 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-replace-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-replace-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
+ - Loss: 6.1558
19
+ - Map: 0.8606
20
+ - Map 50: 0.9369
21
+ - Map 75: 0.8944
22
+ - Map Small: 0.6788
23
+ - Map Medium: 0.8179
24
+ - Map Large: 0.9104
25
+ - Mar 1: 0.6591
26
+ - Mar 10: 0.9264
27
+ - Mar 100: 0.9363
28
+ - Mar Small: 0.7629
29
+ - Mar Medium: 0.8873
30
+ - Mar Large: 0.9805
31
+ - Map Evidence: -1.0
32
+ - Mar 100 Evidence: -1.0
33
+ - Map Ambulance: 0.8897
34
+ - Mar 100 Ambulance: 1.0
35
+ - Map Artificial Target: 0.7624
36
+ - Mar 100 Artificial Target: 0.842
37
+ - Map Cartridge: 0.9261
38
+ - Mar 100 Cartridge: 0.9609
39
+ - Map Gun: 0.8544
40
+ - Mar 100 Gun: 0.9407
41
+ - Map Knife: 0.7789
42
+ - Mar 100 Knife: 0.9111
43
+ - Map Police: 0.9658
44
+ - Mar 100 Police: 0.9909
45
+ - Map Traffic: 0.8471
46
+ - Mar 100 Traffic: 0.9081
47
+
48
+ ## Model description
49
+
50
+ More information needed
51
+
52
+ ## Intended uses & limitations
53
+
54
+ More information needed
55
+
56
+ ## Training and evaluation data
57
+
58
+ More information needed
59
+
60
+ ## Training procedure
61
+
62
+ ### Training hyperparameters
63
+
64
+ The following hyperparameters were used during training:
65
+ - learning_rate: 5e-05
66
+ - train_batch_size: 16
67
+ - eval_batch_size: 8
68
+ - seed: 42
69
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
70
+ - lr_scheduler_type: linear
71
+ - lr_scheduler_warmup_steps: 300
72
+ - num_epochs: 25
73
+
74
+ ### Training results
75
+
76
+ | Training Loss | Epoch | Step | Validation Loss | Map | Map 50 | Map 75 | Map Small | Map Medium | Map Large | Mar 1 | Mar 10 | Mar 100 | Mar Small | Mar Medium | Mar Large | Map Evidence | Mar 100 Evidence | Map Ambulance | Mar 100 Ambulance | Map Artificial Target | Mar 100 Artificial Target | Map Cartridge | Mar 100 Cartridge | Map Gun | Mar 100 Gun | Map Knife | Mar 100 Knife | Map Police | Mar 100 Police | Map Traffic | Mar 100 Traffic |
77
+ |:-------------:|:-----:|:----:|:---------------:|:------:|:------:|:------:|:---------:|:----------:|:---------:|:------:|:------:|:-------:|:---------:|:----------:|:---------:|:------------:|:----------------:|:-------------:|:-----------------:|:---------------------:|:-------------------------:|:-------------:|:-----------------:|:-------:|:-----------:|:---------:|:-------------:|:----------:|:--------------:|:-----------:|:---------------:|
78
+ | No log | 1.0 | 35 | 119.4843 | 0.0171 | 0.0213 | 0.0194 | 0.2 | 0.0 | 0.0259 | 0.0696 | 0.105 | 0.1332 | 0.2 | 0.0049 | 0.1545 | -1.0 | -1.0 | 0.0 | 0.07 | 0.0 | 0.0239 | 0.0024 | 0.1159 | 0.0675 | 0.3148 | 0.0 | 0.0 | 0.0486 | 0.3455 | 0.0011 | 0.0622 |
79
+ | No log | 2.0 | 70 | 46.0144 | 0.0458 | 0.0538 | 0.0501 | 0.0875 | 0.0222 | 0.0767 | 0.1112 | 0.2531 | 0.2703 | 0.175 | 0.2434 | 0.353 | -1.0 | -1.0 | 0.0001 | 0.12 | 0.0 | 0.025 | 0.0902 | 0.4928 | 0.2171 | 0.7963 | 0.0 | 0.0333 | 0.0009 | 0.0909 | 0.012 | 0.3338 |
80
+ | No log | 3.0 | 105 | 25.4936 | 0.1271 | 0.1447 | 0.1309 | 0.2007 | 0.0752 | 0.1792 | 0.348 | 0.6214 | 0.6938 | 0.3324 | 0.566 | 0.7965 | -1.0 | -1.0 | 0.0671 | 1.0 | 0.0061 | 0.4318 | 0.2351 | 0.8986 | 0.424 | 0.8481 | 0.0001 | 0.1037 | 0.0528 | 0.7909 | 0.1043 | 0.7838 |
81
+ | No log | 4.0 | 140 | 17.4027 | 0.3506 | 0.3808 | 0.3699 | 0.3157 | 0.3272 | 0.4382 | 0.5507 | 0.8409 | 0.914 | 0.6548 | 0.8847 | 0.97 | -1.0 | -1.0 | 0.491 | 1.0 | 0.1379 | 0.7727 | 0.4643 | 0.9652 | 0.5941 | 0.9259 | 0.0358 | 0.9 | 0.1813 | 0.9909 | 0.5502 | 0.8432 |
82
+ | No log | 5.0 | 175 | 13.0981 | 0.5715 | 0.6431 | 0.6147 | 0.3826 | 0.5324 | 0.6785 | 0.6057 | 0.8889 | 0.9104 | 0.6731 | 0.8625 | 0.9699 | -1.0 | -1.0 | 0.2185 | 1.0 | 0.6242 | 0.7977 | 0.6615 | 0.9594 | 0.7031 | 0.937 | 0.4577 | 0.8815 | 0.6783 | 0.9636 | 0.657 | 0.8338 |
83
+ | No log | 6.0 | 210 | 9.8088 | 0.6806 | 0.7538 | 0.7161 | 0.5349 | 0.5942 | 0.773 | 0.6042 | 0.9079 | 0.9221 | 0.6726 | 0.8853 | 0.9724 | -1.0 | -1.0 | 0.3941 | 1.0 | 0.6908 | 0.8273 | 0.7376 | 0.9652 | 0.7793 | 0.9407 | 0.5201 | 0.8926 | 0.9102 | 0.9818 | 0.7322 | 0.8473 |
84
+ | No log | 7.0 | 245 | 8.8216 | 0.7487 | 0.8225 | 0.7958 | 0.5826 | 0.7176 | 0.8305 | 0.6382 | 0.9219 | 0.9327 | 0.6897 | 0.8987 | 0.9817 | -1.0 | -1.0 | 0.6129 | 0.99 | 0.7171 | 0.8352 | 0.8208 | 0.9667 | 0.7454 | 0.9667 | 0.6185 | 0.9185 | 0.9457 | 0.9909 | 0.7807 | 0.8608 |
85
+ | No log | 8.0 | 280 | 8.3152 | 0.7387 | 0.8282 | 0.7854 | 0.5539 | 0.6386 | 0.8111 | 0.6286 | 0.9085 | 0.9203 | 0.6973 | 0.8884 | 0.97 | -1.0 | -1.0 | 0.7464 | 0.98 | 0.7453 | 0.8523 | 0.7368 | 0.9754 | 0.6906 | 0.8963 | 0.5567 | 0.9 | 0.9625 | 0.9909 | 0.7322 | 0.8473 |
86
+ | No log | 9.0 | 315 | 8.0271 | 0.7507 | 0.8329 | 0.7861 | 0.4303 | 0.7425 | 0.8219 | 0.6297 | 0.9099 | 0.9221 | 0.6601 | 0.8799 | 0.9741 | -1.0 | -1.0 | 0.7994 | 1.0 | 0.7105 | 0.8375 | 0.908 | 0.9638 | 0.7222 | 0.9185 | 0.5603 | 0.8963 | 0.7934 | 0.9818 | 0.761 | 0.8568 |
87
+ | No log | 10.0 | 350 | 7.3836 | 0.8069 | 0.8858 | 0.8598 | 0.5962 | 0.7652 | 0.8578 | 0.6583 | 0.9174 | 0.9305 | 0.7109 | 0.8863 | 0.9765 | -1.0 | -1.0 | 0.8612 | 0.99 | 0.7256 | 0.8375 | 0.8643 | 0.9435 | 0.7933 | 0.9556 | 0.6462 | 0.9074 | 0.9651 | 1.0 | 0.7924 | 0.8797 |
88
+ | No log | 11.0 | 385 | 7.0992 | 0.7884 | 0.8623 | 0.8365 | 0.6108 | 0.72 | 0.8425 | 0.652 | 0.9221 | 0.9325 | 0.7746 | 0.8596 | 0.9784 | -1.0 | -1.0 | 0.6614 | 1.0 | 0.7464 | 0.8375 | 0.8852 | 0.9638 | 0.7935 | 0.9444 | 0.6381 | 0.9 | 0.958 | 0.9909 | 0.8359 | 0.8905 |
89
+ | No log | 12.0 | 420 | 6.8150 | 0.8311 | 0.9023 | 0.8725 | 0.669 | 0.6971 | 0.8973 | 0.6614 | 0.9218 | 0.9297 | 0.7375 | 0.8729 | 0.9795 | -1.0 | -1.0 | 0.8192 | 1.0 | 0.7317 | 0.8284 | 0.9071 | 0.9652 | 0.847 | 0.9444 | 0.7102 | 0.8926 | 0.9827 | 0.9909 | 0.8201 | 0.8865 |
90
+ | No log | 13.0 | 455 | 6.8233 | 0.8059 | 0.8887 | 0.855 | 0.6183 | 0.7352 | 0.8584 | 0.6546 | 0.9204 | 0.9373 | 0.749 | 0.907 | 0.9784 | -1.0 | -1.0 | 0.7425 | 1.0 | 0.7673 | 0.8477 | 0.9228 | 0.9696 | 0.7822 | 0.9444 | 0.6529 | 0.9296 | 0.9496 | 0.9818 | 0.8239 | 0.8878 |
91
+ | No log | 14.0 | 490 | 6.3630 | 0.846 | 0.9256 | 0.8802 | 0.7069 | 0.8293 | 0.8865 | 0.6567 | 0.9302 | 0.94 | 0.7688 | 0.9051 | 0.9788 | -1.0 | -1.0 | 0.8227 | 0.99 | 0.7897 | 0.8568 | 0.9308 | 0.9681 | 0.8582 | 0.9667 | 0.7037 | 0.9074 | 0.9812 | 0.9909 | 0.8353 | 0.9 |
92
+ | 28.2156 | 15.0 | 525 | 6.5539 | 0.8429 | 0.9275 | 0.879 | 0.7012 | 0.7347 | 0.8956 | 0.6511 | 0.922 | 0.934 | 0.7511 | 0.8869 | 0.9806 | -1.0 | -1.0 | 0.8379 | 1.0 | 0.7408 | 0.842 | 0.9382 | 0.9609 | 0.8507 | 0.9481 | 0.7207 | 0.9111 | 0.9885 | 0.9909 | 0.8238 | 0.8851 |
93
+ | 28.2156 | 16.0 | 560 | 6.5136 | 0.8584 | 0.9424 | 0.8977 | 0.5746 | 0.7191 | 0.9366 | 0.6587 | 0.923 | 0.9335 | 0.7484 | 0.8956 | 0.9777 | -1.0 | -1.0 | 0.9519 | 1.0 | 0.7597 | 0.8352 | 0.9529 | 0.9681 | 0.8676 | 0.9481 | 0.6954 | 0.9148 | 0.9565 | 0.9818 | 0.8244 | 0.8865 |
94
+ | 28.2156 | 17.0 | 595 | 6.5016 | 0.8485 | 0.9239 | 0.8885 | 0.6277 | 0.6735 | 0.9134 | 0.659 | 0.9254 | 0.9354 | 0.7547 | 0.8961 | 0.9771 | -1.0 | -1.0 | 0.8849 | 1.0 | 0.7587 | 0.8455 | 0.8845 | 0.9377 | 0.8528 | 0.9519 | 0.7347 | 0.9148 | 0.9667 | 0.9909 | 0.8573 | 0.9068 |
95
+ | 28.2156 | 18.0 | 630 | 6.3646 | 0.8578 | 0.9353 | 0.9029 | 0.6721 | 0.7682 | 0.9048 | 0.6596 | 0.9295 | 0.9388 | 0.749 | 0.9035 | 0.9791 | -1.0 | -1.0 | 0.8813 | 1.0 | 0.7718 | 0.8545 | 0.9227 | 0.9623 | 0.8639 | 0.9407 | 0.7484 | 0.9148 | 0.9685 | 0.9909 | 0.8477 | 0.9081 |
96
+ | 28.2156 | 19.0 | 665 | 6.4713 | 0.8416 | 0.9145 | 0.8795 | 0.655 | 0.8024 | 0.9015 | 0.6615 | 0.9251 | 0.931 | 0.7468 | 0.8892 | 0.9759 | -1.0 | -1.0 | 0.8499 | 1.0 | 0.7561 | 0.8295 | 0.911 | 0.942 | 0.8345 | 0.9407 | 0.7233 | 0.9148 | 0.9885 | 0.9909 | 0.8279 | 0.8986 |
97
+ | 28.2156 | 20.0 | 700 | 6.2151 | 0.8625 | 0.9363 | 0.9097 | 0.6794 | 0.8366 | 0.9028 | 0.6597 | 0.9317 | 0.9387 | 0.749 | 0.9108 | 0.9796 | -1.0 | -1.0 | 0.8864 | 1.0 | 0.7642 | 0.8557 | 0.9326 | 0.9681 | 0.8468 | 0.9407 | 0.7893 | 0.9333 | 0.9877 | 0.9909 | 0.8307 | 0.8824 |
98
+ | 28.2156 | 21.0 | 735 | 6.4336 | 0.8499 | 0.9323 | 0.8777 | 0.7083 | 0.7923 | 0.8995 | 0.6544 | 0.924 | 0.9354 | 0.7574 | 0.8926 | 0.9786 | -1.0 | -1.0 | 0.8723 | 1.0 | 0.7675 | 0.8455 | 0.9055 | 0.9565 | 0.8626 | 0.937 | 0.7265 | 0.9111 | 0.9812 | 0.9909 | 0.8339 | 0.9068 |
99
+ | 28.2156 | 22.0 | 770 | 6.3538 | 0.8537 | 0.9382 | 0.8927 | 0.6982 | 0.8073 | 0.8992 | 0.6417 | 0.9257 | 0.9359 | 0.7876 | 0.8986 | 0.9764 | -1.0 | -1.0 | 0.9561 | 1.0 | 0.7723 | 0.8602 | 0.923 | 0.958 | 0.8213 | 0.937 | 0.6975 | 0.9037 | 0.9634 | 0.9909 | 0.8426 | 0.9014 |
100
+ | 28.2156 | 23.0 | 805 | 6.3940 | 0.8446 | 0.9314 | 0.8863 | 0.7057 | 0.821 | 0.8936 | 0.6551 | 0.9313 | 0.9383 | 0.7876 | 0.8986 | 0.9793 | -1.0 | -1.0 | 0.8612 | 1.0 | 0.782 | 0.8568 | 0.9048 | 0.9449 | 0.8244 | 0.9407 | 0.7331 | 0.9296 | 0.9607 | 0.9909 | 0.8462 | 0.9054 |
101
+ | 28.2156 | 24.0 | 840 | 6.2954 | 0.8545 | 0.9355 | 0.8843 | 0.6942 | 0.8114 | 0.9093 | 0.6545 | 0.9217 | 0.9344 | 0.7534 | 0.8987 | 0.9765 | -1.0 | -1.0 | 0.8646 | 1.0 | 0.7586 | 0.842 | 0.9314 | 0.9522 | 0.8379 | 0.937 | 0.7682 | 0.9148 | 0.9776 | 0.9909 | 0.843 | 0.9041 |
102
+ | 28.2156 | 25.0 | 875 | 6.1558 | 0.8606 | 0.9369 | 0.8944 | 0.6788 | 0.8179 | 0.9104 | 0.6591 | 0.9264 | 0.9363 | 0.7629 | 0.8873 | 0.9805 | -1.0 | -1.0 | 0.8897 | 1.0 | 0.7624 | 0.842 | 0.9261 | 0.9609 | 0.8544 | 0.9407 | 0.7789 | 0.9111 | 0.9658 | 0.9909 | 0.8471 | 0.9081 |
103
+
104
+
105
+ ### Framework versions
106
+
107
+ - Transformers 4.44.0.dev0
108
+ - Pytorch 2.3.1+cu121
109
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ },
74
+ "initializer_bias_prior_prob": null,
75
+ "initializer_range": 0.01,
76
+ "is_encoder_decoder": true,
77
+ "label2id": {
78
+ "ambulance": 1,
79
+ "artificial_target": 2,
80
+ "cartridge": 3,
81
+ "evidence": 0,
82
+ "gun": 4,
83
+ "knife": 5,
84
+ "police": 6,
85
+ "traffic": 7
86
+ },
87
+ "label_noise_ratio": 0.5,
88
+ "layer_norm_eps": 1e-05,
89
+ "learn_initial_query": false,
90
+ "matcher_alpha": 0.25,
91
+ "matcher_bbox_cost": 5.0,
92
+ "matcher_class_cost": 2.0,
93
+ "matcher_gamma": 2.0,
94
+ "matcher_giou_cost": 2.0,
95
+ "model_type": "rt_detr",
96
+ "normalize_before": false,
97
+ "num_denoising": 100,
98
+ "num_feature_levels": 3,
99
+ "num_queries": 300,
100
+ "positional_encoding_temperature": 10000,
101
+ "torch_dtype": "float32",
102
+ "transformers_version": "4.44.0.dev0",
103
+ "use_focal_loss": true,
104
+ "use_pretrained_backbone": false,
105
+ "use_timm_backbone": false,
106
+ "weight_loss_bbox": 5.0,
107
+ "weight_loss_giou": 2.0,
108
+ "weight_loss_vfl": 1.0,
109
+ "with_box_refine": true
110
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8f8f501559c45258259708c7d74c8f6f8993c4553047e4e4c323d2c7ebbe439
3
+ size 171584000
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:5f934f764e34c36fa47c15d790b021801c6e96ebe5316336fca9e9b5283bc261
3
+ size 5240