Upload DetrForObjectDetection
Browse files- README.md +8 -8
- config.json +87 -0
- model.safetensors +3 -0
README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
---
|
| 2 |
license: bsd-3-clause
|
| 3 |
language:
|
| 4 |
-
|
| 5 |
tags:
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
pipeline_tag: object-detection
|
| 12 |
metrics:
|
| 13 |
-
|
| 14 |
widget:
|
| 15 |
-
|
| 16 |
---
|
| 17 |
|
| 18 |
# opencode-r1
|
|
|
|
| 1 |
---
|
| 2 |
license: bsd-3-clause
|
| 3 |
language:
|
| 4 |
+
- en
|
| 5 |
tags:
|
| 6 |
+
- object-detection
|
| 7 |
+
- faster-rcnn
|
| 8 |
+
- resnet50
|
| 9 |
+
- document-layout
|
| 10 |
+
- historical-newspapers
|
| 11 |
pipeline_tag: object-detection
|
| 12 |
metrics:
|
| 13 |
+
- 0.3251
|
| 14 |
widget:
|
| 15 |
+
- src: https://datasets-server.huggingface.co/cached-assets/biglam/loc_beyond_words/--/6c7f5fb3c60f02d9fe925cfc14aa7008f6c89099/--/default/train/0/image/image.jpg
|
| 16 |
---
|
| 17 |
|
| 18 |
# opencode-r1
|
config.json
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_dropout": 0.0,
|
| 3 |
+
"activation_function": "relu",
|
| 4 |
+
"architectures": [
|
| 5 |
+
"DetrForObjectDetection"
|
| 6 |
+
],
|
| 7 |
+
"attention_dropout": 0.0,
|
| 8 |
+
"auxiliary_loss": false,
|
| 9 |
+
"backbone_config": {
|
| 10 |
+
"backbone": "resnet50",
|
| 11 |
+
"dtype": "float32",
|
| 12 |
+
"features_only": true,
|
| 13 |
+
"freeze_batch_norm_2d": false,
|
| 14 |
+
"model_type": "timm_backbone",
|
| 15 |
+
"num_channels": 3,
|
| 16 |
+
"out_features": [
|
| 17 |
+
"layer1",
|
| 18 |
+
"layer2",
|
| 19 |
+
"layer3",
|
| 20 |
+
"layer4"
|
| 21 |
+
],
|
| 22 |
+
"out_indices": [
|
| 23 |
+
1,
|
| 24 |
+
2,
|
| 25 |
+
3,
|
| 26 |
+
4
|
| 27 |
+
],
|
| 28 |
+
"output_stride": null,
|
| 29 |
+
"stage_names": [
|
| 30 |
+
"act1",
|
| 31 |
+
"layer1",
|
| 32 |
+
"layer2",
|
| 33 |
+
"layer3",
|
| 34 |
+
"layer4"
|
| 35 |
+
],
|
| 36 |
+
"use_pretrained_backbone": false
|
| 37 |
+
},
|
| 38 |
+
"bbox_cost": 5,
|
| 39 |
+
"bbox_loss_coefficient": 5,
|
| 40 |
+
"class_cost": 1,
|
| 41 |
+
"classifier_dropout": 0.0,
|
| 42 |
+
"d_model": 256,
|
| 43 |
+
"decoder_attention_heads": 8,
|
| 44 |
+
"decoder_ffn_dim": 2048,
|
| 45 |
+
"decoder_layerdrop": 0.0,
|
| 46 |
+
"decoder_layers": 6,
|
| 47 |
+
"dice_loss_coefficient": 1,
|
| 48 |
+
"dilation": false,
|
| 49 |
+
"dropout": 0.1,
|
| 50 |
+
"dtype": "float32",
|
| 51 |
+
"encoder_attention_heads": 8,
|
| 52 |
+
"encoder_ffn_dim": 2048,
|
| 53 |
+
"encoder_layerdrop": 0.0,
|
| 54 |
+
"encoder_layers": 6,
|
| 55 |
+
"eos_coefficient": 0.1,
|
| 56 |
+
"giou_cost": 2,
|
| 57 |
+
"giou_loss_coefficient": 2,
|
| 58 |
+
"id2label": {
|
| 59 |
+
"0": "Photograph",
|
| 60 |
+
"1": "Illustration",
|
| 61 |
+
"2": "Map",
|
| 62 |
+
"3": "Comics/Cartoon",
|
| 63 |
+
"4": "Editorial Cartoon",
|
| 64 |
+
"5": "Headline",
|
| 65 |
+
"6": "Advertisement"
|
| 66 |
+
},
|
| 67 |
+
"init_std": 0.02,
|
| 68 |
+
"init_xavier_std": 1.0,
|
| 69 |
+
"is_encoder_decoder": true,
|
| 70 |
+
"label2id": {
|
| 71 |
+
"Advertisement": 6,
|
| 72 |
+
"Comics/Cartoon": 3,
|
| 73 |
+
"Editorial Cartoon": 4,
|
| 74 |
+
"Headline": 5,
|
| 75 |
+
"Illustration": 1,
|
| 76 |
+
"Map": 2,
|
| 77 |
+
"Photograph": 0
|
| 78 |
+
},
|
| 79 |
+
"mask_loss_coefficient": 1,
|
| 80 |
+
"max_position_embeddings": 1024,
|
| 81 |
+
"model_type": "detr",
|
| 82 |
+
"num_channels": 3,
|
| 83 |
+
"num_queries": 100,
|
| 84 |
+
"position_embedding_type": "sine",
|
| 85 |
+
"scale_embedding": false,
|
| 86 |
+
"transformers_version": "5.14.1"
|
| 87 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f753e3743c4b1b1856df3b0d0e72ac6e66277cac3a3b6a398be612ac020e7f0
|
| 3 |
+
size 166500992
|