MindStudio訓(xùn)練營(yíng)第一期
前提:
[一鍵部署MindStudio ECS云環(huán)境 快速體驗(yàn)MindStudio!
下載實(shí)例:https://wwjl.lanzoum.com/igQyx0hy8d8b (情緒識(shí)別)
環(huán)境搭建
1.SSH
云服務(wù)器準(zhǔn)備
下載mobaxterm
-> 打開(kāi) ->
session->
ssh`-> 輸入用戶名 root 點(diǎn)擊 ok ->輸入密碼登錄-> 搭建成功
2.解壓實(shí)例代碼
用MindStudio打開(kāi)File-
>Open Project
->FacialExpressionRecognition
3 配置
訪問(wèn)目錄:
.File
-> Settings
->Appearance & Behavior
-> System Settings
-> CANN
->Change CANN
->Remote CANN Settings
->
Remote Connection
-> 點(diǎn)擊+ 進(jìn)入SSH Configuration
-> 點(diǎn)擊+ 輸入華為云信息Remote CANN location
點(diǎn)擊文件夾,路徑:Ascend/ascend-toolkit/latest
Finsh
-> 重啟MindStudio
4.Remote MindX SDK Setting配置
訪問(wèn)目錄:
File
->Settings
->Appearance & Behavior
-> System Settings
-> MindX SDK
點(diǎn)擊
Install SDK
Remote CANN location
和Remote SDK location
點(diǎn)擊OK
5.Add Python Interpreter
訪問(wèn)目錄:
File
-> Project Structure
->Platform Settings
-> SDKs
點(diǎn)擊+ ->
AddPython SDK
Add Python Interpreter
->SSH Interpreter
6.Project Structure Project
訪問(wèn)目錄:
File
-> Project Structure
->Project Settings
->Project
SDK 選擇 Remote Python 3.9.5
7.Project Structure -> Settings -> Modules
訪問(wèn)目錄:
File
-> Project Structure
->Platform Settings
-> Modules
->FacialExpressionRecognition
->Dependencies
Module SDK 選擇 Remote PYthon 3.9.5
8.保存
Apply保存
-> 等待程序處理完成 -> Tool/Deployment/Automatic Upload ->Choose server
運(yùn)行代碼
1.配置 main
main(左上角) -> Edit Configuration -> Deployment -> +
2.運(yùn)行
刪除my_result.jpg
-> 運(yùn)行main
-> 判斷
3.結(jié)束
服務(wù)器關(guān)機(jī)!