Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

kanguyen-vn
/
PRIMA

Image Segmentation
Transformers
Safetensors
English
prima
text-generation
computer-vision
multi-image-reasoning
pixel-grounding
vision-language
custom-code
custom_code
Model card Files Files and versions
xet
Community

Instructions to use kanguyen-vn/PRIMA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use kanguyen-vn/PRIMA with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-segmentation", model="kanguyen-vn/PRIMA", trust_remote_code=True)
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("kanguyen-vn/PRIMA", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
PRIMA / code /model /qformer
94.8 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
kanguyen-vn's picture
kanguyen-vn
Remove debug instrumentation and rename the M4Seg dataset adapter
5e66a57 verified about 13 hours ago
  • Qformer.py
    48.4 kB
    Include clean PRIMA code and evaluator; document metrics, initialization, and MIT contributions about 14 hours ago
  • base_model.py
    7.88 kB
    Include clean PRIMA code and evaluator; document metrics, initialization, and MIT contributions about 14 hours ago
  • blip2.py
    7.63 kB
    Include clean PRIMA code and evaluator; document metrics, initialization, and MIT contributions about 14 hours ago
  • dist_utils.py
    3.62 kB
    Include clean PRIMA code and evaluator; document metrics, initialization, and MIT contributions about 14 hours ago
  • eva_vit.py
    21.1 kB
    Remove debug instrumentation and rename the M4Seg dataset adapter about 13 hours ago
  • utils.py
    6.14 kB
    Include clean PRIMA code and evaluator; document metrics, initialization, and MIT contributions about 14 hours ago