Falconsai/nsfw_image_detection

image-classification model by Falconsai

Open original source ↗

From the publisher

Model card & documentation

Source preview

Read the publisher’s intended use, setup instructions, evaluations and limitations. The original model card is the source of truth.

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…

Falconsai/nsfw_image_detection on Hugging Face A short preview, not the full document.

Read the full model card ↗ · Preview checked 2026-10-29T03:41:48.785Z

Inside the original model card — Document outline
  1. Model Card: Fine-Tuned Vision Transformer (ViT) for NSFW Image Classification
  2. Model Description
  3. Intended Uses & Limitations
  4. Intended Uses
  5. How to use
  6. Limitations
  7. Training Data
  8. Training Stats
  9. References
  10. From the same team: Model Surgeon

Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.

Links from the model card

References supplied by the publisher, not independently verified endorsements. Check the destination before downloading files or entering credentials.

Documentation belongs to its respective authors. Reported project/model license: apache-2.0. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.

Model overview

Falconsai/nsfw_image_detection is a image-classification model repository published by Falconsai on Hugging Face. The source reports the transformers library.

This page summarizes Hub metadata. For intended use, training data, evaluation results and limitations, consult the original model card.

Model facts

Task
image-classification
Library
transformers
Recent downloads (30 days)
1,724,484
Cumulative likes
1,223
Hugging Face trending score
0
Reported safetensors parameters
85,800,194
Architecture
ViTForImageClassification
License
apache-2.0
Access
Not gated by Hugging Face
Created
2023-10-13T23:50:01.000Z
Last modified
2026-09-07T08:55:17.000Z

Compatibility and lineage

Language coverage was not reported.

Base-model lineage was not included.

Parameter count is not a RAM/VRAM requirement. Check precision, quantization, context length and runtime compatibility in the model card; no hardware or API-cost claim is inferred here.

Use and evaluate

Check license terms and access requirements first. Review the model card’s documented loading instructions, evaluations and safety limitations. Benchmark scores are not imported by this directory, and popularity is not an accuracy ranking.

No model weights are downloaded or executed by AltAPIs. Never enable remote model code without reviewing it.

Model card and usage instructions

Model files and configuration

Community discussion

Source and freshness

Source: Hugging Face Hub. Metadata observed 2026-11-01T06:54:32.747Z. Daily imports are snapshots, not real-time monitoring.

Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.

Open original source

Related models

google/vit-base-patch16-224

timm/mobilenetv3_small_100.lamb_in1k

prithivMLmods/Gender-Classifier-Mini

timm/tf_efficientnetv2_s.in21k_ft_in1k

timm/resnet18.a1_in1k

timm/resnet50.a1_in1k