florentgbelidji HF staff commited on
Commit
f0b2295
·
1 Parent(s): a77885d

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +1 -1
pipeline.py CHANGED
@@ -14,7 +14,7 @@ device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
14
  class PreTrainedPipeline():
15
  def __init__(self, path=""):
16
  # load the optimized model
17
- self.model_path = 'model_large_caption.pth'
18
  self.model = blip_decoder(
19
  pretrained=self.model_path,
20
  image_size=384,
 
14
  class PreTrainedPipeline():
15
  def __init__(self, path=""):
16
  # load the optimized model
17
+ self.model_path = os.path.join(path,'model_large_caption.pth')
18
  self.model = blip_decoder(
19
  pretrained=self.model_path,
20
  image_size=384,