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-clip2-large

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

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

  • Libraries
  • Transformers

    How to use qihoo360/fg-clip2-large with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-image-classification", model="qihoo360/fg-clip2-large", 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 AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("qihoo360/fg-clip2-large", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
fg-clip2-large
3.63 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 11 commits
qingshan777's picture
qingshan777
Update README.md
4d1d5dc verified 7 months ago
  • .gitattributes
    1.57 kB
    upload first 8 months ago
  • README.md
    10.1 kB
    Update README.md 7 months ago
  • config.json
    1.11 kB
    upload first 8 months ago
  • configuration_fgclip2.py
    13.3 kB
    upload first 8 months ago
  • model.safetensors
    3.59 GB
    xet
    upload first 8 months ago
  • modeling_fgclip2.py
    60.1 kB
    upload first 8 months ago
  • preprocessor_config.json
    393 Bytes
    upload first 8 months ago
  • special_tokens_map.json
    636 Bytes
    upload first 8 months ago
  • tokenizer.json
    34.4 MB
    xet
    upload first 8 months ago
  • tokenizer.model
    4.24 MB
    xet
    upload first 8 months ago
  • tokenizer_config.json
    40.2 kB
    upload first 8 months ago