Spaces:
Running
Running
Update XGBoost_utils.py
Browse files- XGBoost_utils.py +0 -1
XGBoost_utils.py
CHANGED
@@ -595,7 +595,6 @@ def RMSRPD(y_pred, y_true):
|
|
595 |
|
596 |
def Caption_Generation(image): #image is a PIL Image object
|
597 |
with torch.no_grad():
|
598 |
-
image = image.convert('RGB')
|
599 |
model = AutoModel.from_pretrained('openbmb/MiniCPM-V-2', trust_remote_code=True, torch_dtype=torch.float16)
|
600 |
model = model.to(device='cpu', dtype=torch.float32).eval()
|
601 |
|
|
|
595 |
|
596 |
def Caption_Generation(image): #image is a PIL Image object
|
597 |
with torch.no_grad():
|
|
|
598 |
model = AutoModel.from_pretrained('openbmb/MiniCPM-V-2', trust_remote_code=True, torch_dtype=torch.float16)
|
599 |
model = model.to(device='cpu', dtype=torch.float32).eval()
|
600 |
|