AI SeedbankHelp preserve open and free AI for humanity's future

← All models

Marqo_nsfw-image-detection-384

Marqo · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: 1 · Leechers: 0

Observed 2026-09-02T13:56:39Z via announce.aitorrent.org:7070.

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


tags:

  • image-classification
  • timm library_name: timm license: apache-2.0

Model card for nsfw-image-detection-384

NOTE: Like all models, this one can make mistakes. NSFW content can be subjective and contextual, this model is intended to help identify this content, use at your own risk.

Marqo/nsfw-image-detection-384 is a lightweight image classification model designed to identify NSFW images. The model is approximately 18–20x smaller than other open-source models and achieves a superior accuracy of 98.56% on our dataset. This model uses 384x384 pixel images for the input with 16x16 pixel patches.

This model was trained on a proprietary dataset of 220,000 images. The training set includes 100,000 NSFW examples and 100,000 SFW examples, while the test set contains 10,000 NSFW examples and 10,000 SFW examples. This dataset features a diverse range of content, including: real photos, drawings, Rule 34 material, memes, and AI-generated images. The definition of NSFW can vary and is sometimes contextual, our dataset was constructed to contain challenging examples however this definition may not be 100% aligned with every use case, as such we recommend experimenting and trying different thresholds to determine if this model is suitable for your needs.

Model Usage

Image Classification with timm

pip install timm
from urllib.request import urlopen
from PIL import Image
import timm
import torch

img = Image.open(urlopen(
    'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))

model = timm.create_model("hf_hub:Marqo/nsfw-image-detection-384", pretrained=True)
model = model.eval()

data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)

with torch.no_grad():
    output = model(transforms(img).unsqueeze(0)).softmax(dim=-1).cpu()

class_names = model.pretrained_cfg["label_names"]
print("Probabilities:", output[0])
print("Class:", class_names[output[0].argmax()])

Evaluation

This model outperforms existing NSFW detectors on our dataset, here we provide an evaluation against AdamCodd/vit-base-nsfw-detector and Falconsai/nsfw_image_detection:

Thresholds and Precision vs Recall

Adjusting the threshold for the NSFW probability can let you trade off precision, recall, and accuracy. This maybe be useful in different applications where different degrees of confidence are required.

Training Details

This model is a finetune of the timm/vit_tiny_patch16_384.augreg_in21k_ft_in1k model.

Args

batch_size: 256
color_jitter: 0.2
color_jitter_prob: 0.05
cutmix: 0.1
drop: 0.1
drop_path: 0.05
epoch_repeats: 0.0
epochs: 20
gaussian_blur_prob: 0.005
hflip: 0.5
lr: 5.0e-05
mixup: 0.1
mixup_mode: batch
mixup_prob: 1.0
mixup_switch_prob: 0.5
momentum: 0.9
num_classes: 2
opt: adamw
remode: pixel
reprob: 0.5
sched: cosine
smoothing: 0.1
warmup_epochs: 2
warmup_lr: 1.0e-05
warmup_prefix: false

Citation

@article{dosovitskiy2020vit,
  title={An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale},
  author={Dosovitskiy, Alexey and Beyer, Lucas and Kolesnikov, Alexander and Weissenborn, Dirk and Zhai, Xiaohua and Unterthiner, Thomas and  Dehghani, Mostafa and Minderer, Matthias and Heigold, Georg and Gelly, Sylvain and Uszkoreit, Jakob and Houlsby, Neil},
  journal={ICLR},
  year={2021}
}
@misc{rw2019timm,
  author = {Ross Wightman},
  title = {PyTorch Image Models},
  year = {2019},
  publisher = {GitHub},
  journal = {GitHub repository},
  doi = {10.5281/zenodo.4414861},
  howpublished = {\url{https://github.com/huggingface/pytorch-image-models}}
}

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:9beef3bb38c75362c757e876d59c40608a3a1b18&dn=Marqo_nsfw-image-detection-384

Open magnet in torrent client · infohash 9beef3bb38c75362c757e876d59c40608a3a1b18

Files & hashes

PathSizesha1sha256
README.md4.0 KB (4,108 B)adc6d99ac22545b0252999bf78c3cf83922b9361619f379b00af55e69da0ebaf1ba3f9dda1980e20433a391815e85aa24e475c90
config.json629 B (629 B)bf3d02b8b05545ed2c86049b083c2600c672ee2fae848d1dca0aeccd38f2ebb4b1bb47219cdc7f34e3ddc50c8d6430abe74d79b4
images/Comparison.png269.9 KB (276,358 B)65a2cb114de04ddeaa0e812940384c89186011e6008e15012ee6413702c6ba13e2a6c218afc462fb947e25ee24edba5d3d2a8063
images/PrecisionRecallCurves.png187.1 KB (191,603 B)19134d421d796b5ed963ea6d7caba13e7ea74a2d590492284a2d20b5875414113b578b6acc7a1e0b7e6a4ae0605f7cd3eae4e12a
images/ThresholdEvals.png292.0 KB (298,998 B)5dcd5f558dbc7d5f3688556d6fbd95eba0ca91f21fe183b2788e7c02bf7d527a091f5656cc6f7f102b106f9153da0b6a407792e9
model.safetensors21.4 MB (22,404,720 B)9a00ac310362df1bb5a0215c7e2c92ceee6692ab6bf2e0f64a1d20169736c2836e3a787b12379fdc08ba87f7d94a7a3d58eeefce

Cite this release

Canonical URL
https://aiseedbank.org/models/Marqo_nsfw-image-detection-384/
Slug
Marqo_nsfw-image-detection-384
Infohash
9beef3bb38c75362c757e876d59c40608a3a1b18
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: Marqo_nsfw-image-detection-384.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositoryMarqo/nsfw-image-detection-384
Revision (pinned)0c26ec22111b83f106d72a55f611ec35962bcb65
Fetched at2026-09-02T04:27:18Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-02T04:27:20Z

apache-2.022.1 MB (23,176,416 bytes)timmsafetensorsimage-classificationnot-for-all-audiences