Spaces:
Sleeping
Sleeping
Update tasks/image.py
Browse files- 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/
|
145 |
INFERENCE_ENGINE_TYPE = 'pt'
|
146 |
INPUT_SIZE = 640
|
147 |
N_TEST_BATCHES = 2
|
148 |
-
BATCH_SIZE =
|
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
|