Skip to content

Commit 91fbefa

Browse files
authored
Update README.md
1 parent 7ee2f38 commit 91fbefa

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,11 @@ Extract visual features from WSI patches using your foundation model:
125125
<summary>🔧 Example with KEEP</summary>
126126

127127
```python
128-
from transformers import AutoModel
129-
from torchvision import transforms
130-
from PIL import Image
131-
132128
# Load your base model
133129
model = AutoModel.from_pretrained("Astaxanthin/KEEP", trust_remote_code=True)
134130
model.eval()
135131

136-
# 🖼Setup transforms
132+
# Setup transforms
137133
transform = transforms.Compose([
138134
transforms.Resize(size=224, interpolation=transforms.InterpolationMode.BICUBIC),
139135
transforms.CenterCrop(size=(224, 224)),
@@ -277,3 +273,4 @@ If you find our work useful, please consider citing our paper:
277273
278274
279275
</div> -->
276+

0 commit comments

Comments
 (0)