Instructions to use wanglab/medsam-vit-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wanglab/medsam-vit-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("mask-generation", model="wanglab/medsam-vit-base", device_map="auto")# Load model directly from transformers import AutoProcessor, AutoModelForMaskGeneration processor = AutoProcessor.from_pretrained("wanglab/medsam-vit-base") model = AutoModelForMaskGeneration.from_pretrained("wanglab/medsam-vit-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
35e561f | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:0ef67838fba16f16c0e308eaf7a3ae6fbf4fe8e13d7a120ca932671ed9c47db0
size 375045749
|