Instructions to use yaya36095/ai-source-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use yaya36095/ai-source-detector with timm:
import timm model = timm.create_model("hf-hub:yaya36095/ai-source-detector", pretrained=True) - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from yaya36095/ai-source-detector: direct link, hf CLI and curl.
- Browser
- Download file 443 Bytes
-
https://huggingface.co/yaya36095/ai-source-detector/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://yaya36095/ai-source-detector/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/yaya36095/ai-source-detector/resolve/main/preprocessor_config.json
443 Bytes
| { | |
| "feature_extractor_type": "ViTFeatureExtractor", | |
| "do_resize": true, | |
| "size": 224, | |
| "do_normalize": true, | |
| "image_mean": [0.5, 0.5, 0.5], | |
| "image_std": [0.5, 0.5, 0.5], | |
| "num_labels": 5, | |
| "id2label": { | |
| "0": "stable_diffusion", | |
| "1": "midjourney", | |
| "2": "dalle", | |
| "3": "real", | |
| "4": "other_ai" | |
| }, | |
| "label2id": { | |
| "stable_diffusion": 0, | |
| "midjourney": 1, | |
| "dalle": 2, | |
| "real": 3, | |
| "other_ai": 4 | |
| } | |
| } |