Transformers How to use MLforHealthcare/sam2rad with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-segmentation", model="MLforHealthcare/sam2rad") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("MLforHealthcare/sam2rad", dtype="auto")