Update modules/models/lseg_vit.py
Browse files
modules/models/lseg_vit.py
CHANGED
@@ -221,7 +221,7 @@ def get_readout_oper(vit_features, features, use_readout, start_index=1):
|
|
221 |
def _make_pretrained_clip_vitl16_384(
|
222 |
pretrained, use_readout="ignore", hooks=None, enable_attention_hooks=False
|
223 |
):
|
224 |
-
clip_pretrained, _ = clip.load("ViT-B/32", device='
|
225 |
model = timm.create_model("vit_large_patch16_384", pretrained=pretrained)
|
226 |
|
227 |
hooks = [5, 11, 17, 23] if hooks == None else hooks
|
|
|
221 |
def _make_pretrained_clip_vitl16_384(
|
222 |
pretrained, use_readout="ignore", hooks=None, enable_attention_hooks=False
|
223 |
):
|
224 |
+
clip_pretrained, _ = clip.load("ViT-B/32", device='cpu', jit=False)
|
225 |
model = timm.create_model("vit_large_patch16_384", pretrained=pretrained)
|
226 |
|
227 |
hooks = [5, 11, 17, 23] if hooks == None else hooks
|