Jyothirmai commited on
Commit
748c95d
1 Parent(s): 247c99a

Update clipGPT.py

Browse files
Files changed (1) hide show
  1. clipGPT.py +1 -1
clipGPT.py CHANGED
@@ -159,7 +159,7 @@ def generate_caption_clipgpt(img):
159
 
160
  start_time = time.time()
161
  # pil_image = PIL.Image.fromarray(img)
162
- image = preprocess(pil_image).unsqueeze(0).to(device)
163
 
164
  with torch.no_grad():
165
  prefix = clip_model.encode_image(image).to(device, dtype=torch.float32)
 
159
 
160
  start_time = time.time()
161
  # pil_image = PIL.Image.fromarray(img)
162
+ image = preprocess(img).unsqueeze(0).to(device)
163
 
164
  with torch.no_grad():
165
  prefix = clip_model.encode_image(image).to(device, dtype=torch.float32)