Got it

atc command not found on Atlas 200DK

Latest reply: Apr 9, 2021 14:34:49 1183 11 1 0 0

https://github.com/Ascend-Huawei/OfflineModelSamples/tree/main/face_recognition

How should I add some environment path or anything to not showing this error?

export PATH=/home/usr/Ascend/ascend-toolkit/latest/atc/bin:$PATH

export ASCEND_OPP_PATH=$/home/usr/Ascend/ascend-toolkit/latest/opp:$

export INSTALL_PATH=/home/usr/Ascend/ascend-toolkit/latest/arm64-linux


This article contains more resources

You need to log in to download or view. No account? Register

x

Hi we are working on it now.
View more
  • x
  • convention:

Hello, act model conversion command is not executed in atlas 200dk .
The ATC command exists in the local development kit. For the package installation of the local development environment, please refer to: https://support.huaweicloud.com/intl/en-us/dedg-A200dk_3000_c75/atlased_04_0025.html
After the package is installed, you need to set the environment variables before using ATC for model conversion, please refer to : https://support.huaweicloud.com/intl/en-us/dedg-A200dk_3000_c75/atlased_04_0026.html
View more
  • x
  • convention:

its.me
its.me Created Jan 26, 2021 07:40:47 (0) (0)
I got E40000: Failed to import te.platform.log_util. How to check valid Python version ?  
its.me
its.me Reply its.me  Created Jan 26, 2021 07:42:50 (0) (0)
ModuleNotFoundError: No module named '_struct'
ATC run failed, Please check the detail log, Try 'atc --help' for more information  
hello you can use these commands to check your python version:
python3.7.5 --version
pip3.7.5 --version
To check more dependencies, refer to https://support.huaweicloud.com/intl/en-us/dedg-A200dk_3000_c75/atlased_04_0024.html
This error is generally caused by the mismatch between the configuration of environment variables and the development kit version. Please confirm whether your package version is 20.1

View more
  • x
  • convention:

its.me
its.me Created Jan 27, 2021 03:14:33 (0) (0)
Ascend Toolkit is 20.0.RC1 but Ascend pyACL and CANN are 20.1.  
If you confirm that your package version is 20.1
You need to configure these environment variables and check whether the path of the environment variable exists:

export install_path=$HOME/Ascend/ascend-toolkit/latest
export PATH=/usr/local/python3.7.5/bin:${install_path}/atc/ccec_compiler/bin:${install_path}/atc/bin:$PATH
export ASCEND_OPP_PATH=${install_path}/opp
export PYTHONPATH=${install_path}/atc/python/site-packages:${install_path}/atc/python/site-packages/auto_tune.egg/auto_tune:${install_path}/atc/python/site-packages/schedule_search.egg:$PYTHONPATH
export LD_LIBRARY_PATH=${install_path}/atc/lib64:${LD_LIBRARY_PATH}
View more
  • x
  • convention:

its.me
its.me Created Jan 27, 2021 03:17:17 (0) (0)
I did it.  
Hi,the way confirming the version of toolkit is to check the foleder's name under $HOME/Ascend/ascend-toolkit.
If 20.0, you need to configure these environment variables and check whether the path of the environment variable exists:
export install_path=/home/HwHiAiUser/Ascend/ascend-toolkit/latest
export PATH=/usr/local/python3.7.5/bin:${install_path}/atc/ccec_compiler/bin:${install_path}/atc/bin:$PATH
export PYTHONPATH=${install_path}/atc/python/site-packages/te:${install_path}/atc/python/site-packages/topi:$PYTHONPATH
export ASCEND_OPP_PATH=${install_path}/opp
export LD_LIBRARY_PATH=${install_path}/atc/lib64:${LD_LIBRARY_PATH}

If 20.1:
export install_path=$HOME/Ascend/ascend-toolkit/latest
export PATH=/usr/local/python3.7.5/bin:${install_path}/atc/ccec_compiler/bin:${install_path}/atc/bin:$PATH
export ASCEND_OPP_PATH=${install_path}/opp
export PYTHONPATH=${install_path}/atc/python/site-packages:${install_path}/atc/python/site-packages/auto_tune.egg/auto_tune:${install_path}/atc/python/site-packages/schedule_search.egg:$PYTHONPATH
export LD_LIBRARY_PATH=${install_path}/atc/lib64:${LD_LIBRARY_PATH}

Besides,Ascend Toolkit's version must be consistent with version of Ascend pyACL/CANN,if you want to use ATC
View more
  • x
  • convention:

I solved this problem. Thank you :)
View more
  • x
  • convention:

Dear all,


Do you have correct setting for 20.2.rc1?


I download saved_model.pb from ModelArts using EfficientDet-d0.

Please help me to convert *.pb into *.om so I can use it with Atlas 200 DK.

err


If I use MindStudio 2.0.0 (beta 3), Ascend --> Model Converter

ms

Errors:

2021-04-09 13:54  Failed to get the model input shape.

2021-04-09 13:54  ATC start working now, please wait for a moment.

ATC run failed, Please check the detail log, Try 'atc --help' for more information

E19005: Parse file[/home/suryadi/AscendProjects/OutputEfficientDet/model/saved_model.pb] failed. Check whether the protobuf is valid or the fileds is correct.


How to solve this problem? Thank you very much.


Warmest Regards,

Suryadi

View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.