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 876 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233
  1. # 如何在启智平台上进行模型调试和训练
  2. ## 1. c2net的sdk使用方法
  3. 安装c2net-beta包
  4. ```
  5. pip install -U c2net-beta
  6. ```
  7. 使用c2net的SDK方式
  8. ```
  9. #导入包
  10. from c2net.context import prepare, upload_output
  11. #初始化导入数据集和预训练模型到容器内
  12. c2net_context = prepare()
  13. #获取数据集路径,预训练模型路径,输出路径
  14. dataset_path = c2net_context.dataset_path
  15. pretrain_model_path = c2net_context.pretrain_model_path
  16. output_path = c2net_context.output_path
  17. #回传结果到openi,训练任务才能回传,调试任务回传后也是不支持下载
  18. upload_output()
  19. ```
  20. ## 2. 手写数字识别示例
  21. * GPU示例请参考[gpu_mnist_example](./gpu_mnist_example/README.md)
  22. * NPU示例请参考[npu_mnist_example](./npu_mnist_example/README.md)
  23. * GCU示例请参考[gcu_mnist_example](./gcu_mnist_example/README.md)

No Description