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:
Laughing 2025-01-06 00:36:21 +08:00 committed by GitHub
parent 3f4b65623a
commit 00aefd795c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
# Ultralytics YOLO 🚀, AGPL-3.0 license # Ultralytics YOLO 🚀, AGPL-3.0 license
__version__ = "8.3.57" __version__ = "8.3.58"
import os import os

View file

@ -464,7 +464,7 @@ class ProfileModels:
# Model and input # Model and input
model = YOLO(engine_file) 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 # Warmup runs
elapsed = 0.0 elapsed = 0.0