From c8e2d216dde8badc9c149b8d070fbb91eb9d4741 Mon Sep 17 00:00:00 2001 From: yang yingjie Date: Tue, 21 Jan 2025 15:39:32 +0800 Subject: [PATCH] first commit --- config.json | 32 ++++++++++++++++++++++++++++++++ preprocessor_config.json | 22 ++++++++++++++++++++++ pytorch_model.bin | 3 +++ training_args.bin | 3 +++ 4 files changed, 60 insertions(+) create mode 100644 config.json 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..ce9c80e --- /dev/null +++ b/config.json @@ -0,0 +1,32 @@ +{ + "_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": "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.34.0" +} diff --git a/preprocessor_config.json b/preprocessor_config.json new file mode 100644 index 0000000..273d249 --- /dev/null +++ b/preprocessor_config.json @@ -0,0 +1,22 @@ +{ + "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..8a84d46 --- /dev/null +++ b/pytorch_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a653ae69f0c39545941da9b7d6ea309aa81c7d69946cdf06f4ea10b6a24eb0d +size 343268717 diff --git a/training_args.bin b/training_args.bin new file mode 100644 index 0000000..cb1344b --- /dev/null +++ b/training_args.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e8d19703da0c69d641a6b89f2177e3aec8b1bdf5efdbb94ee8497fc5935ce47 +size 4027