Scc4onnx

Latest version: v1.0.5

Safety actively analyzes 619566 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.0.5

- Add short form parameter

$ scc4onnx -h

usage:
scc4onnx [-h]
-if INPUT_ONNX_FILE_PATH
-of OUTPUT_ONNX_FILE_PATH
[-ioo INPUT_OP_NAME ORDER_DIM]
[-cci INPUT_OP_NAME DIM]
[-n]

optional arguments:
-h, --help
show this help message and exit

-if INPUT_ONNX_FILE_PATH, --input_onnx_file_path INPUT_ONNX_FILE_PATH
Input onnx file path.

-of OUTPUT_ONNX_FILE_PATH, --output_onnx_file_path OUTPUT_ONNX_FILE_PATH
Output onnx file path.

-ioo INPUT_OP_NAMES_AND_ORDER_DIMS INPUT_OP_NAMES_AND_ORDER_DIMS, --input_op_names_and_order_dims INPUT_OP_NAMES_AND_ORDER_DIMS INPUT_OP_NAMES_AND_ORDER_DIMS
Specify the name of the input_op to be dimensionally changed and the order of the
dimensions after the change.
The name of the input_op to be dimensionally changed can be specified multiple times.

e.g.
--input_op_names_and_order_dims aaa [0,3,1,2] \
--input_op_names_and_order_dims bbb [0,2,3,1] \
--input_op_names_and_order_dims ccc [0,3,1,2,4,5]

-cci CHANNEL_CHANGE_INPUTS CHANNEL_CHANGE_INPUTS, --channel_change_inputs CHANNEL_CHANGE_INPUTS CHANNEL_CHANGE_INPUTS
Change the channel order of RGB and BGR.
If the original model is RGB, it is transposed to BGR.
If the original model is BGR, it is transposed to RGB.
It can be selectively specified from among the OP names specified
in --input_op_names_and_order_dims.
OP names not specified in --input_op_names_and_order_dims are ignored.
Multiple times can be specified as many times as the number of OP names specified
in --input_op_names_and_order_dims.
--channel_change_inputs op_name dimension_number_representing_the_channel
dimension_number_representing_the_channel must specify the dimension position before
the change in input_op_names_and_order_dims.
For example, dimension_number_representing_the_channel is 1 for NCHW and 3 for NHWC.

e.g.
--channel_change_inputs aaa 3 \
--channel_change_inputs bbb 1 \
--channel_change_inputs ccc 5

-n, --non_verbose
Do not show all information logs. Only error logs are displayed.


**Full Changelog**: https://github.com/PINTO0309/scc4onnx/compare/1.0.4...1.0.5

1.0.4

- Security update
- README update

1.0.3

- `eval()` -> `ast.literal_eval()`

1.0.2

- Modified to give op_name to extrapolated `Transpose`
- e.g. `input_order_convert_transpose_0`, `input_order_convert_transpose_1`, ...

1.0.1

- Code refactoring

1.0.0

- Initial release

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.