Julián Tachella commited on
Commit
6889237
·
1 Parent(s): de4a2f9
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ def pil_to_torch(image):
10
  image = image.transpose((2, 0, 1))
11
  image = torch.tensor(image).float() / 255
12
  image = image.unsqueeze(0)
13
- image = torch.nn.functional.interpolate(image.unsqueeze(0), size=(128, 128*image.shape[3]//image.shape[2]))
14
  return image
15
 
16
 
 
10
  image = image.transpose((2, 0, 1))
11
  image = torch.tensor(image).float() / 255
12
  image = image.unsqueeze(0)
13
+ image = torch.nn.functional.interpolate(image, size=(128, 128*image.shape[3]//image.shape[2]))
14
  return image
15
 
16