Closed alpapstm32 closed 11 months ago
https://github.com/PINTO0309/onnx2tf?tab=readme-ov-file#cli-parameter
-nodafsc, --number_of_dimensions_after_flexstridedslice_compression
Number of StridedSlice OP dimensions generated after avoiding FlexStridedSlice generation.
Default: 5
I'm facing a similar issue with the YOLOv5 version. Despite attempting to execute the library with the -nodaftc 4 option, the problem persists. Also, I tried to implement a similar Json file as above replacing the sizes with that from our model but the problem was not solved.
The ONNX model has an input size of 1x3x128x128 and the link for the onnx model: https://drive.google.com/file/d/10rGaq4Xcu5hVHby3to8FfX0-3dBL0Geb/view?usp=drivesdk
Are there alternative methods to decrease the number of dimensions?
Thanks in advance for helping me and congrats on the really good work in the repo. I appreciate that!
After repeated version upgrades, I noticed a bug where the --nodafsc
option was no longer working properly. I will fix it later.
onnx2tf -i best.onnx -nodafsc 4
onnx2tf -i best.onnx -nodafsc 4
I am in auto-regression testing with CI. If no problems arise in testing, I will release an updated version in about 2-8 hours that fixes the bug where the -nodafsc
option is unconditionally skipped.
I want to ask you, can you handle 5D Reshape correctly? I am not very familiar with the TF micro specs.
Thank you very much!
Issue Type
Others
OS
Windows
onnx2tf version number
1.19.0
onnx version number
1.14.1
onnxruntime version number
1.16.0
onnxsim (onnx_simplifier) version number
0.4.33
tensorflow version number
2.14.0
Download URL for ONNX
https://drive.google.com/file/d/1dimjGPBDiqW6jZtnqrXZHiuxSvoSWmMs/view?usp=sharing
Parameter Replacement JSON
Description