Skip to content

Support Unicode characters in proto paths #5761

@captainIT

Description

@captainIT

Bug Report

Is the issue related to model conversion?

No

Describe the bug

  1. the onnx name is simple Chinese,such as “士大夫.onnx”
  2.   output_file_path = 'D:\\士大夫.onnx'
      onnx.checker.check_model(output_file_path)```
    
  3. after run ,throw ValidationError
   onnx.onnx_cpp2py_export.checker.ValidationError: Unable to open proto file: D:\士大夫.onnx. Please check if it is a valid proto. 
 [fail_check("Unable to open proto file: ", proto_path, ". Please check if it is a valid proto. ");]

fail_check("Unable to open proto file: ", proto_path, ". Please check if it is a valid proto. ");

System information

Windows
onnx version 1.15.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions