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 preprocess.json from buystufflive/safety-classifier: direct link, hf CLI and curl.
- Browser
- Download file 232 Bytes
-
https://huggingface.co/buystufflive/safety-classifier/resolve/main/preprocess.json
- Command line
-
hf download hf://buystufflive/safety-classifier/preprocess.json
-
curl -L -o preprocess.json https://huggingface.co/buystufflive/safety-classifier/resolve/main/preprocess.json
232 Bytes
| { | |
| "crop": false, | |
| "horizontal_flip": false, | |
| "mean": [ | |
| 0.485, | |
| 0.456, | |
| 0.406 | |
| ], | |
| "preserve_aspect_ratio": true, | |
| "resize_longest_side_px": 1024, | |
| "std": [ | |
| 0.229, | |
| 0.224, | |
| 0.225 | |
| ], | |
| "stretch": false | |
| } | |