From 24245e9d46d56cafbcf3cf7ff579902b1cce511e Mon Sep 17 00:00:00 2001 From: YYJ-aaaa <1058387004@qq.com> Date: Mon, 30 Dec 2024 16:22:49 +0800 Subject: [PATCH] first commit --- config.json | 19 +++++++++++++++++ model.onnx | 3 +++ preprocessor_config.json | 44 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 config.json create mode 100644 model.onnx create mode 100644 preprocessor_config.json diff --git a/config.json b/config.json new file mode 100644 index 0000000..51e7844 --- /dev/null +++ b/config.json @@ -0,0 +1,19 @@ +{ + "_name_or_path": "openai/clip-vit-base-patch32", + "attention_dropout": 0.0, + "dropout": 0.0, + "hidden_act": "quick_gelu", + "hidden_size": 768, + "image_size": 224, + "initializer_factor": 1.0, + "initializer_range": 0.02, + "intermediate_size": 3072, + "layer_norm_eps": 1e-05, + "model_type": "clip_vision_model", + "num_attention_heads": 12, + "num_channels": 3, + "num_hidden_layers": 12, + "patch_size": 32, + "projection_dim": 512, + "transformers_version": "4.40.1" +} diff --git a/model.onnx b/model.onnx new file mode 100644 index 0000000..1526b98 --- /dev/null +++ b/model.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c68d3d9a200ddd2a8c8a5510b576d4c94d1ae383bf8b36dd8c084f94e1fb4d63 +size 351686194 diff --git a/preprocessor_config.json b/preprocessor_config.json new file mode 100644 index 0000000..c7f2d86 --- /dev/null +++ b/preprocessor_config.json @@ -0,0 +1,44 @@ +{ + "_valid_processor_keys": [ + "images", + "do_resize", + "size", + "resample", + "do_center_crop", + "crop_size", + "do_rescale", + "rescale_factor", + "do_normalize", + "image_mean", + "image_std", + "do_convert_rgb", + "return_tensors", + "data_format", + "input_data_format" + ], + "crop_size": { + "height": 224, + "width": 224 + }, + "do_center_crop": true, + "do_convert_rgb": true, + "do_normalize": true, + "do_rescale": true, + "do_resize": true, + "image_mean": [ + 0.48145466, + 0.4578275, + 0.40821073 + ], + "image_processor_type": "CLIPImageProcessor", + "image_std": [ + 0.26862954, + 0.26130258, + 0.27577711 + ], + "resample": 3, + "rescale_factor": 0.00392156862745098, + "size": { + "shortest_edge": 224 + } +}