Spaces:
Sleeping
Sleeping
Upload 3 files
Browse files- config (1).json +107 -0
- model.safetensors +3 -0
- preprocessor_config.json +26 -0
config (1).json
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
"freeze_backbone_batch_norms": true,
|
| 64 |
+
"hidden_expansion": 1.0,
|
| 65 |
+
"id2label": {
|
| 66 |
+
"0": "Gambling-ads",
|
| 67 |
+
"1": "BK8",
|
| 68 |
+
"2": "Gate-of-olympus",
|
| 69 |
+
"3": "Princess",
|
| 70 |
+
"4": "Starlight-Princess",
|
| 71 |
+
"5": "Zeus"
|
| 72 |
+
},
|
| 73 |
+
"initializer_bias_prior_prob": null,
|
| 74 |
+
"initializer_range": 0.01,
|
| 75 |
+
"is_encoder_decoder": true,
|
| 76 |
+
"label2id": {
|
| 77 |
+
"BK8": 1,
|
| 78 |
+
"Gambling-ads": 0,
|
| 79 |
+
"Gate-of-olympus": 2,
|
| 80 |
+
"Princess": 3,
|
| 81 |
+
"Starlight-Princess": 4,
|
| 82 |
+
"Zeus": 5
|
| 83 |
+
},
|
| 84 |
+
"label_noise_ratio": 0.5,
|
| 85 |
+
"layer_norm_eps": 1e-05,
|
| 86 |
+
"learn_initial_query": false,
|
| 87 |
+
"matcher_alpha": 0.25,
|
| 88 |
+
"matcher_bbox_cost": 5.0,
|
| 89 |
+
"matcher_class_cost": 2.0,
|
| 90 |
+
"matcher_gamma": 2.0,
|
| 91 |
+
"matcher_giou_cost": 2.0,
|
| 92 |
+
"model_type": "rt_detr",
|
| 93 |
+
"normalize_before": false,
|
| 94 |
+
"num_denoising": 100,
|
| 95 |
+
"num_feature_levels": 3,
|
| 96 |
+
"num_queries": 300,
|
| 97 |
+
"positional_encoding_temperature": 10000,
|
| 98 |
+
"torch_dtype": "float32",
|
| 99 |
+
"transformers_version": "4.48.0.dev0",
|
| 100 |
+
"use_focal_loss": true,
|
| 101 |
+
"use_pretrained_backbone": false,
|
| 102 |
+
"use_timm_backbone": false,
|
| 103 |
+
"weight_loss_bbox": 5.0,
|
| 104 |
+
"weight_loss_giou": 2.0,
|
| 105 |
+
"weight_loss_vfl": 1.0,
|
| 106 |
+
"with_box_refine": true
|
| 107 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:84eb08785521db79a2a1117b7c53d2892271975c512feff62446c94c4f58398f
|
| 3 |
+
size 171567560
|
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": 640,
|
| 24 |
+
"width": 640
|
| 25 |
+
}
|
| 26 |
+
}
|