Traceback (most recent call last):


 "inference.py", line 277, in <module>

main()


 "inference.py", line 249, in main

model = load_model(args.checkpoint_path)


 "inference.py", line 166, in load_model

checkpoint = _load(path)


 "inference.py", line 157, in _load

checkpoint = torch.load(checkpoint_path)


 "/usr/local/lib/python3.6/dist-packages/torch/serialization.py", line 387, in load

return _load(f, map_location, pickle_module, **pickle_load_args)


 "/usr/local/lib/python3.6/dist-packages/torch/serialization.py", line 581, in _load

deserialized_objects[key]._set_from_file(f, offset, f_should_read_directly)
RuntimeError: unexpected EOF, expected 2577609 more bytes. The file might be corrupted.

Traceback (most recent call last):


 "c:\users\nick.purcell\appdata\local\continuum\miniconda3\envs\pocmaskrcnn\lib\site-packages\mask_rcnn-2.1-py3.7.egg\mrcnn\model.py", line 1709, in data_generator

use_mini_mask=config.USE_MINI_MASK)


 "c:\users\nick.purcell\appdata\local\continuum\miniconda3\envs\pocmaskrcnn\lib\site-packages\mask_rcnn-2.1-py3.7.egg\mrcnn\model.py", line 1220, in load_image_gt

mask = utils.resize_mask(mask, scale, padding, crop)


 "c:\users\nick.purcell\appdata\local\continuum\miniconda3\envs\pocmaskrcnn\lib\site-packages\mask_rcnn-2.1-py3.7.egg\mrcnn\utils.py", line 508, in resize_mask

mask = scipy.ndimage.zoom(mask, zoom=[scale, scale, 1], order=0)


 "c:\users\nick.purcell\appdata\local\continuum\miniconda3\envs\pocmaskrcnn\lib\site-packages\scipy\ndimage\interpolation.py", line 595, in zoom

zoom = _ni_support._normalize_sequence(zoom, input.ndim)


 "c:\users\nick.purcell\appdata\local\continuum\miniconda3\envs\pocmaskrcnn\lib\site-packages\scipy\ndimage\_ni_support.py", line 65, in _normalize_sequence

raise RuntimeError(err)
RuntimeError: sequence argument must have length equal to input rank
