Closed WildTaras closed 1 month ago
If I set flag "-b 2" it doesnt help as well. Entire command: onnx2tf -i yolov8n_dynamic_true_batch_size_2.onnx -ois images:2,3,640,640 -cind "images" "ref_dataset.npy" "[[[[0.485,0.456,0.406]]]]" "[[[[0.229,0.224,0.225]]]]" -oiqt -ioqd uint8 -b 2
I finally understand where you're having trouble. It seems that the logic does not take into account the multi-batch quantization pattern. I'll think about it for a bit.
Thank you for your patience,
Issue Type
Others
OS
Linux
onnx2tf version number
1.17.5
onnx version number
1.15.0
onnxruntime version number
1.16.3
onnxsim (onnx_simplifier) version number
1.16.3
tensorflow version number
2.15.0
Download URL for ONNX
ref_dataset.zip
Parameter Replacement JSON
Description
I am sorry for bothering, I had a ticket here https://github.com/PINTO0309/onnx2tf/issues/713 I use this command for full integer quantization. I created reference dataset and attached it. I forgot to mention, that I was using reference dataset with this command onnx2tf -i yolov8n_dynamic_true_batch_size_2.onnx -ois images:2,3,640,640 -cind "images" "ref_dataset.npy" "[[[[0.485,0.456,0.406]]]]" "[[[[0.229,0.224,0.225]]]]" -oiqt -ioqd uint8 As I understand, the shape of the inference data shuold be (2, 640, 640, 3), but when we stack together, I get (imgs_amount*2, 640,640,3), but how onnx2tf should understand that it needs to get tensor (2, 640, 640, 3) for quantization Here is my function for dataset creation: