Instructions to use AdamCodd/vit-base-nsfw-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use AdamCodd/vit-base-nsfw-detector with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-classification', 'AdamCodd/vit-base-nsfw-detector'); - Transformers
How to use AdamCodd/vit-base-nsfw-detector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="AdamCodd/vit-base-nsfw-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("AdamCodd/vit-base-nsfw-detector") model = AutoModelForImageClassification.from_pretrained("AdamCodd/vit-base-nsfw-detector") - Notebooks
- Google Colab
- Kaggle
Commit History
Update README.md 14a51d3 verified
Update README.md dade703 verified
Update README.md 5d80490 verified
Update README.md 808eea2 verified
Update README.md 32127d5 verified
Update README.md fe9077d verified
Update README.md fd5a5db verified
Update README.md 0170c51 verified
Update README.md b520f1b verified
Update README.md 3185107 verified
Update README.md 1644df1 verified
Upload model_quantized.onnx e661a15 verified
Update README.md 2c67bee verified
Update README.md 5f85d2f verified
Update README.md e917874 verified
Update README.md 341d674
Upload confusion_matrix.png 31f3037
Update README.md 5506906
Update README.md 1d36b84
Create README.md 1e618fb
Upload 3 files 9456104
initial commit a9d220c
Adam commited on