HIBOU - Foundation models
Collection
A family of open Vision Foundation Models for pathology • 2 items • Updated • 8
How to use histai/hibou-b with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="histai/hibou-b", trust_remote_code=True) # Load model directly
from transformers import AutoImageProcessor, AutoModel
processor = AutoImageProcessor.from_pretrained("histai/hibou-b", trust_remote_code=True)
model = AutoModel.from_pretrained("histai/hibou-b", trust_remote_code=True)Hibou-B - a Foundational Vision Transformer for digital pathology pretrained on a private dataset using DINOv2 framework.
For more information and examples of usage visit https://github.com/HistAI/hibou and read the paper.
Hibou-L is also available at https://huggingface.co/histai/hibou-L.
Basic usage:
from transformers import AutoImageProcessor, AutoModel
processor = AutoImageProcessor.from_pretrained("histai/hibou-b", trust_remote_code=True)
model = AutoModel.from_pretrained("histai/hibou-b", trust_remote_code=True)
We use a customized implementation of the DINOv2 architecture from the transformers library to add support for registers, which requires the trust_remote_code=True flag.