runtime error

Traceback (most recent call last): File "/home/user/.local/lib/python3.10/site-packages/ultralytics/nn/tasks.py", line 634, 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 1026, in load return _load(opened_zipfile, File "/home/user/.local/lib/python3.10/site-packages/torch/serialization.py", line 1438, in _load result = unpickler.load() File "/home/user/.local/lib/python3.10/site-packages/torch/serialization.py", line 1431, 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 10, in <module> model = YOLO(model_path) File "/home/user/.local/lib/python3.10/site-packages/ultralytics/engine/model.py", line 95, in __init__ self._load(model, task) File "/home/user/.local/lib/python3.10/site-packages/ultralytics/engine/model.py", line 161, 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 700, 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 638, 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...