Demo750 commited on
Commit
3ec95c7
1 Parent(s): 39ae7e7

Update XGBoost_utils.py

Browse files
Files changed (1) hide show
  1. 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