I get an Error when I use the local file

#2
by Runqing93 - opened

I download the model files and use the following function:
get_embedding = PretrainedSpeakerEmbedding("./speaker-embedding.onnx")

but an Error occurs as follow:
/usr/local/lib/python3.10/dist-packages/torch/serialization.py in _legacy_load(f, map_location, pickle_module, **pickle_load_args)
1244 "functionality.")
1245
-> 1246 magic_number = pickle_module.load(f, **pickle_load_args)
1247 if magic_number != MAGIC_NUMBER:
1248 raise RuntimeError("Invalid magic number; corrupt file?")

UnpicklingError: invalid load key, '\x08'

Sign up or log in to comment