我想用pytorch在.weights文件中加载预训练的yolo权重。我将整个路径保存到.weight文件,但遇到了错误。
model = load_model(weights='C:/Users/.../yolov2-tiny-voc_2.weights')
print(model)
UnpicklingError Traceback (most recent call last)
UnpicklingError: invalid load key, '\x00'.