runtime error

Traceback (most recent call last): File "/home/user/.local/lib/python3.10/site-packages/ultralytics/nn/tasks.py", line 567, in torch_safe_load return torch.load(file, map_location='cpu'), file # load File "/home/user/.local/lib/python3.10/site-packages/torch/serialization.py", line 1014, in load return _load(opened_zipfile, File "/home/user/.local/lib/python3.10/site-packages/torch/serialization.py", line 1422, in _load result = unpickler.load() File "/home/user/.local/lib/python3.10/site-packages/torch/serialization.py", line 1415, in find_class return super().find_class(mod_name, name) ModuleNotFoundError: No module named 'models' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/user/app/app.py", line 32, in <module> model = YOLO('best.pt') File "/home/user/.local/lib/python3.10/site-packages/ultralytics/engine/model.py", line 97, in __init__ self._load(model, task) File "/home/user/.local/lib/python3.10/site-packages/ultralytics/engine/model.py", line 149, in _load self.model, self.ckpt = attempt_load_one_weight(weights) File "/home/user/.local/lib/python3.10/site-packages/ultralytics/nn/tasks.py", line 628, in attempt_load_one_weight ckpt, weight = torch_safe_load(weight) # load ckpt File "/home/user/.local/lib/python3.10/site-packages/ultralytics/nn/tasks.py", line 571, in torch_safe_load raise TypeError( TypeError: ERROR ❌️ best.pt appears to be an Ultralytics YOLOv5 model originally trained with https://github.com/ultralytics/yolov5. This model is NOT forwards compatible with YOLOv8 at https://github.com/ultralytics/ultralytics. Recommend fixes are to train a new model using the latest 'ultralytics' package or to run a command with an official YOLOv8 model, i.e. 'yolo predict model=yolov8n.pt'

Container logs:

Fetching error logs...