ShAnSantosh commited on
Commit
3d8ee2c
·
1 Parent(s): 21637d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -35,7 +35,6 @@ labels = {0: 'bacterial_leaf_blight',
35
  def inference_fn(model, image=None):
36
  model.eval()
37
  image = image.to(device)
38
- print(image.shape)
39
  with torch.no_grad():
40
  output = model(image.unsqueeze(0))
41
  out = output.sigmoid().detach().cpu().numpy().flatten()
@@ -43,7 +42,7 @@ def inference_fn(model, image=None):
43
 
44
 
45
  def predict(image = None) :
46
- image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
47
  mean = (0.485, 0.456, 0.406)
48
  std = (0.229, 0.224, 0.225)
49
 
 
35
  def inference_fn(model, image=None):
36
  model.eval()
37
  image = image.to(device)
 
38
  with torch.no_grad():
39
  output = model(image.unsqueeze(0))
40
  out = output.sigmoid().detach().cpu().numpy().flatten()
 
42
 
43
 
44
  def predict(image = None) :
45
+ #image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
46
  mean = (0.485, 0.456, 0.406)
47
  std = (0.229, 0.224, 0.225)
48