You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 943 B

2 years ago
2 years ago
2 years ago
2 years ago
12345678910111213141516171819202122232425262728293031323334353637383940
  1. # 如何在启智平台上进行模型调试和训练
  2. ## 1. openi的使用方法
  3. 安装openi包
  4. ```
  5. pip install -U openi
  6. ```
  7. 若是在智算训练任务中无网络,可以使用以下指令安装
  8. ```text
  9. import os
  10. os.system("pip install {}".format(os.getenv("OPENI_SDK_PATH")))
  11. ```
  12. 使用openi包
  13. ```
  14. #导入包
  15. from openi.context import prepare, upload_openi
  16. #初始化导入数据集和预训练模型到容器内
  17. openi_context = prepare()
  18. #获取数据集路径,预训练模型路径,输出路径
  19. dataset_path = openi_context.dataset_path
  20. pretrain_model_path = openi_context.pretrain_model_path
  21. output_path = openi_context.output_path
  22. #回传结果到openi,训练任务才能回传,调试任务回传后也是不支持下载
  23. upload_openi()
  24. ```
  25. ## 2. 手写数字识别示例
  26. * GPU示例请参考[gpu_mnist_example](./gpu_mnist_example/README.md)
  27. * NPU示例请参考[npu_mnist_example](./npu_mnist_example/README.md)

No Description