Image Classification
Transformers
Safetensors
PyTorch
English
siglip
deepfake
ai-detection
computer-vision
siglip2
synthetic-media
Instructions to use king1oo1/deepfake-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use king1oo1/deepfake-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="king1oo1/deepfake-model") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoProcessor, AutoModelForImageClassification processor = AutoProcessor.from_pretrained("king1oo1/deepfake-model") model = AutoModelForImageClassification.from_pretrained("king1oo1/deepfake-model") - Notebooks
- Google Colab
- Kaggle
Upload 3 files
Browse files- config.json +48 -0
- model.safetensors +3 -0
- preprocessor_config.json +23 -0
config.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"SiglipForImageClassification"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "float32",
|
| 6 |
+
"id2label": {
|
| 7 |
+
"0": "Real",
|
| 8 |
+
"1": "Fake"
|
| 9 |
+
},
|
| 10 |
+
"initializer_factor": 1.0,
|
| 11 |
+
"label2id": {
|
| 12 |
+
"Fake": 1,
|
| 13 |
+
"Real": 0
|
| 14 |
+
},
|
| 15 |
+
"model_type": "siglip",
|
| 16 |
+
"text_config": {
|
| 17 |
+
"attention_dropout": 0.0,
|
| 18 |
+
"bos_token_id": 49406,
|
| 19 |
+
"dtype": "float32",
|
| 20 |
+
"eos_token_id": 49407,
|
| 21 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 22 |
+
"hidden_size": 768,
|
| 23 |
+
"intermediate_size": 3072,
|
| 24 |
+
"layer_norm_eps": 1e-06,
|
| 25 |
+
"max_position_embeddings": 64,
|
| 26 |
+
"model_type": "siglip_text_model",
|
| 27 |
+
"num_attention_heads": 12,
|
| 28 |
+
"num_hidden_layers": 12,
|
| 29 |
+
"pad_token_id": 1,
|
| 30 |
+
"projection_size": 768,
|
| 31 |
+
"vocab_size": 256000
|
| 32 |
+
},
|
| 33 |
+
"transformers_version": "5.0.0",
|
| 34 |
+
"vision_config": {
|
| 35 |
+
"attention_dropout": 0.0,
|
| 36 |
+
"dtype": "float32",
|
| 37 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 38 |
+
"hidden_size": 768,
|
| 39 |
+
"image_size": 224,
|
| 40 |
+
"intermediate_size": 3072,
|
| 41 |
+
"layer_norm_eps": 1e-06,
|
| 42 |
+
"model_type": "siglip_vision_model",
|
| 43 |
+
"num_attention_heads": 12,
|
| 44 |
+
"num_channels": 3,
|
| 45 |
+
"num_hidden_layers": 12,
|
| 46 |
+
"patch_size": 16
|
| 47 |
+
}
|
| 48 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e5492f124afb0487afbc0d989dcd0f6f65933044a4b69b09bb95cddc121137f4
|
| 3 |
+
size 371567992
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"data_format": "channels_first",
|
| 3 |
+
"do_normalize": true,
|
| 4 |
+
"do_rescale": true,
|
| 5 |
+
"do_resize": true,
|
| 6 |
+
"image_mean": [
|
| 7 |
+
0.5,
|
| 8 |
+
0.5,
|
| 9 |
+
0.5
|
| 10 |
+
],
|
| 11 |
+
"image_processor_type": "SiglipImageProcessorFast",
|
| 12 |
+
"image_std": [
|
| 13 |
+
0.5,
|
| 14 |
+
0.5,
|
| 15 |
+
0.5
|
| 16 |
+
],
|
| 17 |
+
"resample": 2,
|
| 18 |
+
"rescale_factor": 0.00392156862745098,
|
| 19 |
+
"size": {
|
| 20 |
+
"height": 224,
|
| 21 |
+
"width": 224
|
| 22 |
+
}
|
| 23 |
+
}
|