This repository has been archived by the owner on Nov 11, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 39
Incorrect connection order in Concat #48
Labels
Comments
@NobuoTsukamoto Thank you for your support! 😸 Well, you have a point. However, I am very worried about how to fix it. The only way I can think of is to sort the layer IDs entered in the INPUT of OpenVINO's Concat in ascending order and then Concat them. However, since OpenVINO often reverses the order of operations displayed in INPUT and sometimes not, I am not sure if this fix will work for all models. Anyway, I'm going to apply the workaround, regenerate the model, and provide the tflite model to you again. |
I understand. The port numbers are reversed. It was found that there was a bug that the port number was incorrectly sorted in ascending order only when the destination of the skip connection was Concat. |
Fixes f037817 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
1. OS you are using e.g. Ubuntu 20.04, WIndows10, etc: Ubuntu20.04 (on Docker)
2. OS Architecture e.g. x86_64, armv7l, aarch64, etc: x86_64
3. Version of OpenVINO e.g. 2021.2.185, etc: 2021.4.582
4. Version of TensorFlow e.g. v2.4.1, tf-nightly==2.5.0.dev20210128, etc: v2.6.0-rc1
5. Version of TensorRT e.g. TensorRT6.0 GA, etc: 8.0
10. Download URL for OpenVINO IR (.bin/.xml) model
https://github.com/PINTO0309/PINTO_model_zoo/tree/main/132_YOLOX
11. URL of the repository from which the transformed model was taken:
https://github.com/PINTO0309/PINTO_model_zoo/tree/main/132_YOLOX
13. Issue Details
In models such as YOLOv5, YOLOR, and YOLOX, the connection order of input layers is different when the starting point is concat via multiple StridedSlices. Therefore, even if the structure of the intermediate layer is correctly converted, the data at the input will be corrupted, and the output result will be meaningless. The order of tensor decomposition and the order of concatenation by Concat need to be controlled correctly.
ONNX (Before conversion)
TFLite (openvino2tensorflow / after conversion)
TFLite (onnx-tensorflow / after convertion)
The text was updated successfully, but these errors were encountered: