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

Marqo
/
marqo-fashionCLIP

Zero-Shot Image Classification
OpenCLIP
ONNX
Safetensors
Transformers.js
Transformers
English
clip
e-commerce
fashion
multimodal retrieval
custom_code
Model card Files Files and versions
xet
Community
2

Instructions to use Marqo/marqo-fashionCLIP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • OpenCLIP

    How to use Marqo/marqo-fashionCLIP with OpenCLIP:

    import open_clip
    
    model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:Marqo/marqo-fashionCLIP')
    tokenizer = open_clip.get_tokenizer('hf-hub:Marqo/marqo-fashionCLIP')
  • Transformers.js

    How to use Marqo/marqo-fashionCLIP with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('zero-shot-image-classification', 'Marqo/marqo-fashionCLIP');
  • Transformers

    How to use Marqo/marqo-fashionCLIP with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-image-classification", model="Marqo/marqo-fashionCLIP", 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 AutoModel
    model = AutoModel.from_pretrained("Marqo/marqo-fashionCLIP", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
marqo-fashionCLIP
3.72 GB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 15 commits
Jesse-marqo's picture
Jesse-marqo
Update README.md
44f4c65 verified over 1 year ago
  • onnx
    Upload ONNX weights (+ quantizations) (#1) almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    6.83 kB
    Update README.md over 1 year ago
  • config.json
    275 Bytes
    Add support for AutoModel over 1 year ago
  • marqo_fashionCLIP.py
    2.31 kB
    Add support for AutoModel over 1 year ago
  • merges.txt
    525 kB
    Add model almost 2 years ago
  • model.safetensors
    599 MB
    xet
    Add support for AutoModel over 1 year ago
  • open_clip_config.json
    532 Bytes
    Add model almost 2 years ago
  • open_clip_model.safetensors
    599 MB
    xet
    Add model almost 2 years ago
  • open_clip_pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    599 MB
    xet
    Add model almost 2 years ago
  • preprocessor_config.json
    544 Bytes
    Add support for AutoModel over 1 year ago
  • special_tokens_map.json
    576 Bytes
    Add support for AutoModel over 1 year ago
  • tokenizer.json
    2.22 MB
    Add model almost 2 years ago
  • tokenizer_config.json
    693 Bytes
    Add support for AutoModel over 1 year ago
  • vocab.json
    862 kB
    Add model almost 2 years ago