Harshasnade commited on
Commit
58dc4d4
·
verified ·
1 Parent(s): d33766a

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +6 -28
README.md CHANGED
@@ -13,6 +13,12 @@ metrics:
13
  - accuracy
14
  - f1
15
  pipeline_tag: image-classification
 
 
 
 
 
 
16
  ---
17
 
18
  # DeepGuard - Deepfake Detection System
@@ -55,8 +61,6 @@ The model is designed to classify single images as either **REAL** or **FAKE**.
55
  import torch
56
  import torch.nn as nn
57
  from torchvision import models
58
- import albumentations as A
59
- from albumentations.pytorch import ToTensorV2
60
  from safetensors.torch import load_file
61
  import cv2
62
 
@@ -101,19 +105,6 @@ The model was trained on a diverse dataset comprising:
101
  - **Deepfake Images:** Generated using StyleGAN2, Diffusion Models, and FaceSwap techniques.
102
  - **Data Augmentation:** extensive augmentation (compression, noise, blur) was applied to robustify the model against social media re-compression artifacts.
103
 
104
- ### Training Procedure
105
-
106
- - **Optimizer:** AdamW
107
- - **Loss Function:** BCEWithLogitsLoss
108
- - **Scheduler:** OneCycleLR
109
- - **Epochs:** 10+ with Early Stopping
110
- - **Input Resolution:** 224x224
111
-
112
- #### Training Hyperparameters
113
-
114
- - **Batch Size:** 32
115
- - **Precision:** Mixed Precision (FP16)
116
-
117
  ## Evaluation
118
 
119
  ### Results
@@ -122,19 +113,6 @@ The model achieves high accuracy on standard benchmarks:
122
  - **Test Accuracy:** ~92-95% (on unseen test split)
123
  - **Generalization:** Shows strong resilience to JPEG compression compared to standard CNNs.
124
 
125
- ## Technical Specifications
126
-
127
- ### Model Architecture
128
-
129
- The specific ensemble combines:
130
- 1. **EfficientNetV2-S:** Excellent at capturing sharp, high-frequency details (e.g., hair textures, eye reflections).
131
- 2. **Swin Transformer (V2-T):** Captures global semantic inconsistencies (e.g., facial structural alignment).
132
-
133
- ### Compute Infrastructure
134
-
135
- - **Hardware:** Trained on Mac M-Series (MPS) / NVIDIA GPUs.
136
- - **Framework:** PyTorch 2.6+
137
-
138
  ## Citation
139
 
140
  ```bibtex
 
13
  - accuracy
14
  - f1
15
  pipeline_tag: image-classification
16
+ inference: false
17
+ widgets:
18
+ - text: "Test the DeepGuard Model Live"
19
+ src: "https://harshasnade-deepfake-detection-system-v1.hf.space"
20
+ - text: "Deepfake Sample"
21
+ src: "https://harshasnade-deepfake-detection-system-v1.hf.space"
22
  ---
23
 
24
  # DeepGuard - Deepfake Detection System
 
61
  import torch
62
  import torch.nn as nn
63
  from torchvision import models
 
 
64
  from safetensors.torch import load_file
65
  import cv2
66
 
 
105
  - **Deepfake Images:** Generated using StyleGAN2, Diffusion Models, and FaceSwap techniques.
106
  - **Data Augmentation:** extensive augmentation (compression, noise, blur) was applied to robustify the model against social media re-compression artifacts.
107
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  ## Evaluation
109
 
110
  ### Results
 
113
  - **Test Accuracy:** ~92-95% (on unseen test split)
114
  - **Generalization:** Shows strong resilience to JPEG compression compared to standard CNNs.
115
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
  ## Citation
117
 
118
  ```bibtex