05-24-2020
11:07 PM
- last edited on
05-27-2020
04:08 AM
by
meherp
Hello all,
I hope all are doing great.
I have download the tf_vgg16/19 models from the Xilinx model zoo and tried to compile it for the two different DPU architecture B3136 & B4096 by using the vai_c_tensorflow compiler.
Result:
Vgg16/19 is successfully compiled for 4096 DPU architecture but it did not get compiled with 3136 DPU architecture with the following error.
(vitis-ai-tensorflow) root@root:/opt/vitis_ai/compiler$ ./vai_c_tensorflow -f /workspace/models/tf_vgg19_imagenet_224_224_39.28G/quantized/quantize_results
deploy_model.pb -a /workspace/dcf/evk.json -o /workspace/models/tf_vgg19_imagenet_224_224_39.28G/ -n vgg_19_tf
**************************************************
* VITIS_AI Compilation - Xilinx Inc.
**************************************************
/workspace/dcf/evk.json
[VAI_C-BACKEND][FATAL][/home/dnnc/submodules/asicv2com/include/Dpu/DpuOp.imp:365][VALUE_UNMATCH][The value is not supposed!] 0: 2-24-31 Field is too long!
*** Check failure stack trace: ***
From the above experience I came to know that some of the model zoo networks are DPU architecture-dependent.
It would be very useful for us If someone can provide the information about the Xilinx model zoo support with respect to the DPU architecture.
Thank you in advance.
05-27-2020 12:44 AM
HI @deepg799
Some of the large models may fail in architectures other than 4096.
VGG is one of the large model. May be you can try the resnet model which has better efficiency, and have less number of parameters than VGG.
05-25-2020 02:17 AM - edited 05-25-2020 05:06 AM
HI @deepg799
If you have an architecture other than 4096, then you need to recompile the frozen model.
Please refer https://github.com/gewuek/vitis_ai_custom_platform_flow where .hwh file is used to recompile the model.
Please refer https://forums.xilinx.com/t5/forums/replypage/board-id/AI/message-id/4346 where .hwh file is used to recompile the model.
05-25-2020 04:05 AM - edited 05-25-2020 04:07 AM
Thanks for the update.
you provide the reference link to this forum only. could you reshare the reference link?
I think I am doing the same steps that you are telling here.
(vitis-ai-tensorflow) @root@root:/opt/vitis_ai/compiler$ ./vai_c_tensorflow -f /workspace/models/tf_vgg19_imagenet_224_224_39.28G/quantized/quantize_results/
deploy_model.pb -a /workspace/dcf/evk.json -o /workspace/models/tf_vgg19_imagenet_224_224_39.28G/ -n vgg_19_tf
**************************************************
* VITIS_AI Compilation - Xilinx Inc.
**************************************************
/workspace/dcf/evk.json
[VAI_C-BACKEND][FATAL][/home/dnnc/submodules/asicv2com/include/Dpu/DpuOp.imp:365][VALUE_UNMATCH][The value is not supposed!] 0: 2-24-31 Field is too long!
*** Check failure stack trace: ***
The evk.json file is pointing to .dcf file. which is generated by the ddump utility by using the .hwh file.
05-25-2020 05:08 AM
Hi @deepg799
Updated in previous reply as well.
"Please refer https://github.com/gewuek/vitis_ai_custom_platform_flow where .hwh file is used to recompile the model."
05-26-2020 04:39 AM
05-26-2020 05:39 AM
05-26-2020 09:48 AM
Does anyone have any suggestions over here?
is the xilinx model zoo is compatible with all the DPU architecture?
05-27-2020 12:44 AM
HI @deepg799
Some of the large models may fail in architectures other than 4096.
VGG is one of the large model. May be you can try the resnet model which has better efficiency, and have less number of parameters than VGG.