runtime error
Exit code: 1. Reason: bitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature. ckpt = torch.load(file, map_location="cpu") Traceback (most recent call last): File "/home/user/app/app.py", line 63, in <module> model = YOLOv10(os.path.join(os.path.dirname(__file__), "models", "DocLayout-YOLO-DocStructBench", "doclayout_yolo_docstructbench_imgsz1024.pt")) # load an official model File "/usr/local/lib/python3.10/site-packages/doclayout_yolo/models/yolov10/model.py", line 10, in __init__ super().__init__(model=model, task=task, verbose=verbose) File "/usr/local/lib/python3.10/site-packages/doclayout_yolo/engine/model.py", line 144, in __init__ self._load(model, task=task) File "/usr/local/lib/python3.10/site-packages/doclayout_yolo/engine/model.py", line 233, in _load self.model, self.ckpt = attempt_load_one_weight(weights) File "/usr/local/lib/python3.10/site-packages/doclayout_yolo/nn/tasks.py", line 807, in attempt_load_one_weight ckpt, weight = torch_safe_load(weight) # load ckpt File "/usr/local/lib/python3.10/site-packages/doclayout_yolo/nn/tasks.py", line 733, in torch_safe_load ckpt = torch.load(file, map_location="cpu") File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 1319, in load with _open_file_like(f, "rb") as opened_file: File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 659, in _open_file_like return _open_file(name_or_buffer, mode) File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 640, in __init__ super().__init__(open(name, mode)) FileNotFoundError: [Errno 2] No such file or directory: '/home/user/app/models/DocLayout-YOLO-DocStructBench/doclayout_yolo_docstructbench_imgsz1024.pt'
Container logs:
Fetching error logs...