Spaces:
Sleeping
Sleeping
tensorrt yolov11n model 32 batch
Browse files
models/best_YOLOv11n_1280_full_batch_32.engine
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:55f7b861569dad947ed867c58845efe65444a39e9f736614a9ccccda4eb36a84
|
3 |
+
size 14299403
|
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 =
|
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_YOLOv11n_1280_full_batch_32.engine'
|
145 |
INFERENCE_ENGINE_TYPE = 'pt'
|
146 |
+
INPUT_SIZE = 1280
|
147 |
N_TEST_BATCHES = 2
|
148 |
+
BATCH_SIZE = 32 # 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
|