Inoob commited on
Commit
c4eb3a6
·
verified ·
1 Parent(s): 4b490bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -179,7 +179,8 @@ def inference(image):
179
  image_path = image
180
 
181
  image_tensor = cv2.imread(image_path)
182
- mask = predict(net, image_tensor)
 
183
 
184
 
185
  return [mask,mask]
 
179
  image_path = image
180
 
181
  image_tensor = cv2.imread(image_path)
182
+ with torch.no_grad():
183
+ mask = predict(net, image_tensor)
184
 
185
 
186
  return [mask,mask]