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

qihoo360
/
fg-clip-base

Zero-Shot Image Classification
Transformers
Safetensors
English
clip
text-generation
custom_code
Model card Files Files and versions
xet
Community
1

Instructions to use qihoo360/fg-clip-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use qihoo360/fg-clip-base with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-image-classification", model="qihoo360/fg-clip-base", trust_remote_code=True)
    pipe(
        "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png",
        candidate_labels=["animals", "humans", "landscape"],
    )
    # Load model directly
    from transformers import AutoProcessor, AutoModelForCausalLM
    
    processor = AutoProcessor.from_pretrained("qihoo360/fg-clip-base", trust_remote_code=True)
    model = AutoModelForCausalLM.from_pretrained("qihoo360/fg-clip-base", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
fg-clip-base
604 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 12 commits
xiechunyu's picture
xiechunyu
Update README.md
454d763 verified 7 months ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    5.21 kB
    Update README.md 7 months ago
  • config.json
    4.27 kB
    sec commit about 1 year ago
  • merges.txt
    525 kB
    first commit about 1 year ago
  • model.safetensors
    601 MB
    xet
    sec commit about 1 year ago
  • modeling_clip.py
    103 kB
    sec commit about 1 year ago
  • modeling_fgclip.py
    9.51 kB
    Update modeling_fgclip.py 12 months ago
  • preprocessor_config.json
    316 Bytes
    first commit about 1 year ago
  • special_tokens_map.json
    389 Bytes
    first commit about 1 year ago
  • tokenizer.json
    2.22 MB
    first commit about 1 year ago
  • tokenizer_config.json
    905 Bytes
    first commit about 1 year ago
  • vocab.json
    961 kB
    first commit about 1 year ago