Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config File Publaynet fastrcnn _pickle.UnpicklingError: invalid load key, '<'. error #19

Open
Niteshiya opened this issue May 17, 2023 · 0 comments

Comments

@Niteshiya
Copy link

Here is the log gived a pickle error . Also attached a error txt file for full output
Traceback (most recent call last): File "/Users/niteshkumar/PycharmProjects/layout_parser/layout-model-training/tools/train_net.py", line 222, in <module> launch( File "/Users/niteshkumar/PycharmProjects/layout_parser/venv/lib/python3.9/site-packages/detectron2/engine/launch.py", line 84, in launch main_func(*args) File "/Users/niteshkumar/PycharmProjects/layout_parser/layout-model-training/tools/train_net.py", line 182, in main trainer.resume_or_load(resume=args.resume) File "/Users/niteshkumar/PycharmProjects/layout_parser/venv/lib/python3.9/site-packages/detectron2/engine/defaults.py", line 412, in resume_or_load self.checkpointer.resume_or_load(self.cfg.MODEL.WEIGHTS, resume=resume) File "/Users/niteshkumar/PycharmProjects/layout_parser/venv/lib/python3.9/site-packages/fvcore/common/checkpoint.py", line 227, in resume_or_load return self.load(path, checkpointables=[]) File "/Users/niteshkumar/PycharmProjects/layout_parser/venv/lib/python3.9/site-packages/detectron2/checkpoint/detection_checkpoint.py", line 62, in load ret = super().load(path, *args, **kwargs) File "/Users/niteshkumar/PycharmProjects/layout_parser/venv/lib/python3.9/site-packages/fvcore/common/checkpoint.py", line 155, in load checkpoint = self._load_file(path) File "/Users/niteshkumar/PycharmProjects/layout_parser/venv/lib/python3.9/site-packages/detectron2/checkpoint/detection_checkpoint.py", line 99, in _load_file loaded = self._torch_load(filename) File "/Users/niteshkumar/PycharmProjects/layout_parser/venv/lib/python3.9/site-packages/detectron2/checkpoint/detection_checkpoint.py", line 114, in _torch_load return super()._load_file(f) File "/Users/niteshkumar/PycharmProjects/layout_parser/venv/lib/python3.9/site-packages/fvcore/common/checkpoint.py", line 252, in _load_file return torch.load(f, map_location=torch.device("cpu")) File "/Users/niteshkumar/PycharmProjects/layout_parser/venv/lib/python3.9/site-packages/torch/serialization.py", line 815, in load return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args) File "/Users/niteshkumar/PycharmProjects/layout_parser/venv/lib/python3.9/site-packages/torch/serialization.py", line 1033, in _legacy_load magic_number = pickle_module.load(f, **pickle_load_args) _pickle.UnpicklingError: invalid load key, '<'.

error.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant