shivambhosale commited on
Commit
f9f8b5c
1 Parent(s): 9272dbc

Update make_predictions.py

Browse files
Files changed (1) hide show
  1. make_predictions.py +1 -1
make_predictions.py CHANGED
@@ -8,7 +8,7 @@ def make_predictions(model, input_img, threshold = 0.05):
8
  image = input_img
9
  image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
10
  image = image.astype("float32") / 255.0
11
- image = cv2.resize(image, (height, width))
12
  image = np.transpose(image, (2, 0, 1))
13
  image = np.expand_dims(image, 0)
14
  image = torch.from_numpy(image).to(device)
8
  image = input_img
9
  image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
10
  image = image.astype("float32") / 255.0
11
+ image = cv2.resize(image, (256, 256))
12
  image = np.transpose(image, (2, 0, 1))
13
  image = np.expand_dims(image, 0)
14
  image = torch.from_numpy(image).to(device)