---
title: SMOGY-Ai-images-detector-ONNX
canonical_url: "https://www.modelscope.cn/models/onnx-community/SMOGY-Ai-images-detector-ONNX"
md_url: "https://www.modelscope.cn/models/onnx-community/SMOGY-Ai-images-detector-ONNX.md"
repository: onnx-community/SMOGY-Ai-images-detector-ONNX
last_updated: 2026-03-05
license: cc-by-nc-4.0
pipeline_tag: image-classification
tasks:
  - image-classification
model_type:
  - swin
architectures:
  - SwinForImageClassification
base_model:
  - Smogy/SMOGY-Ai-images-detector
base_model_relation: finetune
library_name:
  - onnx
  - pytorch
frameworks:
  - pytorch
downloads: 36
stars: 0
tags:
  - image-classification
---

# SMOGY-Ai-images-detector-ONNX

> SMOGY-Ai-images-detector-ONNX - onnx-community 在 ModelScope 开源的模型。SMOGY-Ai-images-detector (ONNX)

onnx-community/SMOGY-Ai-images-detector-ONNX 是 ModelScope 魔搭社区上的image-classification模型，采用 cc-by-nc-4.0 许可，基于 Smogy/SMOGY-Ai-images-detector 构建。

- **Repository**: onnx-community/SMOGY-Ai-images-detector-ONNX
- **License**: cc-by-nc-4.0
- **Tasks**: image-classification
- **Base model**: Smogy/SMOGY-Ai-images-detector
- **Tags**: image-classification
- **Downloads**: 36
- **Stars**: 0
- **Last updated**: 2026-03-05

Source: https://www.modelscope.cn/models/onnx-community/SMOGY-Ai-images-detector-ONNX

---

# SMOGY-Ai-images-detector (ONNX)


This is an ONNX version of [Smogy/SMOGY-Ai-images-detector](https://huggingface.co/Smogy/SMOGY-Ai-images-detector). It was automatically converted and uploaded using [this Hugging Face Space](https://huggingface.co/spaces/onnx-community/convert-to-onnx).


## Usage with Transformers.js


See the pipeline documentation for `image-classification`: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.ImageClassificationPipeline


---


# AI-image-detector
The purpose of this model is to classify images as AI generated or Real.
### Dataset
This model was created by fine-tuning the [Organika/sdxl-detector] on dataset of AI generated and real images from reddit, kaggle and real art from public domain with their text description. 
Dataset was balanced to have similar number of real and generated images in each class (e.g. art, photos ...). 
Art images from public domain were paired with generated equivalent created from their text descriptions with style transfer (sdxl with ip-adapter) from original piece. 
The final dataset consisted of more than 50k images.
### Testing
The testing dataset consisted of 20% split of our base dataset and images outside the training domain from specific popular (as of 2024) image generation models.
Finetuning vastly improved performance over Organika/sdxl-detector during testing, especially on images created by newer models. 


Test split evaluation
| Accuracy |  Precision | Recall | F1 |
|:-------------:|:---------------:|:--------:|:--------:|
| 0.9818    | 0.9829        | 0.9810   | 0.9819 |

Out of domain evaluation
| Generative Model Family |  Accuracy |
|:-------------:|:---------------:|
| DALL-E          | 0.9076        |
| FluxAi          | 0.8333        |
| Imagen          | 0.7563        |
| StableDiffusion | 0.8754        |


### License
The data used to fine-tune this model was scraped from image dedicated subreddits, some of which may be copyrighted. For this reason, this model should be considered appropriate only for non-commercial use only.
