Vijish commited on
Commit
0d6916b
1 Parent(s): be31d6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,8 +50,8 @@ def predict(img,text):
50
 
51
  image_features.cpu().numpy()
52
 
53
- image_mean = torch.tensor([0.48145466, 0.4578275, 0.40821073]).cuda()
54
- image_std = torch.tensor([0.26862954, 0.26130258, 0.27577711]).cuda()
55
 
56
  images = [preprocess(im) for im in l]
57
  image_input = torch.tensor(np.stack(images)).cuda()
 
50
 
51
  image_features.cpu().numpy()
52
 
53
+ image_mean = torch.tensor([0.48145466, 0.4578275, 0.40821073])
54
+ image_std = torch.tensor([0.26862954, 0.26130258, 0.27577711])
55
 
56
  images = [preprocess(im) for im in l]
57
  image_input = torch.tensor(np.stack(images)).cuda()