Fix proc_device_model name for NVIDIA Jetson (#9876)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/9884/head
Lakshantha Dissanayake 7 months ago committed by GitHub
parent f2ddc96334
commit c8388d952f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ultralytics/utils/__init__.py

@ -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:

Loading…
Cancel
Save