javierabad01 commited on
Commit
94e9f15
·
verified ·
1 Parent(s): 8aa3fcf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -43,10 +43,11 @@ def process_img(image):
43
  img = img / 255.
44
  img = img.astype(np.float32)
45
 
46
- resize = transforms.Resize((720, 1280))
47
- img = resize(img)
48
 
49
  y = torch.tensor(img).permute(2,0,1).unsqueeze(0).to(device)
 
 
50
 
51
  with torch.no_grad():
52
  x_hat = model(y)
 
43
  img = img / 255.
44
  img = img.astype(np.float32)
45
 
46
+
 
47
 
48
  y = torch.tensor(img).permute(2,0,1).unsqueeze(0).to(device)
49
+ resize = transforms.Resize((720, 1280))
50
+ y = resize(y)
51
 
52
  with torch.no_grad():
53
  x_hat = model(y)