Skip to content

Releases: PINTO0309/snc4onnx

1.0.13

30 Apr 05:45
f94b1ac
Compare
Choose a tag to compare
  1. Fix to preserve domain and ir_version.
  2. API specification changes due to the version upgrade of onnx are now supported. onnx==1.16.0

What's Changed

Full Changelog: 1.0.12...1.0.13

1.0.12

05 Aug 05:02
e9c04e3
Compare
Choose a tag to compare
  • --disable_onnxsim
    • Suppress the execution of onnxsim on the backend and dare to leave redundant processing.
  • Before - Enabled onnxsim
    image
  • After - Disabled onnxsim
    image

What's Changed

  • --disable_onnxsim. Suppress the execution of onnxsim on the backend and dare to leave redundant processing. by @PINTO0309 in #3

New Contributors

Full Changelog: 1.0.11...1.0.12

1.0.11

02 Jan 06:12
Compare
Choose a tag to compare
  • Accelerate processing

Full Changelog: 1.0.10...1.0.11

1.0.10

02 Jan 05:46
Compare
Choose a tag to compare
  • Support for merging models with custom domains.
    • e.g.
      • Resize (ai.onnx) + Inverse (com.microsoft)
        image
        image
      • Merged ONNX
        image

1.0.9

07 Sep 11:19
Compare
Choose a tag to compare
  • Add short form parameter

    $ snc4onnx -h
    
    usage:
      snc4onnx [-h]
        -if INPUT_ONNX_FILE_PATHS [INPUT_ONNX_FILE_PATHS ...]
        -sd SRCOP_DESTOP [SRCOP_DESTOP ...]
        [-opam OP_PREFIXES_AFTER_MERGING [OP_PREFIXES_AFTER_MERGING ...]]
        [-of OUTPUT_ONNX_FILE_PATH]
        [-f]
        [-n]
    
    optional arguments:
      -h, --help
        show this help message and exit.
    
      -if INPUT_ONNX_FILE_PATHS [INPUT_ONNX_FILE_PATHS ...], --input_onnx_file_paths INPUT_ONNX_FILE_PATHS [INPUT_ONNX_FILE_PATHS ...]
          Input onnx file paths. At least two onnx files must be specified.
    
      -sd SRCOP_DESTOP [SRCOP_DESTOP ...], --srcop_destop SRCOP_DESTOP [SRCOP_DESTOP ...]
          The names of the output OP to join from and the input OP to join to are
          out1 in1 out2 in2 out3 in3 ....
          format.
          In other words, to combine model1 and model2,
          --srcop_destop model1_out1 model2_in1 model1_out2 model2_in2
          Also, --srcop_destop can be specified multiple times.
          The first --srcop_destop specifies the correspondence between model1 and model2,
          and the second --srcop_destop specifies the correspondence between
          model1 and model2 combined and model3.
          It is necessary to take into account that the prefix specified
          in op_prefixes_after_merging is
          given at the beginning of each OP name.
          e.g. To combine model1 with model2 and model3.
          --srcop_destop model1_src_op1 model2_dest_op1 model1_src_op2 model2_dest_op2 ...
          --srcop_destop combined_model1.2_src_op1 model3_dest_op1 combined_model1.2_src_op2 model3_dest_op2 ...
    
      -opam OP_PREFIXES_AFTER_MERGING [OP_PREFIXES_AFTER_MERGING ...], --op_prefixes_after_merging OP_PREFIXES_AFTER_MERGING [OP_PREFIXES_AFTER_MERGING ...]
          Since a single ONNX file cannot contain multiple OPs with the same name,
          a prefix is added to all OPs in each input ONNX model to avoid duplication.
          Specify the same number of paths as input_onnx_file_paths.
          e.g. --op_prefixes_after_merging model1_prefix model2_prefix model3_prefix ...
    
      -of OUTPUT_ONNX_FILE_PATH, --output_onnx_file_path OUTPUT_ONNX_FILE_PATH
          Output onnx file path.
    
      -f, --output_of_onnx_file_in_the_process_of_fusion
          Output of onnx files in the process of fusion.
    
      -n, --non_verbose
          Do not show all information logs. Only error logs are displayed.
    

1.0.8

06 Sep 02:01
Compare
Choose a tag to compare
  1. Fixed a bug that caused INPUT names to be corrupted. There was a problem with the removal of prefixes added during the model merging process.
    • before: main_input -> put (bug)
    • after: main_input -> input
    • Stop using lstrip and change to forward matching logic with re.sub
  2. Added process to clean up OUTPUT prefixes as much as possible
    image

1.0.7

25 May 06:26
dd92e73
Compare
Choose a tag to compare
  • Security update
  • README update

1.0.6

07 May 12:23
Compare
Choose a tag to compare
  • Added optimization process for final graph

1.0.5

01 May 03:24
Compare
Choose a tag to compare
  • Supports INPUT fusion
    image
    image

1.0.4

27 Apr 00:43
Compare
Choose a tag to compare
  • Change op_prefixes_after_merging to optional
  • Added duplicate OP name check
    • If there is a duplicate OP name, the model cannot be combined and the process is aborted with the following error message.
      ERROR: 
      There is a duplicate OP name after merging models.
      op_name:input count:2, op_name:output count:2
      Avoid duplicate OP names by specifying a prefix in op_prefixes_after_merging.