openvino: [Good First Issue][Bug][Core]: set_rt_info() makes IR not readable

Context

from openvino.runtime import Core, serialize
import os


def main():
    core = Core()
    model = core.read_model('/home/wov/.cache/omz/intel/face-detection-0200/FP16-INT8/face-detection-0200.xml')
    model.set_rt_info('62d7a6a6587d65534beca376', ["model_parameters", "labels", "all_labels", "62d7a6a6587d65534beca376", "id"])
    out_path = os.path.dirname(__file__) + '/model.xml'
    serialize(model, out_path)
    model = core.read_model(out_path)


if __name__ == '__main__':
    main()

fails with

Traceback (most recent call last):
  File "r/Segmentation Models/serialize.py", line 15, in <module>
    main()
  File "r/Segmentation Models/serialize.py", line 11, in main
    model = core.read_model(out_path)
RuntimeError: Check 'false' failed at src/frontends/common/src/frontend.cpp:47:
Loading input model
Could not determine tag type at offset 511043

It must be something about 62d7a6a6587d65534beca376.

What needs to be done?

problem in described scenario should be fixed

Example Pull Requests

PR#15268

Resources

Contact points

@olpipi @Wovchena

Ticket

CVS-101287

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (9 by maintainers)

Most upvoted comments