ultralytics 8.3.58 Use uint8 type for TensorRT Profile (#18327)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: Ultralytics Assistant <135830346+UltralyticsAssistant@users.noreply.github.com>
This commit is contained in:
parent
3f4b65623a
commit
00aefd795c
2 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
||||
|
||||
__version__ = "8.3.57"
|
||||
__version__ = "8.3.58"
|
||||
|
||||
import os
|
||||
|
||||
|
|
|
|||
|
|
@ -464,7 +464,7 @@ class ProfileModels:
|
|||
|
||||
# Model and input
|
||||
model = YOLO(engine_file)
|
||||
input_data = np.random.rand(self.imgsz, self.imgsz, 3).astype(np.float32) # must be FP32
|
||||
input_data = np.zeros((self.imgsz, self.imgsz, 3), dtype=np.uint8) # use uint8 for Classify
|
||||
|
||||
# Warmup runs
|
||||
elapsed = 0.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue