Fix proc_device_model name for NVIDIA Jetson (#9876)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Lakshantha Dissanayake 2024-04-08 12:52:19 -07:00 committed by GitHub
parent f2ddc96334
commit c8388d952f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -498,7 +498,7 @@ def is_jetson() -> bool:
Returns:
(bool): True if running on a Jetson Nano or Jetson Orin, False otherwise.
"""
return "Jetson" in PROC_DEVICE_MODEL # i.e. "Jetson Nano" or "Jetson Orin"
return "NVIDIA" in PROC_DEVICE_MODEL # i.e. "NVIDIA Jetson Nano" or "NVIDIA Orin NX"
def is_online() -> bool: