Downloads · 30 days
15
52% of all-time downloads
prithivMLmods/ImageShield-SUPER-90M
ImageShield-SUPER-90M is a image classification model from prithivMLmods. Use it when you need a label for an image. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
15
52% of all-time downloads
All-time downloads
29
Public
Parameters
92.9M
4.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.pt2.7 GB · 60%
From the Hugging Face model README

ImageShield-SUPER-90M is a vision-language image classification model based on google/siglip2-base-patch16-224, trained on 100K samples from the ImageShield-Guardrail Safe and Unsafe Images dataset. Built on the SiglipForImageClassification architecture, the model is designed to classify visual content as Safe or Unsafe for content moderation and media filtering.
[!IMPORTANT] This model is experimental. Expert multimodal models are available here: ImageShield Multimodal SFT Collection.
[!note] SigLIP 2: Multilingual Vision-Language Encoders with Improved Semantic Understanding, Localization, and Dense Features https://arxiv.org/pdf/2502.14786
The model classifies each image into one of the following content categories:
Class 0: "Safe"
Class 1: "Unsafe"
pip install transformers torch torchvision pillow gradio
import gradio as gr
from transformers import AutoImageProcessor, SiglipForImageClassification
from PIL import Image
import torch
# Load model and processor
model_name = "prithivMLmods/ImageShield-SUPER-90M"
model = SiglipForImageClassification.from_pretrained(model_name)
processor = AutoImageProcessor.from_pretrained(model_name)
# ID to Label mapping
id2label = {
"0": "Safe",
"1": "Unsafe"
}
def classify_image(image):
image = Image.fromarray(image).convert("RGB")
inputs = processor(images=image, return_tensors="pt")
with torch.no_grad():
outputs = model(**inputs)
logits = outputs.logits
probs = torch.nn.functional.softmax(logits, dim=1).squeeze().tolist()
prediction = {
id2label[str(i)]: round(probs[i], 3)
for i in range(len(probs))
}
return prediction
# Gradio Interface
iface = gr.Interface(
fn=classify_image,
inputs=gr.Image(type="numpy"),
outputs=gr.Label(
num_top_classes=2,
label="Predicted Content Type"
),
title="ImageShield-SUPER-90M",
description="Classifies images as Safe or Unsafe."
)
if __name__ == "__main__":
iface.launch()
This model is intended for applications such as:






Transformers: Transformers provides state-of-the-art machine learning models for text, computer vision, audio, video, and multimodal tasks, supporting both inference and training.
SigLIP 2: Multilingual vision-language encoders with improved semantic understanding, localization, and dense feature representations.