rsortino commited on
Commit
087d140
·
verified ·
1 Parent(s): 498680f

Update tasks/image.py

Browse files
Files changed (1) hide show
  1. tasks/image.py +1 -1
tasks/image.py CHANGED
@@ -122,7 +122,7 @@ async def evaluate_image(request: ImageEvaluationRequest):
122
  # Make prediction with model
123
  image = example['image']
124
  with torch.inference_mode():
125
- pred = model(image, conf=0.4)[0]
126
  smoke_detected = pred.boxes.xywhn.shape[0] > 0
127
  predictions.append(int(smoke_detected))
128
 
 
122
  # Make prediction with model
123
  image = example['image']
124
  with torch.inference_mode():
125
+ pred = model(image, conf=0.03)[0]
126
  smoke_detected = pred.boxes.xywhn.shape[0] > 0
127
  predictions.append(int(smoke_detected))
128