Skip to content
ModelListedExternal
Download

Nsfw Image Detection

The Fine-Tuned Vision Transformer (ViT) is a variant of the transformer encoder architecture, similar to BERT, that has been adapted for image classification tasks. This specific model, named...

KindOtherVersionRevision 6d83c84

Model source

Kind
Other
File size
83.1–327 MB
Version
vRevision 6d83c84
Updated
Sep 17, 2026
Downloads
5
Source
Hugging Face

Source excerpt

The Fine-Tuned Vision Transformer (ViT) is a variant of the transformer encoder architecture, similar to BERT, that has been adapted for image classification tasks. This specific model, named...

Sources

1 source
Hugging FacePrimaryVersion 6d83c84a34d77447ad3c965d1b79b8983101d431
huggingface.co/euclids/nsfw_image_detection/tree/6d83c84a34d77447ad3c965d1b79b8983101d431

Verified Sep 17

Model artifacts

3 artifacts

falconsai_yolov9_nsfw_model_quantized.pt

pt · 83.1 MB · SHA-256 ad6659b81050…319c · Hugging Face

Download

model.safetensors

safetensors · 327 MB · SHA-256 97b2ce64ec14…5830 · Hugging Face

Download

pytorch_model.bin

bin · 327 MB · SHA-256 2a6b06faec56…d12d · Hugging Face

Download

Source excerpts

2 excerpts

--- license: apache-2.0 pipeline_tag: image-classification --- # Model Card: Fine-Tuned Vision Transformer (ViT) for NSFW Image Classification ## Model Description The **Fine-Tuned Vision Transformer (ViT)** is a variant of the transformer encoder architecture, similar to BERT, that has been adapted for image classification tasks. This specific model, named "google/vit-base-patch16-224-in21k," is pre-trained on a substantial collection of images in a supervised manner, leveraging the ImageNet-21k dataset. The images in the pre-training dataset are resized to a resolution of 224x224 pixels, making it suitable for a wide range of image recognition tasks. During the training phase, meticulous attention was given to hyperparameter settings to ensure optimal model performance. The model was fine-tuned with a judiciously chosen batch size of 16. This choice not only balanced computational efficiency but also allowed for the model to effectively process and learn from a diverse array of images. To facilitate this fine-tuning process, a learning rate of 5e-5 was employed. The learning rate serves as a critical tuning parameter that dictates the magnitude of adjustments made to the model's parameters during training. In this case, a learning rate of 5e-5 was selected to strike a harmonious balance between rapid convergence and steady optimization, resulting in a model that not only learns swiftly but also steadily refines its capabilities throughout the training process. This training phase was executed using a proprietary dataset containing an extensive collection of 80,000 images, each characterized by a substantial degree of variability. The dataset was thoughtfully curated to include two distinct classes, namely "normal" and "nsfw." This diversity allowed the model to grasp nuanced visual patterns, equipping it with the competence to accurately differentiate between safe and explicit content. The overarching objective of this meticulous training process was to impart the model with a deep understanding of visual cues, ensuring its robustness and competence in tackling the specific task of NSFW image classification. The result is a model that stands ready to contribute significantly to content safety and moderation, all while maintaining the highest standards of accuracy and reliability. ## Intended Uses & Limitations ### Intended Uses - **NSFW Image Cla...

Source context: 5 downloads · 0 likes · Pipeline image-classification · Repo euclids/nsfw_image_detection