Instructions to use buystufflive/safety-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use buystufflive/safety-classifier with timm:
import timm model = timm.create_model("hf-hub:buystufflive/safety-classifier", pretrained=True) - Notebooks
- Google Colab
- Kaggle
Download config.json from buystufflive/safety-classifier: direct link, hf CLI and curl.
- Browser
- Download file 288 Bytes
-
https://huggingface.co/buystufflive/safety-classifier/resolve/main/config.json
- Command line
-
hf download hf://buystufflive/safety-classifier/config.json
-
curl -L -o config.json https://huggingface.co/buystufflive/safety-classifier/resolve/main/config.json
288 Bytes
| { | |
| "architecture": "timm-spatial-flat-multitask", | |
| "model": "timm/mobilenetv4_conv_medium.e250_r384_in12k", | |
| "name": "Live Safety Classifier", | |
| "outputs": [ | |
| "screen", | |
| "safety" | |
| ], | |
| "resize_longest_side_px": 1024, | |
| "safety_labels": [ | |
| "hot", | |
| "nsfw", | |
| "safe" | |
| ] | |
| } | |