facebookresearch / detectron2

Detectron2 is a platform for object detection, segmentation and other visual recognition tasks.
https://detectron2.readthedocs.io/en/latest/
Apache License 2.0
29.3k stars 7.32k forks source link

The comits you are making are breaking the code!!! #5267

Closed sebastianfernandezgarcia closed 2 months ago

sebastianfernandezgarcia commented 2 months ago

.0 pathspec-0.12.1 platformdirs-4.2.0 portalocker-2.8.2 pycocotools-2.0.7 tabulate-0.9.0 tensorboard-2.16.2 tensorboard-data-server-0.7.2 termcolor-2.4.0 tomli-2.0.1 werkzeug-3.0.2 yacs-0.1.8

[notice] A new release of pip available: 22.3.1 -> 24.0 [notice] To update, run: python -m pip install --upgrade pip Cloning into 'unilm'... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 500 100 500 0 0 1477 0 --:--:-- --:--:-- --:--:-- 1479 Traceback (most recent call last): File "/home/user/app/app.py", line 39, in predictor = DefaultPredictor(cfg) File "/home/user/app/detectron2/detectron2/engine/defaults.py", line 288, in init checkpointer.load(cfg.MODEL.WEIGHTS) File "/home/user/app/detectron2/detectron2/checkpoint/detection_checkpoint.py", line 62, in load ret = super().load(path, *args, kwargs) File "/home/user/.local/lib/python3.10/site-packages/fvcore/common/checkpoint.py", line 155, in load checkpoint = self._load_file(path) File "/home/user/app/detectron2/detectron2/checkpoint/detection_checkpoint.py", line 99, in _load_file loaded = self._torch_load(filename) File "/home/user/app/detectron2/detectron2/checkpoint/detection_checkpoint.py", line 114, in _torch_load return super()._load_file(f) File "/home/user/.local/lib/python3.10/site-packages/fvcore/common/checkpoint.py", line 252, in _load_file return torch.load(f, map_location=torch.device("cpu")) File "/home/user/.local/lib/python3.10/site-packages/torch/serialization.py", line 713, in load return _legacy_load(opened_file, map_location, pickle_module, pickle_load_args) File "/home/user/.local/lib/python3.10/site-packages/torch/serialization.py", line 920, in _legacy_load magic_number = pickle_module.load(f, **pickle_load_args) _pickle.UnpicklingError: invalid load key, '\xef'.

github-actions[bot] commented 2 months ago

You've chosen to report an unexpected problem or bug. Unless you already know the root cause of it, please include details about it by filling the issue template. The following information is missing: "Instructions To Reproduce the Issue and Full Logs"; "Your Environment";