Update pipeline.py
#1
by
philschmid
HF staff
- opened
- pipeline.py +1 -1
pipeline.py
CHANGED
@@ -15,7 +15,7 @@ class PreTrainedPipeline():
|
|
15 |
def __init__(self, path=""):
|
16 |
# load the optimized model
|
17 |
self.model_url = 'https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model_large_caption.pth'
|
18 |
-
self.model = blip_decoder(pretrained=self.model_url, image_size=384, vit='large')
|
19 |
self.model.eval()
|
20 |
self.model = self.model.to(device)
|
21 |
|
|
|
15 |
def __init__(self, path=""):
|
16 |
# load the optimized model
|
17 |
self.model_url = 'https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model_large_caption.pth'
|
18 |
+
self.model = blip_decoder(pretrained=self.model_url, image_size=384, vit='large',med_config=os.path.join(path, 'configs/med_config.json'))
|
19 |
self.model.eval()
|
20 |
self.model = self.model.to(device)
|
21 |
|