pytorch-YOLOv4 icon indicating copy to clipboard operation
pytorch-YOLOv4 copied to clipboard

UnpicklingError: invalid load key, '\x00'.

Open Juuustin opened this issue 3 years ago • 2 comments

There is another error when I run on my own data: Traceback (most recent call last): File "train.py", line 616, in model = Yolov4(cfg.pretrained, n_classes=cfg.classes) File "D:\study\Dinosaour\pytorch-YOLOv4\models.py", line 426, in init pretrained_dict = torch.load(yolov4conv137weight) File "C:\Users\onthe\Anaconda3\lib\site-packages\torch\serialization.py", line 368, in load return _load(f, map_location, pickle_module) File "C:\Users\onthe\Anaconda3\lib\site-packages\torch\serialization.py", line 532, in _load magic_number = pickle_module.load(f) _pickle.UnpicklingError: invalid load key, '\x00'. Any suggestions?

Juuustin avatar Aug 31 '20 08:08 Juuustin

I changed the filters, as mentioned in https://github.com/Tianxiaomo/pytorch-YOLOv4/issues/138#issuecomment-721116468.

ghost avatar Nov 29 '20 18:11 ghost

Have you been able to resolve this issue? I am seeing the same issue "_pickle.UnpicklingError: invalid load key, '\x00'." and would appreciate your help. Thank you!

DeviAyyagari avatar Mar 10 '22 01:03 DeviAyyagari