Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

OwenElliott
/
image-safety-classifier-s

Image Classification
timm
PyTorch
ONNX
Safetensors
Transformers
Model card Files Files and versions
xet
Community

Instructions to use OwenElliott/image-safety-classifier-s with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • timm

    How to use OwenElliott/image-safety-classifier-s with timm:

    import timm
    
    model = timm.create_model("hf_hub:OwenElliott/image-safety-classifier-s", pretrained=True)
  • Transformers

    How to use OwenElliott/image-safety-classifier-s with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="OwenElliott/image-safety-classifier-s")
    pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("OwenElliott/image-safety-classifier-s", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
image-safety-classifier-s
70.4 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 10 commits
OwenElliott's picture
OwenElliott
Upload README.md with huggingface_hub
015042b verified 3 months ago
  • images
    Upload images/NSFW-SFW-per-class-Comparison.png with huggingface_hub 4 months ago
  • onnx
    Upload onnx/image-safety-classifier-s.onnx with huggingface_hub 4 months ago
  • .gitattributes
    1.84 kB
    Upload images/NSFW-SFW-per-class-Comparison.png with huggingface_hub 4 months ago
  • README.md
    6.21 kB
    Upload README.md with huggingface_hub 3 months ago
  • config.json
    917 Bytes
    Add model 4 months ago
  • model.safetensors
    22.6 MB
    xet
    Add model 4 months ago
  • pytorch_model.bin

    Detected Pickle imports (4)

    • "torch.LongStorage",
    • "collections.OrderedDict",
    • "torch.FloatStorage",
    • "torch._utils._rebuild_tensor_v2"

    What is a pickle import?

    22.7 MB
    xet
    Add model 4 months ago