Instructions to use InspiratioNULL/image-safety-classifier-s-CoreML with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use InspiratioNULL/image-safety-classifier-s-CoreML with timm:
import timm model = timm.create_model("hf-hub:InspiratioNULL/image-safety-classifier-s-CoreML", pretrained=True) - Transformers
How to use InspiratioNULL/image-safety-classifier-s-CoreML with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="InspiratioNULL/image-safety-classifier-s-CoreML") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("InspiratioNULL/image-safety-classifier-s-CoreML", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 131 Bytes
1d64829 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:aec31b0aba3c6ec8a9415f53bcf5ee1149471abb10839f184b0169bfe8beb841
size 151735
|