Solving the Typographical error in the __init__ function
Browse files- utils/caption_utils.py +1 -1
utils/caption_utils.py
CHANGED
@@ -7,7 +7,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
7 |
|
8 |
class ImageCaptioning:
|
9 |
|
10 |
-
def
|
11 |
self.processor = BlipProcessor.from_pretrained("Salesforce/blip-image-captioning-base")
|
12 |
self.model = BlipForConditionalGeneration.from_pretrained("Salesforce/blip-image-captioning-base").to(device)
|
13 |
|
|
|
7 |
|
8 |
class ImageCaptioning:
|
9 |
|
10 |
+
def __init__(self):
|
11 |
self.processor = BlipProcessor.from_pretrained("Salesforce/blip-image-captioning-base")
|
12 |
self.model = BlipForConditionalGeneration.from_pretrained("Salesforce/blip-image-captioning-base").to(device)
|
13 |
|