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

_pickle.UnpicklingError: pickle data was truncated #40

Open
RUkiki opened this issue May 5, 2020 · 2 comments
Open

_pickle.UnpicklingError: pickle data was truncated #40

RUkiki opened this issue May 5, 2020 · 2 comments

Comments

@RUkiki
Copy link

RUkiki commented May 5, 2020

Hi,when i try to run demo/webcam.py i get the error
_pickle.UnpicklingError: pickle data was truncated

Here is the full result:
Traceback (most recent call last):
File "webcam.py", line 80, in
main()
File "webcam.py", line 64, in main
min_image_size=args.min_image_size,
File "D:\Project\CenterMask-master\demo\predictor.py", line 159, in init
_ = checkpointer.load(cfg.MODEL.WEIGHT)
File "d:\project\centermask-master\maskrcnn_benchmark\utils\checkpoint.py", line 62, in load
checkpoint = self._load_file(f)
File "d:\project\centermask-master\maskrcnn_benchmark\utils\checkpoint.py", line 138, in _load_file
return load_c2_format(self.cfg, f)
File "d:\project\centermask-master\maskrcnn_benchmark\utils\c2_model_loading.py", line 175, in load_c2_format
return C2_FORMAT_LOADER[cfg.MODEL.BACKBONE.CONV_BODY](cfg, f)
File "d:\project\centermask-master\maskrcnn_benchmark\utils\c2_model_loading.py", line 165, in load_resnet_c2_format
state_dict = _load_c2_pickled_weights(f)
File "d:\project\centermask-master\maskrcnn_benchmark\utils\c2_model_loading.py", line 136, in _load_c2_pickled_weights
data = pickle.load(f, encoding="latin1")
_pickle.UnpicklingError: pickle data was truncated

@rohit7044
Copy link

rohit7044 commented Apr 26, 2024

Because you don't have enought RAM.
Also this #5301
Please close this issue.
Thanks

@rohit7044
Copy link

Also found out that proper CUDA version is also important

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

2 participants