Commit ·
6bacf01
1
Parent(s): 8f294b5
Update pipeline.py (#1)
Browse files- Update pipeline.py (8085a1b108c107456579c23e3ea0fc5ecd33103c)
Co-authored-by: Philipp Schmid <philschmid@users.noreply.huggingface.co>
14 unmodified lines1516171819202114 unmodified linesdef __init__(self, path=""):# load the optimized modelself.model_url = 'https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model_large_caption.pth'self.model = blip_decoder(pretrained=self.model_url, image_size=384, vit='large')self.model.eval()self.model = self.model.to(device)14 unmodified lines1516171819202114 unmodified linesdef __init__(self, path=""):# load the optimized modelself.model_url = 'https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model_large_caption.pth'self.model = blip_decoder(pretrained=self.model_url, image_size=384, vit='large',med_config=os.path.join(path, 'configs/med_config.json'))self.model.eval()self.model = self.model.to(device)
pipeline.py+1-1