Onnx2tf

Latest version: v1.26.3

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

Scan your dependencies

Page 2 of 85

1.26.0

- API changed
- The input and output quantization types can now be specified with separate, different parameters for input and output.
- Abolition
- `input_output_quant_dtype`
- Addition
- `input_quant_dtype`
- `output_quant_dtype`
- `Conv`
- Supports parameter substitution for post-processing of `Conv`.
- replace_conv.json
json
{
"format_version": 1,
"operations": [
{
"op_name": "wa/conv/Conv",
"param_target": "outputs",
"param_name": "output",
"post_process_transpose_perm": [0,3,1,2]
}
]
}

- test

onnx2tf -i model_conv.onnx -kat input -prf replace_conv.json

![image](https://github.com/user-attachments/assets/9f1668da-c73d-4f90-a1fa-069b93e0a33b)
- `Mul`
- Improved conversion stability of `Mul`.
![image](https://github.com/user-attachments/assets/8335f4d4-6470-45a6-991b-8bf21396386f)

- [Error by broadcasting in tf.math.Multiply Operation 698](https://github.com/PINTO0309/onnx2tf/issues/698)
- [Add transposition to the tflite model 700](https://github.com/PINTO0309/onnx2tf/issues/700)
- [README corrections due to API changes (I'll get serious from tomorrow) 702](https://github.com/PINTO0309/onnx2tf/issues/702)

What's Changed
* Input and output quantization chosen separately by marcoschepis in https://github.com/PINTO0309/onnx2tf/pull/701
* Updated README.md by marcoschepis in https://github.com/PINTO0309/onnx2tf/pull/703
* Supports parameter substitution for post-processing of `Conv` by PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/704
* Improved conversion stability of `Mul` by PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/705

New Contributors
* marcoschepis made their first contribution in https://github.com/PINTO0309/onnx2tf/pull/701

**Full Changelog**: https://github.com/PINTO0309/onnx2tf/compare/1.25.15...1.26.0

1.25.15

- `Mul`, `Add`
- Fixed to force switch between `X` and `Y` when X: `np.ndarray`, Y: `Tensor`

onnx2tf -i 1005_s0_nonar_text_decoder.onnx -cotof

![image](https://github.com/user-attachments/assets/b21e9e7f-a594-4bd5-a082-7b116f2474e4)
- [Error by broadcasting in tf.math.Multiply Operation 698](https://github.com/PINTO0309/onnx2tf/issues/698)

What's Changed
* Fixed to force switch between `X` and `Y` when X: `np.ndarray`, Y: `Tensor` by PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/699


**Full Changelog**: https://github.com/PINTO0309/onnx2tf/compare/1.25.14...1.25.15

1.25.14

- `ArgMin`
- Dealing with garbage-like broken structures in ONNX (`ArgMin`) 695
- [[YOLOv7] None in graph_node_input.shape 694](https://github.com/PINTO0309/onnx2tf/issues/694)

What's Changed
* Dealing with garbage-like broken structures in ONNX (ArgMin) 695 by PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/696


**Full Changelog**: https://github.com/PINTO0309/onnx2tf/compare/1.25.13...1.25.14

1.25.13

- `ArgMax`, `Faltten`
- Dealing with garbage-like broken structures in ONNX.
![image](https://github.com/user-attachments/assets/7548a385-7e6b-4a19-ab5a-ef76cfc1104d)
![image](https://github.com/user-attachments/assets/04092ee2-6c05-4815-ac2f-7689e122c742)
- [[YOLOv7] None in graph_node_input.shape 694](https://github.com/PINTO0309/onnx2tf/issues/694)

What's Changed
* Dealing with garbage-like broken structures in ONNX by PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/695


**Full Changelog**: https://github.com/PINTO0309/onnx2tf/compare/1.25.12...1.25.13

1.25.12

- `Flatten`
- Improved handling when `axis` attribute is not defined and the batch size of the first dimension is undefined.
- ONNX
![image](https://github.com/user-attachments/assets/7fe6000c-834a-41cd-9508-1f8bf13b2f93)
bash
wget https://github.com/PINTO0309/onnx2tf/releases/download/0.0.2/resnet18-v1-7.onnx
onnx2tf -i resnet18-v1-7.onnx

ls -lh saved_model/

assets
fingerprint.pb
resnet18-v1-7_float16.tflite
resnet18-v1-7_float32.tflite
saved_model.pb
variables

TF_CPP_MIN_LOG_LEVEL=3 \
saved_model_cli show \
--dir saved_model \
--signature_def serving_default \
--tag_set serve

The given SavedModel SignatureDef contains the following input(s):
inputs['data'] tensor_info:
dtype: DT_FLOAT
shape: (-1, 224, 224, 3)
name: serving_default_data:0
The given SavedModel SignatureDef contains the following output(s):
outputs['output_0'] tensor_info:
dtype: DT_FLOAT
shape: (-1, 1000)
name: PartitionedCall:0
Method name is: tensorflow/serving/predict

- TFLite
![image](https://github.com/user-attachments/assets/2da8169a-2272-4f47-957d-7a6416728630)

What's Changed
* Improved handling when `axis` attribute is not defined and the batch size of the first dimension is undefined. by PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/692


**Full Changelog**: https://github.com/PINTO0309/onnx2tf/compare/1.25.11...1.25.12

1.25.11

- `BatchNormalization`
- Improved the conversion stability of `BatchNormalization`.

What's Changed
* Improved the conversion stability of `BatchNormalization`. by PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/690


**Full Changelog**: https://github.com/PINTO0309/onnx2tf/compare/1.25.10...1.25.11

Page 2 of 85

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.