Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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])
|
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()
|
|
|
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()
|