Segment Anything in High Quality
Paper โข 2306.01567 โข Published โข 10
Run ductai199x/sam_hq_vit_huge on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/ductai199x/sam_hq_vit_huge. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/ductai199x/sam_hq_vit_huge on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use ductai199x/sam_hq_vit_huge with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("mask-generation", model="ductai199x/sam_hq_vit_huge", trust_remote_code=True) # pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForMaskGeneration
processor = AutoProcessor.from_pretrained("ductai199x/sam_hq_vit_huge", trust_remote_code=True)
model = AutoModelForMaskGeneration.from_pretrained("ductai199x/sam_hq_vit_huge", trust_remote_code=True, device_map="auto")Directly converted weights from https://github.com/SysCV/sam-hq/tree/main to huggingface format. This work does not belong to me. Please checkout the authors' github for more information and updates.
Segment Anything in High Quality
NeurIPS 2023
ETH Zurich & HKUST