Amiel commited on
Commit
4fe8ec2
·
unverified ·
1 Parent(s): 6fd4c7c

Update tasks/image.py

Browse files
Files changed (1) hide show
  1. tasks/image.py +2 -2
tasks/image.py CHANGED
@@ -141,11 +141,11 @@ async def evaluate_image(request: ImageEvaluationRequest):
141
  #PATH_TO_MODEL = 'models/best_YOLOv11n_1280.onnx'
142
  #PATH_TO_MODEL = 'models/best_yolov6n_1280.pt'
143
  #PATH_TO_MODEL = 'models/best_YOLOv11n_1280_real_half.onnx'
144
- PATH_TO_MODEL = 'models/best_YOLOv8n_half_batch_64.engine'
145
  INFERENCE_ENGINE_TYPE = 'pt'
146
  INPUT_SIZE = 640
147
  N_TEST_BATCHES = 2
148
- BATCH_SIZE = 64 # Can be adjusted as needed
149
  print("PATH_TO_MODEL", PATH_TO_MODEL)
150
  def preprocessor(frame):
151
  #frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) # Only when read from file
 
141
  #PATH_TO_MODEL = 'models/best_YOLOv11n_1280.onnx'
142
  #PATH_TO_MODEL = 'models/best_yolov6n_1280.pt'
143
  #PATH_TO_MODEL = 'models/best_YOLOv11n_1280_real_half.onnx'
144
+ PATH_TO_MODEL = 'models/best_YOLOv8n_half_batch_128.engine'
145
  INFERENCE_ENGINE_TYPE = 'pt'
146
  INPUT_SIZE = 640
147
  N_TEST_BATCHES = 2
148
+ BATCH_SIZE = 128 # Can be adjusted as needed
149
  print("PATH_TO_MODEL", PATH_TO_MODEL)
150
  def preprocessor(frame):
151
  #frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) # Only when read from file