CenterMask icon indicating copy to clipboard operation
CenterMask copied to clipboard

_pickle.UnpicklingError: pickle data was truncated

Open YueZhang1029 opened this issue 5 years ago • 2 comments

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

YueZhang1029 avatar May 05 '20 14:05 YueZhang1029

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

rohit7044 avatar Apr 26 '24 17:04 rohit7044

Also found out that proper CUDA version is also important

rohit7044 avatar Apr 29 '24 07:04 rohit7044