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

Large MobilePose accuracy drop between quantized model and compiled model #1069

Closed
lino-alves opened this issue Oct 24, 2022 · 9 comments
Closed

Comments

@lino-alves
Copy link

Hi,

I am deploying the MobilePose NN into the DPU of a ZCU104 evaluation board.
I quantized the model, compiled the model and ran the inference on the MPSoC, however there is a large accuracy drop between the results I get from the quantized model (running in my GPU) and the compiled model (running in the DPU).
I was expecting some accuracy drop between the float model and the quantized model due to the reduction of the resolution (32 bit floating point to 8 bit fixed point), but I can't explain the large difference between the quantized model and the compiled model.
I debugged my MPSoC code using the quantized model inference as reference and both pre and post processing are working as intended in the MPSoC, only the results I get from the model are off.

The quantized model results look reasonable and probably can be improved with quantization aware training, but the compiled model results are surprisingly unusable and I don't think QAT can help in this case, right?

The MobilePose model I am using is implemented in PyTorch (with a MobileNetV2 backbone) and is available in github at this link.

Like I said, I can't explain this difference in quantized vs compiled results, so it would be good to have some insights from the Vitis-AI experts whether this is expected or not. Are there specific architectures where this could happen? Is there anything I can do to improve the compiled model results and bring them closer to the quantized model results?

Thanks for the support

@lishixlnx
Copy link
Contributor

can you please do a test by using the same input image and both run with quantized model and compiled model? then compare the output of the 2 models to find if they are same. If not, maybe there's some error with your compiled model.
You need to debug it layer by layer to find out which layer's output cause the difference.

@lino-alves
Copy link
Author

Yes, I made the comparison with the same input images and the outputs from each of the models differs by a lot.

I spent some time looking into the layers of each model and I've seen the Conv2d and BatchNorm2d are being merged, don't know if that can cause issues.
I have also seen that PixelShuffle is being converted to Tile, which according to a note in UG1414 is the expected behaviour, when there's a convolution at its input, but before merging Conv2d and BatchNorm2d, it was a BatchNorm2d at the input of PixelShuffle, not a Conv2d. I don't know if all this merges and changes can cause issues.

I am attaching the text export with the layers of the float model, it would be great if someone could take a look.
mobilepose.txt

Regarding debugging layer by layer I imagine the only way is to trim the model and add the layers one by one until the results don't match anymore, right? Is there any other way of doing that? Maybe partial quantization?

@lishixlnx
Copy link
Contributor

if after the merge, the output differs, then the difference is likely caused by the layer merge.
Is it possible to change your op to the supported op?

@qianglin-xlnx
Copy link
Contributor

Closing since no activity for more than 1 month, please reopen if you still have any questions, thanks

