Upload folder using huggingface_hub
Browse files- README.md +30 -0
- config.json +24 -0
- model.safetensors +3 -0
README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- image-classification
|
| 5 |
+
- ai-detection
|
| 6 |
+
- vision-transformer
|
| 7 |
+
- transfer-learning
|
| 8 |
+
datasets:
|
| 9 |
+
- ash12321/nano-banana-pro-generated-1k
|
| 10 |
+
- huggan/wikiart
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Nano Banana Pro Detector (Minimal)
|
| 14 |
+
|
| 15 |
+
Frozen backbone detector for Nano Banana Pro (95-97% accuracy)
|
| 16 |
+
|
| 17 |
+
**Frozen backbone transfer learning approach:**
|
| 18 |
+
- ❄️ Pretrained ViT backbone (frozen)
|
| 19 |
+
- ✅ Trained classifier head only
|
| 20 |
+
- 📉 Minimal augmentation
|
| 21 |
+
- 🎯 Optimized for 400 images
|
| 22 |
+
|
| 23 |
+
## Performance
|
| 24 |
+
|
| 25 |
+
| Metric | Score |
|
| 26 |
+
|--------|-------|
|
| 27 |
+
| Accuracy | 0.9500 (95.00%) |
|
| 28 |
+
| Precision | 0.9500 |
|
| 29 |
+
| Recall | 0.9500 |
|
| 30 |
+
| F1 Score | 0.9500 |
|
config.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"ViTForImageClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.0,
|
| 6 |
+
"dtype": "float32",
|
| 7 |
+
"encoder_stride": 16,
|
| 8 |
+
"hidden_act": "gelu",
|
| 9 |
+
"hidden_dropout_prob": 0.0,
|
| 10 |
+
"hidden_size": 768,
|
| 11 |
+
"image_size": 224,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"intermediate_size": 3072,
|
| 14 |
+
"layer_norm_eps": 1e-12,
|
| 15 |
+
"model_type": "vit",
|
| 16 |
+
"num_attention_heads": 12,
|
| 17 |
+
"num_channels": 3,
|
| 18 |
+
"num_hidden_layers": 12,
|
| 19 |
+
"patch_size": 16,
|
| 20 |
+
"pooler_act": "tanh",
|
| 21 |
+
"pooler_output_size": 768,
|
| 22 |
+
"qkv_bias": true,
|
| 23 |
+
"transformers_version": "4.57.3"
|
| 24 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:412274a0cb9373407586d45e82684a18d7cb020ee992ad4302086d552ce10edf
|
| 3 |
+
size 343223976
|