From 43d95fc6493d09e21c83a3af8843a316884bcf10 Mon Sep 17 00:00:00 2001 From: YYJ-aaaa <1058387004@qq.com> Date: Thu, 5 Dec 2024 16:12:14 +0800 Subject: [PATCH] first commit --- config.json | 32 ++++++++++++++++++++++++++++++++ model.safetensors | 3 +++ preprocessor_config.json | 36 ++++++++++++++++++++++++++++++++++++ pytorch_model.bin | 3 +++ training_args.bin | 3 +++ 5 files changed, 77 insertions(+) create mode 100644 config.json create mode 100644 model.safetensors create mode 100644 preprocessor_config.json create mode 100644 pytorch_model.bin create mode 100644 training_args.bin diff --git a/config.json b/config.json new file mode 100644 index 0000000..b310e09 --- /dev/null +++ b/config.json @@ -0,0 +1,32 @@ +{ + "_name_or_path": "dima806/ai_vs_real_image_detection", + "architectures": [ + "ViTForImageClassification" + ], + "attention_probs_dropout_prob": 0.0, + "encoder_stride": 16, + "hidden_act": "gelu", + "hidden_dropout_prob": 0.0, + "hidden_size": 768, + "id2label": { + "0": "REAL", + "1": "FAKE" + }, + "image_size": 224, + "initializer_range": 0.02, + "intermediate_size": 3072, + "label2id": { + "FAKE": 1, + "REAL": 0 + }, + "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..cf1838f --- /dev/null +++ b/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f5d0d4e8e6475faccca9385a2869648bb1f18d3f64c0239ad2bca909d3adc50 +size 343223968 diff --git a/preprocessor_config.json b/preprocessor_config.json new file mode 100644 index 0000000..479edce --- /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": "ViTImageProcessor", + "image_std": [ + 0.5, + 0.5, + 0.5 + ], + "resample": 2, + "rescale_factor": 0.00392156862745098, + "size": { + "height": 224, + "width": 224 + } +} diff --git a/pytorch_model.bin b/pytorch_model.bin new file mode 100644 index 0000000..09df710 --- /dev/null +++ b/pytorch_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c3ee9511c4aea31585701b13cc75639e26bb4437581af161244d4996fc509d57 +size 343268717 diff --git a/training_args.bin b/training_args.bin new file mode 100644 index 0000000..4cf150e --- /dev/null +++ b/training_args.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7127130e5d781b7792e2ace85631e70aa9562b8622e9997b73b1f5021b0d82e0 +size 4411