File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff 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
133129model = AutoModel.from_pretrained(" Astaxanthin/KEEP" , trust_remote_code = True )
134130model.eval()
135131
136- # 🖼 Setup transforms
132+ # Setup transforms
137133transform = 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+
You can’t perform that action at this time.
0 commit comments