Image Classification
Grok
numpy
raiw-source-classify
image-forensics
source-attribution
open-set-classification
ai-image-detection
ai-generated-content
provider-attribution
openai
gpt-image
dall-e
google
imagen
flux
midjourney
stable-diffusion
ideogram
firefly
seedream
Instructions to use wiltodelta/raiw-source-classify with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Grok
How to use wiltodelta/raiw-source-classify with Grok:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Source-classify freeze (GitHub b764b6d)
Browse files- benchmark.py +1 -1
benchmark.py
CHANGED
|
@@ -440,7 +440,7 @@ def evaluate_hf_binary_detector(spec: OpenDetectorSpec, samples: list[SampleItem
|
|
| 440 |
|
| 441 |
processor = AutoImageProcessor.from_pretrained(spec.repo_id, revision=spec.revision)
|
| 442 |
model = AutoModelForImageClassification.from_pretrained(spec.repo_id, revision=spec.revision)
|
| 443 |
-
model.
|
| 444 |
model.to("cpu")
|
| 445 |
|
| 446 |
id2label = {int(k): str(v).lower() for k, v in model.config.id2label.items()}
|
|
|
|
| 440 |
|
| 441 |
processor = AutoImageProcessor.from_pretrained(spec.repo_id, revision=spec.revision)
|
| 442 |
model = AutoModelForImageClassification.from_pretrained(spec.repo_id, revision=spec.revision)
|
| 443 |
+
model.train(False)
|
| 444 |
model.to("cpu")
|
| 445 |
|
| 446 |
id2label = {int(k): str(v).lower() for k, v in model.config.id2label.items()}
|