Xilinx / Vitis-AI-Tutorials

MIT License
381 stars 145 forks source link

The file '/opt/vitis_ai/compiler/arch/DPUCAHX8H/U50/arch.json' not found #10

Open AltiumChou opened 3 years ago

AltiumChou commented 3 years ago

I got the error message when I do the step 6 "source 6_compile.sh".

Traceback (most recent call last): File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/bin/vai_c_tensorflow", line 186, in compiler = VAI_TensorFlow_Frontend(args) File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/bin/vai_c_tensorflow", line 76, in init with open(args.arch) as json_data: FileNotFoundError: [Errno 2] No such file or directory: '/opt/vitis_ai/compiler/arch/DPUCAHX8H/U50/arch.json'

It seem like the file "arch.json" did not generate when I start this docker. How should I do to fix that? thx

lorantszabo98 commented 3 years ago

Hi! I'm facing the same problem. Did you find any solution? Documentation says: "You can find thearch.json files for those platforms in /opt/vitis_ai/compiler/arch." But I can't see any files there. Should I reinstall the whole VitisAI? Thanks

JianmingTONG commented 3 years ago

This is the solution link https://forums.xilinx.com/t5/AI-and-Vitis-AI/Vitis-AI-Compiler-ZCU104-json/td-p/1129551.

The arch.json files are located after we launch the docker and there are arch.json in the /opt/vitis_ai/compiler/arch of the docker