Image Classification
Transformers
Safetensors
PyTorch
English
Chinese
beit
ai-detection
ai-image-detection
deepfake-detection
fake-image-detection
ai-art-detection
stable-diffusion-detection
midjourney-detection
dall-e-detection
image-forensics
digital-art-verification
vit
computer-vision
Eval Results (legacy)
Instructions to use boluobobo/ItsNotAI-ai-detector-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use boluobobo/ItsNotAI-ai-detector-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="boluobobo/ItsNotAI-ai-detector-v1") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("boluobobo/ItsNotAI-ai-detector-v1") model = AutoModelForImageClassification.from_pretrained("boluobobo/ItsNotAI-ai-detector-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload handler.py with huggingface_hub
Browse files- handler.py +0 -1
handler.py
CHANGED
|
@@ -78,7 +78,6 @@ class EndpointHandler:
|
|
| 78 |
"ai_probability": round(ai_prob, 3),
|
| 79 |
"human_probability": round(human_prob, 3),
|
| 80 |
"predicted_source": top_source,
|
| 81 |
-
"is_real": is_real,
|
| 82 |
"top3_sources": top3_sources
|
| 83 |
}
|
| 84 |
|
|
|
|
| 78 |
"ai_probability": round(ai_prob, 3),
|
| 79 |
"human_probability": round(human_prob, 3),
|
| 80 |
"predicted_source": top_source,
|
|
|
|
| 81 |
"top3_sources": top3_sources
|
| 82 |
}
|
| 83 |
|