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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

jaranohaal
/
vit-base-violence-detection

Image Classification
Transformers
PyTorch
Safetensors
English
vision
violence-detection
Model card Files Files and versions
xet
Community
7

Instructions to use jaranohaal/vit-base-violence-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use jaranohaal/vit-base-violence-detection with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="jaranohaal/vit-base-violence-detection")
    pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")
    # Load model directly
    from transformers import AutoModelForImageClassification
    model = AutoModelForImageClassification.from_pretrained("jaranohaal/vit-base-violence-detection", dtype="auto")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
vit-base-violence-detection
686 MB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 9 commits
jaranohaal's picture
jaranohaal
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model (#4)
3193109 verified about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    1.74 kB
    Update README.md almost 2 years ago
  • config.json
    523 Bytes
    Update config.json (#3) almost 2 years ago
  • model.safetensors
    343 MB
    xet
    Adding `safetensors` variant of this model (#4) about 1 year ago
  • preprocessor_config.json
    580 Bytes
    Initial commit of ViT model for violence detection almost 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    343 MB
    xet
    Initial commit of ViT model for violence detection almost 2 years ago