Spaces:
Sleeping
Sleeping
updated utils
Browse files- utils/Caption.py +0 -1
utils/Caption.py
CHANGED
@@ -7,7 +7,6 @@ def get_caption(image):
|
|
7 |
|
8 |
model = AutoModel.from_pretrained('openbmb/MiniCPM-Llama3-V-2_5', trust_remote_code=True, torch_dtype=torch.float16)
|
9 |
model = model.to(device='cuda')
|
10 |
-
image.to(device='cuda')
|
11 |
tokenizer = AutoTokenizer.from_pretrained('openbmb/MiniCPM-Llama3-V-2_5', trust_remote_code=True)
|
12 |
model.eval()
|
13 |
question = "Describe the image."
|
|
|
7 |
|
8 |
model = AutoModel.from_pretrained('openbmb/MiniCPM-Llama3-V-2_5', trust_remote_code=True, torch_dtype=torch.float16)
|
9 |
model = model.to(device='cuda')
|
|
|
10 |
tokenizer = AutoTokenizer.from_pretrained('openbmb/MiniCPM-Llama3-V-2_5', trust_remote_code=True)
|
11 |
model.eval()
|
12 |
question = "Describe the image."
|