SAVRN
Search Contact SAVRN

Open-weight model · Image classification

AI-image-detector

by Matthew Maybe umm-maybe/AI-image-detector

NOTE: Unless you are trying to detect imagery generated using older models such as VQGAN+CLIP, please use the updated version of this detector instead.

Parameters
Context
Weights347.6 MB
Licensecc-by-4.0
AccessOpen weights
Monthly Downloads353.9k

Model Card

By Matthew Maybe, published under cc-by-4.0, revision c7e223baf11b.

NOTE: Unless you are trying to detect imagery generated using older models such as VQGAN+CLIP, please use the updated version of this detector instead. This model is a proof-of-concept demonstration of using a ViT model to predict whether an artistic image was generated using AI. It was created in October 2022, and as such, the training data did not include any samples generated by Midjourney 5, SDXL, or DALLE-3. It still may be able to correctly identify samples from these more recent models due to being trained on outputs of their predecessors. Furthermore the intended scope of this tool is artistic images; that is to say, it is not a deepfake photo detector, and general computer imagery…

Read Matthew Maybe's full model card

NOTE: Unless you are trying to detect imagery generated using older models such as VQGAN+CLIP, please use the updated version of this detector instead.

This model is a proof-of-concept demonstration of using a ViT model to predict whether an artistic image was generated using AI.

It was created in October 2022, and as such, the training data did not include any samples generated by Midjourney 5, SDXL, or DALLE-3. It still may be able to correctly identify samples from these more recent models due to being trained on outputs of their predecessors.

Furthermore the intended scope of this tool is artistic images; that is to say, it is not a deepfake photo detector, and general computer imagery (webcams, screenshots, etc.) may throw it off.

In general, this tool can only serve as one of many potential indicators that an image was AI-generated. Images scoring as very probably artificial (e.g. 90% or higher) could be referred to a human expert for further investigation, if needed.

For more information please see the blog post describing this project at: https://medium.com/@matthewmaybe/can-an-ai-learn-to-identify-ai-art-545d9d6af226

Model Trained Using AutoTrain

  • Problem type: Binary Classification
  • Model ID: 1519658722
  • CO2 Emissions (in grams): 7.9405

Validation Metrics

  • Loss: 0.163
  • Accuracy: 0.942
  • Precision: 0.938
  • Recall: 0.978
  • AUC: 0.980
  • F1: 0.958

License Notice

This work is licensed under a Creative Commons Attribution-NoDerivatives 4.0 International License.

You may distribute and make this model available to others as part of your own web page, app, or service so long as you provide attribution. However, use of this model within text-to-image systems to evade AI image detection would be considered a "derivative work" and as such prohibited by the license terms.

Configuration

Architecture
SwinForImageClassification
Hidden size
1,024
Stored precision
float32
Model type
swin

Identity and Version

Repository
umm-maybe/AI-image-detector
Publisher
Matthew Maybe
Task
Image classification
Modality
Image
Library
transformers
Parameters
Not stated by the source
Languages
Not stated by the source
Revision
c7e223baf11bc40528af364ba7bdea030ef42f9e
First published
2022-10-04
Last updated
2024-01-03

Files and Weights

5 files, 347.6 MB in total. The weights are 1 file totalling 347.6 MB in bin.

Weights1 file · 347.6 MB
Configuration2 files · 1.2 KB
Documentation1 file · 2.4 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
pytorch_model.binWeights347.6 MB f4c14ed23eb1
config.jsonConfiguration937 B 481309324b2b
preprocessor_config.jsonConfiguration240 B 63ae741f85ba
README.mdDocumentation2.4 KB
.gitattributesRepository1.5 KB

License and Download

License
cc-by-4.0
Access
Open weights, no gate
Download size
347.6 MB
Download from Matthew Maybe

Released by Matthew Maybe through its official repository on Hugging Face. Read the license.

Memory Requirements

PrecisionWeights in memory
As published347.6 MB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About AI-image-detector

Can I use AI-image-detector commercially?

Yes. AI-image-detector is released under Creative Commons Attribution 4.0. CC BY 4.0 permits sharing and adapting the work, including commercially, provided the creator is credited and changes are indicated.

Similar Models

Model · Image classification

swinv2-tiny-patch4-window16-256

Microsoft

Swin Transformer v2 model pre-trained on ImageNet-1k at resolution 256x256. It was introduced in the paper Swin Transformer V2: Scaling Up Capacity and Resolution by Liu et al. and first released in this repository. Disclaimer: The team releasing Swin Transformer v2 did not write a model card for this model so this model card has been written by the Hugging Face team. The Swin Transformer is a type of Vision Transformer. It builds hierarchical feature maps by merging image patches (shown in gray) in deeper layers and has linear computation complexity to input image size due to computation of self-attention only within each local window (shown in red). It can thus serve as a general-purpose…

Open weights apache-2.0 transformers

Model · Image classification

traffic-sign-adverse-weather

Yy

Official model checkpoints for the solution in the Traffic Sign Recognition under Adverse Weather Competition. See classes.txt for the 25 traffic sign classes. For inference scripts, training code, and in-depth engineering retrospective, visit the GitHub Repository.

Open weights mit timm

Model · Image classification

tinyvit-5m-int8-imagenet

Core Epoch

TinyViT-5M (timm/tinyvit5m224.distin22kftin1k, Apache-2.0) quantized to INT8 with Kenosis — 128-image calibration, no retraining. 80.53% top-1 from a 9.2 MB single file, on ONNX Runtime or OpenVINO, CPU or GPU, no accelerator required. ImageNet-1K validation, 49,872 images (disjoint from the 128 calibration images). Measured on a CPU with AVX-VNNI; on CPUs without VNNI this model's INT8 top-1 sits ~0.9 below FP32 rather than 0.34. Input 1x3x224x224, RGB, /255, ImageNet mean/std. Output logits [1,1000], sorted-synset order. runclassify.py / evalimagenet.py reproduce the demo and table. tinyvit5m224int8kenosis.onnx (9,228,567 B) — SHA-256…

Open weights apache-2.0 onnx

Model · Image classification

mmfm-breast-imaging-checkpoints

NFadlallah

ResNet-18 binary (benign vs. malignant) classification checkpoints, trained per-dataset on eight public breast-imaging sources spanning ultrasound, Full write-up, methodology, and comparison to each source paper's own These are single-modality baselines, not the 3-branch fusion model. Each checkpoint is models.SingleBackboneClassifier (one ResNet-18 backbone, ImageNet-pretrained, first conv adapted for non-RGB inputs where applicable) — see models/backbone.py / training/train.py in the repo for the loading code. For the 5-fold datasets, this is one fold's checkpoint, not an ensemble or the averaged model — reported accuracy is the 5-fold mean from the full report for context, not this…

Open weights cc-by-4.0