Hi All,
I’m following the HELLO AI WORLD tutorial to build image detection models. I want to use eval.ssd to evaluate their performance but when I do I get an error that says:
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, ‘\x08’.
Here is the full error code:
Traceback (most recent call last):
File “jetson-inference/python/training/detection/ssd/eval_ssd.py”, line 150, in
net.load(args.trained_model)
File “/home/james/jetson-inference/python/training/detection/ssd/vision/ssd/ssd.py”, line 135, in load
self.load_state_dict(torch.load(model, map_location=lambda storage, loc: storage))
File “/home/james/.local/lib/python3.6/site-packages/torch/serialization.py”, line 585, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File “/home/james/.local/lib/python3.6/site-packages/torch/serialization.py”, line 755, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, ‘\x08’.
Does anyone know how to fix this issue ?
Thanks