Skip to content

Commit

Permalink
models : use absolute paths for the converted model (#1356)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobqianic committed Nov 3, 2023
1 parent d445098 commit 8a2bee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/convert-whisper-to-openvino.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def convert_encoder(hparams, encoder, mname):

# use model optimizer to convert onnx to OpenVINO IR format
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
if os.path.isdir(onnx_folder):
Expand Down

0 comments on commit 8a2bee6

Please sign in to comment.