Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in running tutorial/hello_world #76

Open
ngdymx opened this issue Apr 29, 2024 · 4 comments
Open

Error in running tutorial/hello_world #76

ngdymx opened this issue Apr 29, 2024 · 4 comments
Assignees

Comments

@ngdymx
Copy link

ngdymx commented Apr 29, 2024

Hi team,

I came to the step 3 Quantize Model and encountered an issue in the following figure.
Could you help me? thanks a lot!

Picture1
@vgodsoe
Copy link
Collaborator

vgodsoe commented May 31, 2024

Hi @ngdymx
Can you tell me a bit more about your setup that resulted in this error? I'm trying to reproduce it on my end but I don't get the same message?

Here is the quantization settings that are working for me:

vai_q_onnx.quantize_static(
    input_model_path,
    output_model_path,
    calibration_data_reader=None,
    quant_format=vai_q_onnx.QuantFormat.QDQ,
    calibrate_method=vai_q_onnx.PowerOfTwoMethod.MinMSE,
    activation_type=vai_q_onnx.QuantType.QUInt8,
    weight_type=vai_q_onnx.QuantType.QInt8,
    enable_ipu_cnn=True,
    extra_options={'ActivationSymmetric': True}
)

Thanks,
Victoria

@ngdymx
Copy link
Author

ngdymx commented May 31, 2024

Hi,

Thanks.
I just follow the tutorial to setup the environment.
Um, maybe because I'm using a windows system, some paths are not set up very well, it is my guess.

I tried to change the calibrate_method to other mode, it works, wierd.

image

@vgodsoe
Copy link
Collaborator

vgodsoe commented May 31, 2024

@ngdymx Just to confirm, the updates are working for you now?

@ngdymx
Copy link
Author

ngdymx commented May 31, 2024

Under the vai_q_onnx.PowerOfTwoMethod.MinMSE:, it still doesn't work.
It works under another mode like vai_q_onnx.PowerOfTwoMethod.NonOverflow:.

savitha-srinivasan pushed a commit to savitha-srinivasan/RyzenAI-SW that referenced this issue Jul 29, 2024
Update requirements for Pipelining example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants