Image Classification
Transformers
PyTorch
Safetensors
vit
Generated from Trainer
Eval Results (legacy)
Not-For-All-Audiences
Instructions to use LukeJacob2023/nsfw-image-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LukeJacob2023/nsfw-image-detector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="LukeJacob2023/nsfw-image-detector") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("LukeJacob2023/nsfw-image-detector") model = AutoModelForImageClassification.from_pretrained("LukeJacob2023/nsfw-image-detector", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
75ac053 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:22bc12c4a84272eeeab34ad38b136bf83fc9e26f8c4705646ddedf58abeb2b38
size 343275181
|