From 06c2b0a542710370e349d2548d318edbdb5f593d Mon Sep 17 00:00:00 2001 From: YYJ-aaaa <1058387004@qq.com> Date: Thu, 2 Jan 2025 13:42:32 +0800 Subject: [PATCH] first commit --- config.json | 42 ++++++++++++++++++++++++++++++++++++++++ preprocessor_config.json | 18 +++++++++++++++++ pytorch_model.bin | 3 +++ 3 files changed, 63 insertions(+) create mode 100644 config.json create mode 100644 preprocessor_config.json create mode 100644 pytorch_model.bin diff --git a/config.json b/config.json new file mode 100644 index 0000000..e41c7a1 --- /dev/null +++ b/config.json @@ -0,0 +1,42 @@ +{ + "_name_or_path": "hustvl/yolos-small", + "architectures": [ + "YolosForObjectDetection" + ], + "attention_probs_dropout_prob": 0.0, + "auxiliary_loss": false, + "bbox_cost": 5, + "bbox_loss_coefficient": 5, + "class_cost": 1, + "eos_coefficient": 0.1, + "giou_cost": 2, + "giou_loss_coefficient": 2, + "hidden_act": "gelu", + "hidden_dropout_prob": 0.0, + "hidden_size": 384, + "id2label": { + "0": "name", + "1": "license-plates" + }, + "image_size": [ + 512, + 864 + ], + "initializer_range": 0.02, + "intermediate_size": 1536, + "label2id": { + "name": 0, + "license-plates": 1 + }, + "layer_norm_eps": 1e-12, + "model_type": "yolos", + "num_attention_heads": 6, + "num_channels": 3, + "num_detection_tokens": 100, + "num_hidden_layers": 12, + "patch_size": 16, + "qkv_bias": true, + "torch_dtype": "float32", + "transformers_version": "4.21.1", + "use_mid_position_embeddings": true +} diff --git a/preprocessor_config.json b/preprocessor_config.json new file mode 100644 index 0000000..332aea7 --- /dev/null +++ b/preprocessor_config.json @@ -0,0 +1,18 @@ +{ + "do_normalize": true, + "do_resize": true, + "feature_extractor_type": "YolosFeatureExtractor", + "format": "coco_detection", + "image_mean": [ + 0.485, + 0.456, + 0.406 + ], + "image_std": [ + 0.229, + 0.224, + 0.225 + ], + "max_size": 864, + "size": 512 +} diff --git a/pytorch_model.bin b/pytorch_model.bin new file mode 100644 index 0000000..7bff41d --- /dev/null +++ b/pytorch_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5fadf96eec33231694338fcbfae136a3060041c80cfafc427e60f0555397c13b +size 122672089