mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-24 22:56:42 +00:00
models : use absolute paths for the converted model (#1356)
This commit is contained in:
parent
d445098c8f
commit
8a2bee6717
@ -29,7 +29,7 @@ def convert_encoder(hparams, encoder, mname):
|
|||||||
|
|
||||||
# use model optimizer to convert onnx to OpenVINO IR format
|
# use model optimizer to convert onnx to OpenVINO IR format
|
||||||
encoder_model = mo.convert_model(onnx_path, compress_to_fp16=True)
|
encoder_model = mo.convert_model(onnx_path, compress_to_fp16=True)
|
||||||
serialize(encoder_model, xml_path='ggml-' + mname + '-encoder-openvino.xml')
|
serialize(encoder_model, xml_path=os.path.join(os.path.dirname(__file__),"ggml-" + mname + "-encoder-openvino.xml"))
|
||||||
|
|
||||||
#cleanup
|
#cleanup
|
||||||
if os.path.isdir(onnx_folder):
|
if os.path.isdir(onnx_folder):
|
||||||
|
Loading…
Reference in New Issue
Block a user