From 400c4813c2d466863daf7f8458fcef38dce6904f Mon Sep 17 00:00:00 2001 From: YYJ-aaaa <1058387004@qq.com> Date: Wed, 6 Nov 2024 15:33:11 +0800 Subject: [PATCH] first commit --- config.json | 34 ++++++++++++++++++++++++++++++++++ model.safetensors | 3 +++ preprocessor_config.json | 36 ++++++++++++++++++++++++++++++++++++ training_args.bin | 3 +++ 4 files changed, 76 insertions(+) create mode 100644 config.json create mode 100644 model.safetensors create mode 100644 preprocessor_config.json create mode 100644 training_args.bin diff --git a/config.json b/config.json new file mode 100644 index 0000000..9dba38c --- /dev/null +++ b/config.json @@ -0,0 +1,34 @@ +{ + "_name_or_path": "google/vit-base-patch16-224-in21k", + "architectures": [ + "ViTForImageClassification" + ], + "attention_probs_dropout_prob": 0.0, + "encoder_stride": 16, + "hidden_act": "gelu", + "hidden_dropout_prob": 0.0, + "hidden_size": 768, + "id2label": { + "0": "dalle", + "1": "real", + "2": "sd" + }, + "image_size": 224, + "initializer_range": 0.02, + "intermediate_size": 3072, + "label2id": { + "dalle": "0", + "real": "1", + "sd": "2" + }, + "layer_norm_eps": 1e-12, + "model_type": "vit", + "num_attention_heads": 12, + "num_channels": 3, + "num_hidden_layers": 12, + "patch_size": 16, + "problem_type": "single_label_classification", + "qkv_bias": true, + "torch_dtype": "float32", + "transformers_version": "4.39.3" +} diff --git a/model.safetensors b/model.safetensors new file mode 100644 index 0000000..d28cab7 --- /dev/null +++ b/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b0eb0ba578897f59d009b4eaa7a308eb5ca56a6c27e7d51a32d4eafcbe4a223a +size 343227052 diff --git a/preprocessor_config.json b/preprocessor_config.json new file mode 100644 index 0000000..726b656 --- /dev/null +++ b/preprocessor_config.json @@ -0,0 +1,36 @@ +{ + "_valid_processor_keys": [ + "images", + "do_resize", + "size", + "resample", + "do_rescale", + "rescale_factor", + "do_normalize", + "image_mean", + "image_std", + "return_tensors", + "data_format", + "input_data_format" + ], + "do_normalize": true, + "do_rescale": true, + "do_resize": true, + "image_mean": [ + 0.5, + 0.5, + 0.5 + ], + "image_processor_type": "ViTFeatureExtractor", + "image_std": [ + 0.5, + 0.5, + 0.5 + ], + "resample": 2, + "rescale_factor": 0.00392156862745098, + "size": { + "height": 224, + "width": 224 + } +} diff --git a/training_args.bin b/training_args.bin new file mode 100644 index 0000000..fc4be29 --- /dev/null +++ b/training_args.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a9399e8fe2e9673d8ed90ffea4627aa52865b81df400e50da1171e9ec7603ef +size 4920