janifer112x added a commit that referenced this issue Jun 29, 2023
* [wego][examples] update release examples for vai-3.5 release. (#1025)

Co-authored-by: Tianping Li <tianping@xcogpuvai02.xilinx.com>

* [examples][wego-tf2.x] remove erfnet from wego-tf2.x examples. (#1026)

Co-authored-by: Tianping Li <tianping@xcogpuvai02.xilinx.com>

* [examples][wego_tf2.x] remove link for erfnet since it's not avaliable in vai-3.5 release. (#1027)

Co-authored-by: Tianping Li <tianping@xcogpuvai02.xilinx.com>

* vai3.5 src update (#1028)

Co-authored-by: qianglin-xlnx <linqiang@xilinx.com>

* vai3.5 examples update (#1029)

Co-authored-by: qianglin-xlnx <linqiang@xilinx.com>

* vai3.5 board_setup update (#1030)

Co-authored-by: qianglin-xlnx <linqiang@xilinx.com>

* update links in README_DPUCVDX8G.md (#1031)

Co-authored-by: xlinyang <xlinyang@xilinx.com>

* [wego] add examples for pytorch 2.0 preview. (#1033)

Co-authored-by: Tianping Li <tianping@xcogpuvai02.xilinx.com>

* Initial prototype of Github.IO documentation (#1034)

* Update ONNX Runtime docs, dpu/README.md

* Fix model_zoo/README.md Github.IO link, update Zoo license link in HTML docs

* Fix Docker image naming convention and run commands

* Fix Docker image naming convention and run commands

* Update CUDA container test to align with release CUDA version

* Fix Docker image naming convention and run commands

* Fix broken Model Zoo license agreement link

* Minor text updates to workflow HTML

* Further optimization of install instructions

* Further optimization of install instructions

* Correct Model Zoo links in board_setup

* Consolidate install_docker into install

* Correct spelling mistake

* Minor text updates to workflow

* Minor text updates to workflow-model-zoo

* Further updates to install instructions

* Further updates to install instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Revise Alveo support, board_setup docs, Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Fix Model Zoo downloader.py typo

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix broken workflow link

* Add V70 DPU description

* Add V70 DPU description

* Fix broken third-party link

* Update EDD2020 dataset link

* Updates for TOCTree structure

* Major revisions to 3.0 docs

* Rebrand quickstarts

* Fix release notes links:

* Initial 3.5 doc changes

* Initial changes for 3.5 docs

* Initial Doxygen integration test

* Fixed Command in Install.rst

* Fixed quickstart optimization links

* Fixed quickstart optimization links

* Update VAI_IDE.PNG

* Delete VAI_IDE.PNG

* Updated VAI_IDE.PNG

Co-authored-by: Rhind <arhind@amd.com>

* [fix] fix some build issue (#1032)

Co-authored-by: shili <lishi@xilinx.com>

* [fix] sync last 3 commit in vitis-ai-library (#1035)

Co-authored-by: shili <lishi@xilinx.com>

* [fix] python version 3.9->3.10 in op_reg.sh (#1037)

* [fix] python version 3.9->3.10 in op_reg.sh

* [fix] update some readme

Co-authored-by: shili <lishi@xilinx.com>

* [wego][fix] fix typos for wego pt2.0 preview example. (#1038)

sync-up info: https://gitenterprise.xilinx.com/VitisAI/wego-release-examples/commit/a67a6a7580464c791da481c2125408616914dde6

Co-authored-by: Tianping Li <tianping@xcogpuvai02.xilinx.com>

* update vai 3.5 docker related (#1040)

* update vai 3.5 docker related

* update rocm installation section

* update rocm installation section

* update rocm installation section

Co-authored-by: qiuyuny <qiuyuny@xilinx.com>

* [wego][improvment] tune parameters for wego zendnn examples for better performance. (#1042)

sync-up: https://gitenterprise.xilinx.com/VitisAI/wego-release-examples/commit/35f89cc8b372b5a54ca0a3e1e6e6333029092776

Co-authored-by: Tianping Li <tianping@xcogpuvai02.xilinx.com>

* [fix] update xmodel (#1041)

* [fix] update xmodel

* [fix] remove ocr samples

Co-authored-by: shili <lishi@xilinx.com>

* [wego] update pytorch examples with onboard support. (#1043)

This new feature is implemented by @hao Zhuan, please refer to MR: https://gitenterprise.xilinx.com/VitisAI/wego-release-examples/pull/10 for more details.

Co-authored-by: Hao Zhuan <haoz@xilinx.com>

* update driver version for nvidia GPU docker requirements

* add v70 setup flow and delete vck5000 setup folder

* update vai_library samples

* update vai_runtime examples

* add Transformer examples link

* update vai_library samples about  V70

* update vai_runtime samples download link

* add vck5000 board setup link

* add OnBoard example

* [onboard]demo format fix

* [onboard]tiny format fix

* add board_setup_v70.rst for bash

* [fix] update readme (#1050)

* [fix] update readme

* [fix] multitaskv3 <->  multitask_v3 name change

Co-authored-by: shili <lishi@xilinx.com>

* Vai 3.5 update (#1052)

* Update ONNX Runtime docs, dpu/README.md

* Fix model_zoo/README.md Github.IO link, update Zoo license link in HTML docs

* Fix Docker image naming convention and run commands

* Fix Docker image naming convention and run commands

* Update CUDA container test to align with release CUDA version

* Fix Docker image naming convention and run commands

* Fix broken Model Zoo license agreement link

* Minor text updates to workflow HTML

* Further optimization of install instructions

* Further optimization of install instructions

* Correct Model Zoo links in board_setup

* Consolidate install_docker into install

* Correct spelling mistake

* Minor text updates to workflow

* Minor text updates to workflow-model-zoo

* Further updates to install instructions

* Further updates to install instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Revise Alveo support, board_setup docs, Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Fix Model Zoo downloader.py typo

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix broken workflow link

* Add V70 DPU description

* Add V70 DPU description

* Fix broken third-party link

* Update EDD2020 dataset link

* Updates for TOCTree structure

* Major revisions to 3.0 docs

* Rebrand quickstarts

* Fix release notes links:

* Initial 3.5 doc changes

* Initial changes for 3.5 docs

* Initial Doxygen integration test

* Fixed Command in Install.rst

* Fixed quickstart optimization links

* Fixed quickstart optimization links

* Update VAI_IDE.PNG

* Delete VAI_IDE.PNG

* Updated VAI_IDE.PNG

* Merging Mpsoc quick start and setting up the target

* MPSOC Quick Start Upload Test

* Updated to new AMD theme

* Update Sphinx theme

* Updates to MPSoC quickstart

* Updates to MPSoC quickstart

* Updates to MPSoC quickstart

* MPSOC Changes

* New MPSOC + Quentons Changes

* Remove Chapter 8 reference

* Merging 3.0 changes to 3.5

* Fixed table format

* Minor updates

* Fixed MPSOC.rst

* Various 3.5 documentation updates

* Various 3.5 documentation updates

* First pass V70 quickstart

Co-authored-by: Rhind <arhind@amd.com>
Co-authored-by: Aidan Rhind <aidan.rhind@xilinx.com>

* update onnx runtime installation and link error fix (#1053)

Co-authored-by: qianglin-xlnx <linqiang@xilinx.com>

* update README_DPUCV2DX8G.md (#1054)

* update pytorch quantizer code to 3.5 (#1055)

Co-authored-by: niuxj <niuxj@xilinx.com>

* update Setup V70 Accelerator Card link

* update model.yaml

* update the model name

* [wego][fix] fix issue fired in jira: https://jira.xilinx.com/browse/VAI-2927?src=confmacro (#1058)

sync-up: https://gitenterprise.xilinx.com/VitisAI/wego-release-examples/commit/c2305da0ddc714c0e248e9d5252cd7359dc60982

Co-authored-by: Xie, ChuanLiang <ChuanLiang.Xie@amd.com>
Co-authored-by: Tianping Li <tianping@xcogpuvai02.xilinx.com>

* [vai_library][apps] update vek280 demos (#1059)

* update OnBoard model path name

* [fix] update unet2d readme (#1061)

Co-authored-by: shili <lishi@xilinx.com>

* [wego][fix] fix issue fired in jira:  https://jira.xilinx.com/browse/VAI-2926 (#1062)

Sync-up: https://gitenterprise.xilinx.com/VitisAI/wego-release-examples/commit/9e570fa4be75c87cf8a67e41277cabdcd3986878

Co-authored-by: Sen Wang <Sen.Wang1@amd.com>

* Add vai_optimizer

* update modelzoo readme

* update readme (#1039)

* update readme

* fix

* update OnBoard readme

* [fix] update yolov578 readme (#1065)

Co-authored-by: shili <lishi@xilinx.com>

* update v70 quick start steps

* update the vck5000 and v70 quick start steps

* update for 3.5 release

* update V70 setup link

* update the V70 DPU xclbin config

* [fix] fix readme for accuracy test (#1069)

Co-authored-by: shili <lishi@xilinx.com>

* [wego][fix] remove stackoverflow link to avoid legal issue. (#1070)

Co-authored-by: Tianping Li <tianping@xcogpuvai02.xilinx.com>

* [fix] avoid onnx sample accuracy hang (#1072)

Co-authored-by: shili <lishi@xilinx.com>

* Update README.md

* Delete README.md.old

* [fix] onnx model poinptillars readme update; dynamic batch support update (#1074)

Co-authored-by: shili <lishi@xilinx.com>

* Update release_notes.rst: add Optimizer and PyTorch CNN quantizer

* [fix] vai_profiler README was moved to github.io (#1076)

Co-authored-by: LiYunzhi <liyunzhi@xilinx.com>

* Vai 3.5 update (#1075)

* Update ONNX Runtime docs, dpu/README.md

* Fix model_zoo/README.md Github.IO link, update Zoo license link in HTML docs

* Fix Docker image naming convention and run commands

* Fix Docker image naming convention and run commands

* Update CUDA container test to align with release CUDA version

* Fix Docker image naming convention and run commands

* Fix broken Model Zoo license agreement link

* Minor text updates to workflow HTML

* Further optimization of install instructions

* Further optimization of install instructions

* Correct Model Zoo links in board_setup

* Consolidate install_docker into install

* Correct spelling mistake

* Minor text updates to workflow

* Minor text updates to workflow-model-zoo

* Further updates to install instructions

* Further updates to install instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Revise Alveo support, board_setup docs, Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Fix Model Zoo downloader.py typo

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix broken workflow link

* Add V70 DPU description

* Add V70 DPU description

* Fix broken third-party link

* Update EDD2020 dataset link

* Updates for TOCTree structure

* Major revisions to 3.0 docs

* Rebrand quickstarts

* Fix release notes links:

* Initial 3.5 doc changes

* Initial changes for 3.5 docs

* Initial Doxygen integration test

* Fixed Command in Install.rst

* Fixed quickstart optimization links

* Fixed quickstart optimization links

* Update VAI_IDE.PNG

* Delete VAI_IDE.PNG

* Updated VAI_IDE.PNG

* Merging Mpsoc quick start and setting up the target

* MPSOC Quick Start Upload Test

* Updated to new AMD theme

* Update Sphinx theme

* Updates to MPSoC quickstart

* Updates to MPSoC quickstart

* Updates to MPSoC quickstart

* MPSOC Changes

* New MPSOC + Quentons Changes

* Remove Chapter 8 reference

* Merging 3.0 changes to 3.5

* Fixed table format

* Minor updates

* Fixed MPSOC.rst

* Various 3.5 documentation updates

* Various 3.5 documentation updates

* First pass V70 quickstart

* GithubIO & repo updates for 3.5

* Remove RNN quantizer and Transformer references

* Updated to remove legal keywords

* Update V70 Quickstart, remove VCK5000 doc

* Synced latest changes

Co-authored-by: Rhind <arhind@amd.com>
Co-authored-by: Aidan Rhind <aidan.rhind@xilinx.com>

* Update release_notes.rst

* [fix] port coverity fix from VaiLib (#1077)

* [fix] port coverity fix from VaiLib

* [fix]  remove useless url in comments

Co-authored-by: shili <lishi@xilinx.com>

* update release_notes and vek280 board setup (#1078)

* update model list

* update OnBoard readme

* update v70 link

* update onboard link

* update AIlibrary sample link

* update vai runtime link

* update v70 setup link

* Update LICENSE (#1073)

* Update LICENSE

* Update LICENSE

* [Example][OnBoard]license updated

* [examples][vai_library] update vek280 4video demo (#1081)

* [optimizer] Add license header to tf2 mnist example

* Vai 3.5 update (#1084)

* [vai_q_tensorflow1.x] remove 3.0 folder

* [vai_q_tensorflow1.x] add 3.5 folder, from dev and 3.5 branch commit 4f8667a

* [vai_q_tensorflow2.x] remove 3.0 folder

* [vai_q_tensorflow2.x] add 3.5 folder, from dev and 3.5 branch commit f8021be

* Add vai_q_onnx (#1083)

* Vai 3.5 update recipes (#1082)

* src:vai_petalinux_recipes update recipes-vitis-ai to 3.5

1. update recipes-vitis-ai to 3.5
2. add recipes-devtools and recipes-support for vai35

* src:vai_petalinux_recipes update bsp.cfg for vaitracer

* Update README.md

* add custom op V70 compiled model

* add apu install command

* [fix]  coverity fix: port from VaiLib (#1087)

Co-authored-by: shili <lishi@xilinx.com>

* Additional 3.5 updates (#1085)

* Update ONNX Runtime docs, dpu/README.md

* Fix model_zoo/README.md Github.IO link, update Zoo license link in HTML docs

* Fix Docker image naming convention and run commands

* Fix Docker image naming convention and run commands

* Update CUDA container test to align with release CUDA version

* Fix Docker image naming convention and run commands

* Fix broken Model Zoo license agreement link

* Minor text updates to workflow HTML

* Further optimization of install instructions

* Further optimization of install instructions

* Correct Model Zoo links in board_setup

* Consolidate install_docker into install

* Correct spelling mistake

* Minor text updates to workflow

* Minor text updates to workflow-model-zoo

* Further updates to install instructions

* Further updates to install instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Revise Alveo support, board_setup docs, Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Fix Model Zoo downloader.py typo

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix broken workflow link

* Add V70 DPU description

* Add V70 DPU description

* Fix broken third-party link

* Update EDD2020 dataset link

* Updates for TOCTree structure

* Major revisions to 3.0 docs

* Rebrand quickstarts

* Fix release notes links:

* Initial 3.5 doc changes

* Initial changes for 3.5 docs

* Initial Doxygen integration test

* Fixed Command in Install.rst

* Fixed quickstart optimization links

* Fixed quickstart optimization links

* Update VAI_IDE.PNG

* Delete VAI_IDE.PNG

* Updated VAI_IDE.PNG

* Merging Mpsoc quick start and setting up the target

* MPSOC Quick Start Upload Test

* Updated to new AMD theme

* Update Sphinx theme

* Updates to MPSoC quickstart

* Updates to MPSoC quickstart

* Updates to MPSoC quickstart

* MPSOC Changes

* New MPSOC + Quentons Changes

* Remove Chapter 8 reference

* Merging 3.0 changes to 3.5

* Fixed table format

* Minor updates

* Fixed MPSOC.rst

* Various 3.5 documentation updates

* Various 3.5 documentation updates

* First pass V70 quickstart

* GithubIO & repo updates for 3.5

* Remove RNN quantizer and Transformer references

* Updated to remove legal keywords

* Update V70 Quickstart, remove VCK5000 doc

* Synced latest changes

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Remove historic ONNX runtime EP docs

* Update custom_target.rst

* Update custom_target.rst

* Fix v70.rst formatting

Co-authored-by: Rhind <arhind@amd.com>
Co-authored-by: Aidan Rhind <aidan.rhind@xilinx.com>

* [fix][yolov8] fix yolov8 run error with large image (#1088)

* Vai 3.5 update add tensorflow-onnx (#1090)

* [vai_q_tensorflow1.x] remove 3.0 folder

* [vai_q_tensorflow1.x] add 3.5 folder, from dev and 3.5 branch commit 4f8667a

* [vai_q_tensorflow2.x] remove 3.0 folder

* [vai_q_tensorflow2.x] add 3.5 folder, from dev and 3.5 branch commit f8021be

* [tensorflow-onnx] open source for 3.5, from dev and 3.5 branch commit 78637ee

* [doc][xv2] updated for xv2 changelog (#1095)

* add XNNC (#1092)

Co-authored-by: Zhenzhen Ding <zhenzhen.ding@xilinx.com>

* [feat] add examples for vai_q_tensorflow2 (#1091)

new file:   __init__.py
 	new file:   candidate_layer_quantize.py
 	new file:   custom_quantize_strategy.json
 	new file:   export_onnx.py
 	new file:   fashion_mnist_bfp/main.py
 	new file:   fashion_mnist_bfp/net.py
 	new file:   fashion_mnist_bfp/run.sh
 	new file:   mnist_cnn_convert_datatype.py
 	new file:   mnist_cnn_inspect.py
 	new file:   mnist_cnn_ptq.py
 	new file:   mnist_cnn_ptq_config_quantize_strategy.py
 	new file:   mnist_cnn_ptq_custom_layer.py
 	new file:   mnist_cnn_ptq_fs.py
 	new file:   mnist_cnn_ptq_gpu.py
 	new file:   mnist_cnn_ptq_mix_precision.py
 	new file:   mnist_cnn_ptq_unsigned_quantize.py
 	new file:   mnist_cnn_qat.py
 	new file:   mnist_cnn_quantize_with_xcompiler.py
 	new file:   my_quantize_strategy.json
 	new file:   transformers_bert_qa/code/run_qa.py
 	new file:   transformers_bert_qa/code/run_qa_quantize.py
 	new file:   transformers_bert_qa/code/utils_qa.py
 	new file:   transformers_bert_qa/readme.md
 	new file:   transformers_bert_qa/requirements.txt
 	new file:   transformers_bert_qa/run_eval.sh
 	new file:   transformers_bert_qa/run_qatrain.sh
 	new file:   transformers_bert_qa/run_quantize.sh
 	new file:   transformers_bert_qa/run_quantize_eval.sh
 	new file:   transformers_bert_qa/run_train.sh

Co-authored-by: Zhenzhen Ding <zhenzhen.ding@xilinx.com>

* Vai 3.5 update (#1093)

* [bugfix]:fix the tf1 onnx output format error

* [bugfix]: fix the link in the file

* [bugfix]:fix the numpy and onnx version in requirements.txt and setup.py

* [bugfix]: fix the convert datatype & float scale quantizer model convert to onnx output format

Co-authored-by: Jiangyong Ren <jiangyon@amd.com>

* [wego][fix] update the instructions for VCK5000

* [WeGO][Fix]: Fix the computing formula of FPS

* [feat]initially add vai_benchmark tool (#1099)

* [feat]initial add vai_benchmark tool

* remove author name and update README

* [fix]add License

Co-authored-by: Yanjun Zhang <yanjunz@xilinx.com>

* add recipes for vai-benchmark

* release_notes.rst: update PyTorch CNN quantizer

* sync vai_q_pytorch 3.5 code (#1100)

Co-authored-by: niuxj <niuxj@xilinx.com>

* update docker recipe for 3.5 release (#1101)

Co-authored-by: qiuyuny <qiuyuny@xilinx.com>

* Vai 3.5 update (#1103)

* [bugfix]:fix the tf1 onnx output format error

* [bugfix]: fix the link in the file

* [bugfix]:fix the numpy and onnx version in requirements.txt and setup.py

* [bugfix]: fix the convert datatype & float scale quantizer model convert to onnx output format

* [bugfix]:fix the bias_node should be biasadd_node

* [bugfix] modify usage of README.md

Co-authored-by: Jiangyong Ren <jiangyon@amd.com>

* [examples][vai_q_tensorflow] add tf1 quantizer examples (#1102)

* add XNNC

* [examples][vai_q_tensorflow] add tf1 quantizer examples

Co-authored-by: Zhenzhen Ding <zhenzhen.ding@xilinx.com>

* update model list

* update model list

* [fix] synchronize code from Vitis-AI-Library (#1108)

Co-authored-by: shili <lishi@xilinx.com>

* remove some repo from permissive License list

* update recipes-vitis-ai with vitis-staging mirror

* recipe of protobuf static lib: clean

* [fix] Recover vai profiler files (#1111)

Co-authored-by: jileil <jilei.liu@xilinx.com>

* delete src/vai_petalinux_recipes/recipes-devtools/

* update recipes for kernel

* update recipe for kernel

* Update vai_petalinux_recipes README

* Update vai_petalinux_recip README

* update vai_petalinux_recipes README

* update vai_petalinux_recipes README

* Update vai_petalinux_recipes xir: not use protobuf static

* [feat]add vai_benchmark description (#1112)

Co-authored-by: Yanjun Zhang <yanjunz@xilinx.com>

* [fix] update vek280 model yaml (#1116)

Co-authored-by: shili <lishi@xilinx.com>

* Adjust vai_petalinux recipes structure

* rename vai-benchmark.bb to vai-benchmark_3.5.bb

* Vai 3.5 update (#1117)

* Update ONNX Runtime docs, dpu/README.md

* Fix model_zoo/README.md Github.IO link, update Zoo license link in HTML docs

* Fix Docker image naming convention and run commands

* Fix Docker image naming convention and run commands

* Update CUDA container test to align with release CUDA version

* Fix Docker image naming convention and run commands

* Fix broken Model Zoo license agreement link

* Minor text updates to workflow HTML

* Further optimization of install instructions

* Further optimization of install instructions

* Correct Model Zoo links in board_setup

* Consolidate install_docker into install

* Correct spelling mistake

* Minor text updates to workflow

* Minor text updates to workflow-model-zoo

* Further updates to install instructions

* Further updates to install instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Revise Alveo support, board_setup docs, Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Fix Model Zoo downloader.py typo

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix broken workflow link

* Add V70 DPU description

* Add V70 DPU description

* Fix broken third-party link

* Update EDD2020 dataset link

* Updates for TOCTree structure

* Major revisions to 3.0 docs

* Rebrand quickstarts

* Fix release notes links:

* Initial 3.5 doc changes

* Initial changes for 3.5 docs

* Initial Doxygen integration test

* Fixed Command in Install.rst

* Fixed quickstart optimization links

* Fixed quickstart optimization links

* Update VAI_IDE.PNG

* Delete VAI_IDE.PNG

* Updated VAI_IDE.PNG

* Merging Mpsoc quick start and setting up the target

* MPSOC Quick Start Upload Test

* Updated to new AMD theme

* Update Sphinx theme

* Updates to MPSoC quickstart

* Updates to MPSoC quickstart

* Updates to MPSoC quickstart

* MPSOC Changes

* New MPSOC + Quentons Changes

* Remove Chapter 8 reference

* Merging 3.0 changes to 3.5

* Fixed table format

* Minor updates

* Fixed MPSOC.rst

* Various 3.5 documentation updates

* Various 3.5 documentation updates

* First pass V70 quickstart

* GithubIO & repo updates for 3.5

* Remove RNN quantizer and Transformer references

* Updated to remove legal keywords

* Update V70 Quickstart, remove VCK5000 doc

* Synced latest changes

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Remove historic ONNX runtime EP docs

* Update custom_target.rst

* Update custom_target.rst

* Fix v70.rst formatting

* Update VEK280 Quickstart, Linux kernel version listings

* Update VEK280 Quickstart, Linux kernel version listings

* VEK280 + V70 Quickstarts

* Updates to V70 and Model Zoo

* Add Wallace.jpg

* Merge changes across all Quickstarts

* update for v70 quick start

* Minor updates to Quickstarts

* Editorial updates for 3.5 release

Co-authored-by: Rhind <arhind@amd.com>
Co-authored-by: Aidan Rhind <aidan.rhind@xilinx.com>
Co-authored-by: suzhan <zhans@xilinx.com>

* [wego] remove yolov5 PTQ example due to AGPL license issue. (#1118)

Co-authored-by: Tianping Li <tianping@xcogpuvai02.xilinx.com>

* [fix][vai_library] remove yolov8 onnx example (#1120)

* [fix] add 'examples' in default EXAMPLE_PATH (#1121)

Co-authored-by: Yanjun Zhang <yanjunz@xilinx.com>

* [fix] Correct vaitrace run path (#1119)

Co-authored-by: jileil <jilei.liu@xilinx.com>

* [fix] readme update due to issues from email (#1122)

Co-authored-by: shili <lishi@xilinx.com>

* [bugfix]:fix the pruned RCAN model quantization (#1107)

* [bugfix]:fix the pruned RCAN model quantization

* [vai_q_tensorflow][examples] add tf1 quantizer ptq example

Co-authored-by: Jiangyong Ren <jiangyon@amd.com>

* Update onnx version in requirements.txt and update the example (#1110)

* Add vai_q_onnx

* Update onnx version and example

* Update onnx version and example

* [examples][vai_q_tensorflow2] update README.md and example (#1115)

Co-authored-by: Zhenzhen Ding <zhenzhen.ding@xilinx.com>

* src/vai_petalinux_recipes/README.md: add packages version info

* src/vai_petalinux_recipes/README.md: fix info

* src/vai_petalinux_recipes/README.md: update

* update model.yaml

* remove vx2602 and ve2202 (#1123)

* Update release_notes.rst

* Vai 3.5 update (#1124)

* Update ONNX Runtime docs, dpu/README.md

* Fix model_zoo/README.md Github.IO link, update Zoo license link in HTML docs

* Fix Docker image naming convention and run commands

* Fix Docker image naming convention and run commands

* Update CUDA container test to align with release CUDA version

* Fix Docker image naming convention and run commands

* Fix broken Model Zoo license agreement link

* Minor text updates to workflow HTML

* Further optimization of install instructions

* Further optimization of install instructions

* Correct Model Zoo links in board_setup

* Consolidate install_docker into install

* Correct spelling mistake

* Minor text updates to workflow

* Minor text updates to workflow-model-zoo

* Further updates to install instructions

* Further updates to install instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Revise Alveo support, board_setup docs, Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Fix Model Zoo downloader.py typo

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix broken workflow link

* Add V70 DPU description

* Add V70 DPU description

* Fix broken third-party link

* Update EDD2020 dataset link

* Updates for TOCTree structure

* Major revisions to 3.0 docs

* Rebrand quickstarts

* Fix release notes links:

* Initial 3.5 doc changes

* Initial changes for 3.5 docs

* Initial Doxygen integration test

* Fixed Command in Install.rst

* Fixed quickstart optimization links

* Fixed quickstart optimization links

* Update VAI_IDE.PNG

* Delete VAI_IDE.PNG

* Updated VAI_IDE.PNG

* Merging Mpsoc quick start and setting up the target

* MPSOC Quick Start Upload Test

* Updated to new AMD theme

* Update Sphinx theme

* Updates to MPSoC quickstart

* Updates to MPSoC quickstart

* Updates to MPSoC quickstart

* MPSOC Changes

* New MPSOC + Quentons Changes

* Remove Chapter 8 reference

* Merging 3.0 changes to 3.5

* Fixed table format

* Minor updates

* Fixed MPSOC.rst

* Various 3.5 documentation updates

* Various 3.5 documentation updates

* First pass V70 quickstart

* GithubIO & repo updates for 3.5

* Remove RNN quantizer and Transformer references

* Updated to remove legal keywords

* Update V70 Quickstart, remove VCK5000 doc

* Synced latest changes

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Remove historic ONNX runtime EP docs

* Update custom_target.rst

* Update custom_target.rst

* Fix v70.rst formatting

* Update VEK280 Quickstart, Linux kernel version listings

* Update VEK280 Quickstart, Linux kernel version listings

* VEK280 + V70 Quickstarts

* Updates to V70 and Model Zoo

* Add Wallace.jpg

* Merge changes across all Quickstarts

* update for v70 quick start

* Minor updates to Quickstarts

* Editorial updates for 3.5 release

* update v70 quickstart command

* update v70 quickstart command

* Update Linux Devicetree docs

* Add Linux CMA Topic

* WSL Docker Links Added

* Doxygen and DPU nomenclature updates

* Update Online Install

* update v70 quick start command

* Minor edits to Library online install

* Remove VE2202/2602 from release notes

* Fix Alveo V70 image

* Fix Alveo targets discontinued statement

Co-authored-by: Rhind <arhind@amd.com>
Co-authored-by: Aidan Rhind <aidan.rhind@xilinx.com>
Co-authored-by: suzhan <zhans@xilinx.com>

* sync vaiq pytorch code and correct example directory (#1125)

Co-authored-by: niuxj <niuxj@xilinx.com>

* delete board_setup_v70.rst

* [wego] add release notes for wego part. (#1127)

Co-authored-by: Tianping Li <tianping@xcogpuvai02.xilinx.com>

* update release note about V70 vitis version

* Update src/vai_petalinux_recipes/README.md

* Vai 3.5 update (#1129)

* add XNNC

* fix bugs in example and change default onnx_opset_version from 11 to 13

Co-authored-by: Zhenzhen Ding <zhenzhen.ding@xilinx.com>

* Vai 3.5 update (#1130)

* Update ONNX Runtime docs, dpu/README.md

* Fix model_zoo/README.md Github.IO link, update Zoo license link in HTML docs

* Fix Docker image naming convention and run commands

* Fix Docker image naming convention and run commands

* Update CUDA container test to align with release CUDA version

* Fix Docker image naming convention and run commands

* Fix broken Model Zoo license agreement link

* Minor text updates to workflow HTML

* Further optimization of install instructions

* Further optimization of install instructions

* Correct Model Zoo links in board_setup

* Consolidate install_docker into install

* Correct spelling mistake

* Minor text updates to workflow

* Minor text updates to workflow-model-zoo

* Further updates to install instructions

* Further updates to install instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Revise Alveo support, board_setup docs, Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Fix Model Zoo downloader.py typo

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix broken workflow link

* Add V70 DPU description

* Add V70 DPU description

* Fix broken third-party link

* Update EDD2020 dataset link

* Updates for TOCTree structure

* Major revisions to 3.0 docs

* Rebrand quickstarts

* Fix release notes links:

* Initial 3.5 doc changes

* Initial changes for 3.5 docs

* Initial Doxygen integration test

* Fixed Command in Install.rst

* Fixed quickstart optimization links

* Fixed quickstart optimization links

* Update VAI_IDE.PNG

* Delete VAI_IDE.PNG

* Updated VAI_IDE.PNG

* Merging Mpsoc quick start and setting up the target

* MPSOC Quick Start Upload Test

* Updated to new AMD theme

* Update Sphinx theme

* Updates to MPSoC quickstart

* Updates to MPSoC quickstart

* Updates to MPSoC quickstart

* MPSOC Changes

* New MPSOC + Quentons Changes

* Remove Chapter 8 reference

* Merging 3.0 changes to 3.5

* Fixed table format

* Minor updates

* Fixed MPSOC.rst

* Various 3.5 documentation updates

* Various 3.5 documentation updates

* First pass V70 quickstart

* GithubIO & repo updates for 3.5

* Remove RNN quantizer and Transformer references

* Updated to remove legal keywords

* Update V70 Quickstart, remove VCK5000 doc

* Synced latest changes

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Remove historic ONNX runtime EP docs

* Update custom_target.rst

* Update custom_target.rst

* Fix v70.rst formatting

* Update VEK280 Quickstart, Linux kernel version listings

* Update VEK280 Quickstart, Linux kernel version listings

* VEK280 + V70 Quickstarts

* Updates to V70 and Model Zoo

* Add Wallace.jpg

* Merge changes across all Quickstarts

* update for v70 quick start

* Minor updates to Quickstarts

* Editorial updates for 3.5 release

* update v70 quickstart command

* update v70 quickstart command

* Update Linux Devicetree docs

* Add Linux CMA Topic

* WSL Docker Links Added

* Doxygen and DPU nomenclature updates

* Update Online Install

* update v70 quick start command

* Minor edits to Library online install

* Remove VE2202/2602 from release notes

* Fix Alveo V70 image

* Fix Alveo targets discontinued statement

* Update Online Library Install

* Update Online Library Install

* Correct dumb number mistake

* Correct dumb number mistake

* Clean HTML build

* Additional Editorial Changes

* Restructure index.rst, convert VEK280 ref design to RST

* Update Model Zoo to 3.5

* Fix minor formatting errors

Co-authored-by: Rhind <arhind@amd.com>
Co-authored-by: Aidan Rhind <aidan.rhind@xilinx.com>
Co-authored-by: suzhan <zhans@xilinx.com>

* vai 3.5 release (#1131)

Co-authored-by: qiuyuny <qiuyuny@xilinx.com>

* remove invalid links

* [Release][bugfix]change v70 setup url to rel path (#1133)

* update vart source to the latest (#1134)

Co-authored-by: qianglin-xlnx <linqiang@xilinx.com>

* Final updates for 3.5 public release (#1136)

* Update ONNX Runtime docs, dpu/README.md

* Fix model_zoo/README.md Github.IO link, update Zoo license link in HTML docs

* Fix Docker image naming convention and run commands

* Fix Docker image naming convention and run commands

* Update CUDA container test to align with release CUDA version

* Fix Docker image naming convention and run commands

* Fix broken Model Zoo license agreement link

* Minor text updates to workflow HTML

* Further optimization of install instructions

* Further optimization of install instructions

* Correct Model Zoo links in board_setup

* Consolidate install_docker into install

* Correct spelling mistake

* Minor text updates to workflow

* Minor text updates to workflow-model-zoo

* Further updates to install instructions

* Further updates to install instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Cleanup VCK5000 setup instructions

* Revise Alveo support, board_setup docs, Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Revise Alveo support / unify board_setup docs / update Model Zoo readme

* Fix Model Zoo downloader.py typo

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Add Github.IO 404.html page

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix VCK5000 board_setup doc error

* Fix broken workflow link

* Add V70 DPU description

* Add V70 DPU description

* Fix broken third-party link

* Update EDD2020 dataset link

* Updates for TOCTree structure

* Major revisions to 3.0 docs

* Rebrand quickstarts

* Fix release notes links:

* Initial 3.5 doc changes

* Initial changes for 3.5 docs

* Initial Doxygen integration test

* Fixed Command in Install.rst

* Fixed quickstart optimization links

* Fixed quickstart optimization links

* Update VAI_IDE.PNG

* Delete VAI_IDE.PNG

* Updated VAI_IDE.PNG

* Merging Mpsoc quick start and setting up the target

* MPSOC Quick Start Upload Test

* Updated to new AMD theme

* Update Sphinx theme

* Updates to MPSoC quickstart

* Updates to MPSoC quickstart

* Updates to MPSoC quickstart

* MPSOC Changes

* New MPSOC + Quentons Changes

* Remove Chapter 8 reference

* Merging 3.0 changes to 3.5

* Fixed table format

* Minor updates

* Fixed MPSOC.rst

* Various 3.5 documentation updates

* Various 3.5 documentation updates

* First pass V70 quickstart

* GithubIO & repo updates for 3.5

* Remove RNN quantizer and Transformer references

* Updated to remove legal keywords

* Update V70 Quickstart, remove VCK5000 doc

* Synced latest changes

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Update Github to GithubIO inter-linkage

* Remove historic ONNX runtime EP docs

* Update custom_target.rst

* Update custom_target.rst

* Fix v70.rst formatting

* Update VEK280 Quickstart, Linux kernel version listings

* Update VEK280 Quickstart, Linux kernel version listings

* VEK280 + V70 Quickstarts

* Updates to V70 and Model Zoo

* Add Wallace.jpg

* Merge changes across all Quickstarts

* update for v70 quick start

* Minor updates to Quickstarts

* Editorial updates for 3.5 release

* update v70 quickstart command

* update v70 quickstart command

* Update Linux Devicetree docs

* Add Linux CMA Topic

* WSL Docker Links Added

* Doxygen and DPU nomenclature updates

* Update Online Install

* update v70 quick start command

* Minor edits to Library online install

* Remove VE2202/2602 from release notes

* Fix Alveo V70 image

* Fix Alveo targets discontinued statement

* Update Online Library Install

* Update Online Library Install

* Correct dumb number mistake

* Correct dumb number mistake

* Clean HTML build

* Additional Editorial Changes

* Restructure index.rst, convert VEK280 ref design to RST

* Update Model Zoo to 3.5

* Fix minor formatting errors

* Updates to Linux CMA, Release Notes, etc

* Update VEK280 notes

* new vek280 graphic, format fixing, resnet50_pt-=> resnet50 for example

Co-authored-by: Rhind <arhind@amd.com>
Co-authored-by: Aidan Rhind <aidan.rhind@xilinx.com>
Co-authored-by: suzhan <zhans@xilinx.com>

* [fix] fix tf2_2dunet yaml (#1139)

Co-authored-by: shili <lishi@xilinx.com>

Co-authored-by: Tianping Li <tianping.li@xilinx.com>
Co-authored-by: Tianping Li <tianping@xcogpuvai02.xilinx.com>
Co-authored-by: Qiang Lin <qiang.lin@xilinx.com>
Co-authored-by: qianglin-xlnx <linqiang@xilinx.com>
Co-authored-by: Xinlin Yang <xinlin.yang@xilinx.com>
Co-authored-by: xlinyang <xlinyang@xilinx.com>
Co-authored-by: Quenton Hall <quentonh@amd.com>
Co-authored-by: Rhind <arhind@amd.com>
Co-authored-by: Li Shi <li.shi@xilinx.com>
Co-authored-by: shili <lishi@xilinx.com>
Co-authored-by: qiuyuny <qiuyuny@xilinx.com>
Co-authored-by: Hao Zhuan <haoz@xilinx.com>
Co-authored-by: suzhan <zhans@xilinx.com>
Co-authored-by: Zhan Su <zhan.su@amd.com>
Co-authored-by: Aidan Rhind <aidan.rhind@xilinx.com>
Co-authored-by: Peiyue Han <allanhan@xilinx.com>
Co-authored-by: Xinjun Niu <xinjun.niu@xilinx.com>
Co-authored-by: niuxj <niuxj@xilinx.com>
Co-authored-by: wangxd <wangxd@xilinx.com>
Co-authored-by: Xie, ChuanLiang <ChuanLiang.Xie@amd.com>
Co-authored-by: Yu Zhou <yu.zhou@xilinx.com>
Co-authored-by: Sen Wang <Sen.Wang1@amd.com>
Co-authored-by: yuwang <yu.w@amd.com>
Co-authored-by: Runfeng Wang <runfeng.wang@xilinx.com>
Co-authored-by: Xiaodong Wang <xiaodong.wang@xilinx.com>
Co-authored-by: Yunzhi Li <yunzhi.li@xilinx.com>
Co-authored-by: LiYunzhi <liyunzhi@xilinx.com>
Co-authored-by: GengXin Wu <gengxin.wu@xilinx.com>
Co-authored-by: Chao Li <chao.li@xilinx.com>
Co-authored-by: Yangyang Liang <ylia@xilinx.com>
Co-authored-by: Jason Jia <xijie.jia@xilinx.com>
Co-authored-by: Zhenzhen Ding <zhenzhen.ding@amd.com>
Co-authored-by: Zhenzhen Ding <zhenzhen.ding@xilinx.com>
Co-authored-by: Jiangyong Ren <jiangyong.ren@amd.com>
Co-authored-by: Jiangyong Ren <jiangyon@amd.com>
Co-authored-by: chuanliang <chuanlia@xilinx.com>
Co-authored-by: chaow <chaow@amd.com>
Co-authored-by: Yanjun Zhang <yanjun.zhang@xilinx.com>
Co-authored-by: Yanjun Zhang <yanjunz@xilinx.com>
Co-authored-by: Tianfang Meng <tianfang@amd.com>
Co-authored-by: jianxuw <jianxuw@amd.com>
Co-authored-by: JiLei Liu <jilei.liu@amd.com>
Co-authored-by: jileil <jilei.liu@xilinx.com>
Co-authored-by: Hao Zhuan <hao.zhuan@xilinx.com>
@liuzrcc
Copy link

liuzrcc commented Jan 6, 2024

Hi. I have had a similar issue. The quantized model works well, but the test accuracy drops after the compilation on the same test set. The platform is ZCU104 with Vitis-AI 2.0.

Any hints on whether this issue has been solved in a later Vitis-AI version? Or Do I need to check layer-by-layer and find a walkaround for the suspecious layers?

@lino-alves
Copy link
Author

Hi. I ended removing a portion of the model to check if it was the source of the accuracy loss and though the results improved they were still very poor. Given that the model includes a MobileNet backbone I am at the moment proceeding with Qantization Aware Training to verify if I start to get reasonable results and then will add back the portion of the model that I removed to verify if it causes issues or not.

Nevertheless there was no explanation why there is a massive difference between the quantized model and the compiled model. I didn't check with the newer versions of Vitis-AI yet, but i intend to use the latest version to run QAT and then compare the results of the float, quantized and compiled models.

All of this is still work in progress.

@liuzrcc
Copy link

liuzrcc commented Jan 9, 2024

Hi, Lino. Thank you for your answers. I have found a way to bypass this compilation issue.

Initially, I used int8 format images (i.e., after subtracting the mean) to train the model and deployed the DPU model that also takes int8 input, where the accuracy drop after compilation is 20%. Now, I shifted to FP32 for all steps, and the accuracy decrease is 0.5%, which is acceptable to me. I hope my case could help you a bit.

@lino-alves
Copy link
Author

Finally I had the time and all the pieces to find the root cause of this issue.

I now have a quantization aware trained (QAT) model of the MobilePose architecture with a MobileNetV2 backbone.
The difference in the inference results between the quantized model (running on a workstation's GPU) and the compiled model (running on a MPSoC) is still massive, which continues to be puzzling and unexplained.

I started splitting the model in two by moving layers from the DPU to the CPU one by one until the results are fine and what I found is that PyTorch's PixelShuffle operation is the root cause.
If I run the inference on the DPU just till the layer before the first PixelShuffle and infer the remaining layers on the CPU the results are good, on the other side by adding the first PixelShuffle layer to the DPU inference and still running the remaining layers on the CPU, then the results are very poor to the point of being unusable.

It seems that at least for this CNN model the PixelShuffle operation is not being correctly compiled or inferred on the DPU.

Given that I can't find a way to reopen this ticket, I will open another one if I don't see any activity here in the next days, because to me this seems like a bug, and one that can explain why the quantized model is working fine and the compiled is not.

@quentonh
Copy link
Contributor

@lishixlnx Are you able to re-open this issue and potentially assist @lino-alves in debugging this further?

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

5 participants