Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,16 @@
|
|
1 |
-
---
|
2 |
-
license: apache-2.0
|
3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
---
|
4 |
+
|
5 |
+
Hibou-B - a Foundational Vision Transformer for digital pathology pretrained on a private dataset using DINOv2 framework.
|
6 |
+
|
7 |
+
For more information and examples of usage visit [https://github.com/HistAI/hibou](https://github.com/HistAI/hibou) and read the [paper](https://arxiv.org/abs/2406.05074).
|
8 |
+
|
9 |
+
Basic usage:
|
10 |
+
```python
|
11 |
+
from transformers import AutoImageProcessor, AutoModel
|
12 |
+
|
13 |
+
processor = AutoImageProcessor.from_pretrained("histai/hibou-b", trust_remote_code=True)
|
14 |
+
model = AutoModel.from_pretrained("histai/hibou-b", trust_remote_code=True)
|
15 |
+
```
|
16 |
+
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.
|