以下教學如何在 TWCC 建立一個開發型容器,並使用 Jupyter Notebook 的工作環境,進行 MNIST (手寫數字辨識資料集)的 AI 訓練
請參考 開發型容器 建立開發型容器
映像檔類型請選擇 TensorFlow、映像檔選擇支援 Python 3 的版本、硬體選擇支援 1 顆 GPU 的設定即可
以下程式碼請逐步打入Notebook
檢查有沒有安裝 python-dev
移除方法
確定成功
沒有出現pipenv位置
確定pip位置
重新install pipenv (要用–user)
pipenv install,確認pipenv位置&確認使用的pipenv有沒有一致
呼叫絕對位置
呼叫絕對位置的pipenv
有出現表示呼叫成功
重新做 pipenv install
做:移除 .local/ 路徑
移除方法(
此處info引用自:TWCC-CLI Step 2. 進入 TWCC_CLI 環境並開始使用服務Image Not Showing Possible ReasonsLearn More →
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
- 回到Terminal,輸入以下指令
輸入您的 TWCC API 金鑰 (金鑰會依計畫、使用者、使用者身份會有不同),便可成功登入
選擇使用的計畫 (使用滑鼠點擊計畫或在 Answer 輸入計畫編號後,Enter)
回到Jupyter Notebook,重複執行gpu_cntr.py
此處info引用自:TWCC-CLI Step 2. 進入 TWCC_CLI 環境並開始使用服務Image Not Showing Possible ReasonsLearn More →
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
查詢金鑰的方法:Image Not Showing Possible ReasonsLearn More →
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
- 登入 TWCC 後,點選右上角的使用者名稱,再點選「API 金鑰管理」
- 便可檢視您的金鑰
更換使用計畫的方法:Image Not Showing Possible ReasonsLearn More →
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
- 執行以下指令刪除金鑰,並再次進入 TWCC CLI 環境,便可輸入其他計畫之金鑰
注意:Image Not Showing Possible ReasonsLearn More →
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
- 輸入 API 金鑰後,若遇以下語言設定問題:
" UnicodeEncodeError: 'ascii' codec can't encode characters in position 4-6: ordinal not in range(128)"
- 請先依序執行以下指令,設定語言檔案,再次輸入 API 金鑰即可登入
623473