aje6 commited on
Commit
0db5585
·
verified ·
1 Parent(s): c451c54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -21,7 +21,7 @@ def predict(image):
21
  image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
22
  print("converted the colour to RGB.")
23
 
24
- img_tensor = transform(image).unsqueeze(0) # Add batch dimension
25
 
26
  # # Make prediction
27
  # with torch.no_grad():
@@ -29,9 +29,10 @@ def predict(image):
29
 
30
  # Process output (adjust based on your model's format)
31
  results = model(image)
 
32
  annotated_img = results[0].plot()
33
-
34
- print(type(annotated_img))
35
 
36
  return annotated_img
37
 
 
21
  image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
22
  print("converted the colour to RGB.")
23
 
24
+ # img_tensor = transform(image).unsqueeze(0) # Add batch dimension
25
 
26
  # # Make prediction
27
  # with torch.no_grad():
 
29
 
30
  # Process output (adjust based on your model's format)
31
  results = model(image)
32
+ print("ran the model")
33
  annotated_img = results[0].plot()
34
+ print("got annotated img")
35
+ print("type annotated img:", type(annotated_img))
36
 
37
  return annotated_img
38