Open mmmstew opened 1 year ago
As pytorch was not installed with CUDA, I uninstalled and corrected this. Now I have: pytorch 2.0.0+nv23.05 torchvision 0.15.1a0+42759b1
Now I have the following error:
user@user-orin:~/YOLOv8-DeepSORT-Object-Tracking/ultralytics/yolo/v8/detect$ python3 predict.py model=yolov8l.pt source="test3.mp4" show=True Traceback (most recent call last): File "predict.py", line 13, in
from ultralytics.yolo.engine.predictor import BasePredictor File "/home/user/YOLOv8-DeepSORT-Object-Tracking/ultralytics/init.py", line 5, in from ultralytics.hub import checks File "/home/user/YOLOv8-DeepSORT-Object-Tracking/ultralytics/hub/init.py", line 10, in from ultralytics.hub.auth import Auth File "/home/user/YOLOv8-DeepSORT-Object-Tracking/ultralytics/hub/auth.py", line 5, in from ultralytics.hub.utils import HUB_API_ROOT, request_with_credentials File "/home/user/YOLOv8-DeepSORT-Object-Tracking/ultralytics/hub/utils.py", line 10, in from ultralytics.yolo.utils import DEFAULT_CONFIG_DICT, LOGGER, RANK, SETTINGS, TryExcept, colorstr, emojis File "/home/user/YOLOv8-DeepSORT-Object-Tracking/ultralytics/yolo/utils/init.py", line 400, in SETTINGS = get_settings() File "/home/user/YOLOv8-DeepSORT-Object-Tracking/ultralytics/yolo/utils/init.py", line 371, in get_settings with torch_distributed_zero_first(RANK): File "/usr/lib/python3.8/contextlib.py", line 113, in enter return next(self.gen) File "/home/user/YOLOv8-DeepSORT-Object-Tracking/ultralytics/yolo/utils/torch_utils.py", line 34, in torch_distributed_zero_first initialized = torch.distributed.is_initialized() # prevent 'Default process group has not been initialized' errors AttributeError: module 'torch.distributed' has no attribute 'is_initialized'
In Python3:
torch.distributed.is_available() False
Is there a way to fix this?
I get the following error when running on Jetson Orin Nano development kit:
I have checked the Runtime error suggetion following the link https://github.com/pytorch/vision#installation and the following versions should be compatible: