Skip to content

Commit d3a09b0

Browse files
bobqianicvonstring
authored andcommitted
models : use absolute paths for the converted model (ggml-org#1356)
1 parent 33ccf83 commit d3a09b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/convert-whisper-to-openvino.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def convert_encoder(hparams, encoder, mname):
2929

3030
# use model optimizer to convert onnx to OpenVINO IR format
3131
encoder_model = mo.convert_model(onnx_path, compress_to_fp16=True)
32-
serialize(encoder_model, xml_path='ggml-' + mname + '-encoder-openvino.xml')
32+
serialize(encoder_model, xml_path=os.path.join(os.path.dirname(__file__),"ggml-" + mname + "-encoder-openvino.xml"))
3333

3434
#cleanup
3535
if os.path.isdir(onnx_folder):

0 commit comments

Comments
 (0)