-
Notifications
You must be signed in to change notification settings - Fork 110
Description
Looking at this tutorial: https://github.com/amd/RyzenAI-SW/blob/main/tutorial/quark_quantization/docs/quark_quant_readme.md, here are a few questions and issues:
-
Why do I need to install AMD Quark separately if I already have Ryzen AI? It comes with it, correct?
-
Need to have a
cd ryzenai-sw\tutorial\quark_quantizationto get to the right folder first. The README should just be right there, and just have a dropdown for simple/advanced. -
This is misspelled:
pip install -r requirement.txt -
For the model paths found here: https://github.com/amd/RyzenAI-SW/blob/main/tutorial/quark_quantization/docs/quark_quant_readme.md#input-model, these variables do not work in the command line. I am not sure what this line is for.
input_model_path = "models\\resnet50.onnx"
output_model_path = "models\\resnet50_quant.onnx" - I am blocked at this step because I can't get this imagenet data from the description you provided:
https://github.com/amd/RyzenAI-SW/blob/main/tutorial/quark_quantization/docs/quark_quant_readme.md#imagenet-dataset. "If you already have an ImageNet datasets, you can directly use your dataset path.
To prepare the test data, please check the download section of the main website: https://huggingface.co/datasets/imagenet-1k/tree/main/data. You need to register and download val_images.tar.gz."
-
Advanced Quantization Tools tutorial links to an internal repo that will not be accessible from here:
https://ryzenai.docs.amd.com/en/latest/model_quantization.html#id1 to
https://gitenterprise.xilinx.com/VitisAI/RyzenAI-SW/blob/dev/tutorial/quark_quantization/docs/advanced_quant_readme.md
Should link here: https://github.com/amd/RyzenAI-SW/blob/main/tutorial/quark_quantization/docs/advanced_quant_readme.md -
This tutorial does not instruct me to download the MobileNet model before quantizing it.
https://github.com/amd/RyzenAI-SW/blob/main/tutorial/quark_quantization/docs/advanced_quant_readme.md -
Get this error when trying to run
python advanced_quark_quantize.py --model_input models/mobilenetv2.onnx --model_output models/mobilenetv2_quant.onnx
Traceback (most recent call last):
File "C:\Users\User\bconsolv\amd_ryzenai-sw\tutorial\quark_quantization\advanced_quark_quantize.py", line 82, in <module>
main(args)
File "C:\Users\User\bconsolv\amd_ryzenai-sw\tutorial\quark_quantization\advanced_quark_quantize.py", line 20, in main
if args.adaround:
^^^^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'adaround'All examples run into this error right now in this tutorial.