Closed AlexisPapaioannou closed 2 years ago
Please provide the .onnx and .xml and .bin. Otherwise, I will not respond at all.
*Here you can find the xml file: https://drive.google.com/file/d/1fbarCM7jWa1Gioqj-d-iNqsDjHv1Tl3C/view?usp=sharing
*the .bin file: https://drive.google.com/file/d/1zj3OiInSmHrIPf--5deverxQn4MUd_vd/view?usp=sharing
*the .onnx file: https://drive.google.com/file/d/1yzxj0GjErLk7poqGivex6_69Yp07O11D/view?usp=sharing
Thanks a lot!
And here is the new error
Has this model been trained by MS-COCO? Or is it your own data set?
With my custom dataset
I don't normally respond to individual requirements as it is not helpful to other engineers, but I will reply just in case. Next time I will not respond to individual requirements. Also, please try to at least read the README and do what you can before posting your question.
The tflite generated by the following procedure has not been tested at all. This is because it is trained on a proprietary data set. I don't know the label.
Due to the large number of 5D transposes, if the inferred results are not correct, you can adjust the JSON yourself.
{
"format_version": 2,
"layers": [
{
"layer_id": "269",
"type": "Const",
"replace_mode": "direct",
"values": [
0,
1,
2,
4,
3
]
},
{
"layer_id": "279",
"type": "Transpose",
"replace_mode": "insert_after",
"values": [
0,
2,
3,
4,
1
]
},
{
"layer_id": "292",
"type": "Transpose",
"replace_mode": "insert_after",
"values": [
0,
2,
3,
4,
1
]
},
{
"layer_id": "335",
"type": "Const",
"replace_mode": "direct",
"values": [
0,
1,
2,
4,
3
]
},
{
"layer_id": "345",
"type": "Transpose",
"replace_mode": "insert_after",
"values": [
0,
2,
3,
4,
1
]
},
{
"layer_id": "358",
"type": "Transpose",
"replace_mode": "insert_after",
"values": [
0,
2,
3,
4,
1
]
},
{
"layer_id": "401",
"type": "Const",
"replace_mode": "direct",
"values": [
0,
1,
2,
4,
3
]
},
{
"layer_id": "411",
"type": "Transpose",
"replace_mode": "insert_after",
"values": [
0,
2,
3,
4,
1
]
},
{
"layer_id": "424",
"type": "Transpose",
"replace_mode": "insert_after",
"values": [
0,
2,
3,
4,
1
]
},
{
"layer_id": "294",
"type": "Concat",
"replace_mode": "change_axis",
"values": 3
},
{
"layer_id": "296",
"type": "Transpose",
"replace_mode": "insert_before",
"values": [
0,
4,
1,
2,
3
]
},
{
"layer_id": "360",
"type": "Concat",
"replace_mode": "change_axis",
"values": 3
},
{
"layer_id": "362",
"type": "Transpose",
"replace_mode": "insert_before",
"values": [
0,
4,
1,
2,
3
]
},
{
"layer_id": "426",
"type": "Concat",
"replace_mode": "change_axis",
"values": 3
},
{
"layer_id": "428",
"type": "Transpose",
"replace_mode": "insert_before",
"values": [
0,
4,
1,
2,
3
]
}
]
}
xhost +local: && \
docker run --gpus all -it --rm \
-v `pwd`:/home/user/workdir \
-v /tmp/.X11-unix/:/tmp/.X11-unix:rw \
--device /dev/video0:/dev/video0:mwr \
--net=host \
-e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR \
-e DISPLAY=$DISPLAY \
--privileged \
ghcr.io/pinto0309/openvino2tensorflow:latest
openvino2tensorflow \ --model_path best_opt.xml \ --output_saved_model \ --output_pb \ --output_no_quant_float32_tflite \ --weight_replacement_config replace.json
![model_float32 tflite](https://user-images.githubusercontent.com/33194443/141873767-53dbe99c-2e56-4d5a-aa5f-51d96fb9e90f.png)
Thank you very much, I appreciate it! And one more question, is it possible by adding 3 Reshape layers before the 3 last Concatenation layers to change the 5d to 4d removing the first dimension? As the tflite which I use supports only Concatenation with max 4d.
I would insert Reshape
before Split
.
Okay, thanks!
1. OS you are using e.g. Ubuntu 20.04, WIndows10, etc
Windows 10
2. OS Architecture e.g. x86_64, armv7l, aarch64, etc
3. Version of OpenVINO e.g. 2021.2.185, etc
openvino2tensorflow v1.24.8
4. Version of TensorFlow e.g. v2.4.1, tf-nightly==2.5.0.dev20210128, etc
TensorFlow 2.6.0
8. Version of ONNX e.g. v1.8.0, etc
ONNX 1.8.0
9. Download URL for ONNX model
10. Download URL for OpenVINO IR (.bin/.xml) model
11. URL of the repository from which the transformed model was taken
https://github.com/ppogg/YOLOv5-Lite/blob/master/models/v5Lite-s.yaml
13. Issue Details
I tried to convert a yolov5 model with shuffleNet, but I received the above error. Is there any solution? Also, I tried to implemented the solution from https://github.com/PINTO0309/openvino2tensorflow/issues/38 but the problem didn't solve it.