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_CN.md 3.3 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. [View English](./README.md)
  2. - [介绍](#介绍)
  3. - [安装](#安装)
  4. - [快速入门](#快速入门)
  5. - [文档](#文档)
  6. - [社区](#社区)
  7. - [治理](#治理)
  8. - [交流](#交流)
  9. - [贡献](#贡献)
  10. - [版本说明](#版本说明)
  11. - [许可证](#许可证)
  12. ## 介绍
  13. MindInsight为MindSpore提供了简单易用的调优调试能力。在训练过程中,可以将标量、张量、图像、计算图、模型超参、训练耗时等数据记录到文件中,通过MindInsight可视化页面进行查看及分析。
  14. ![MindInsight Architecture](docs/arch.png)
  15. 点击查看[设计文档](https://www.mindspore.cn/docs/zh-CN/master/design.html),了解更多设计详情。
  16. 点击查看[教程文档](https://www.mindspore.cn/tutorial/zh-CN/master/advanced_use/visualization_tutorials.html),了解更多MindInsight教程。
  17. ## 安装
  18. 请从[MindSpore下载页面](https://www.mindspore.cn/versions)下载并安装whl包。
  19. ```
  20. pip install -U mindinsight-{version}-cp37-cp37m-linux_{arch}.whl
  21. ```
  22. 更多MindInsight的安装方法,请点击[安装教程](https://www.mindspore.cn/install/)中的MindInsight章节进行查看。
  23. ## 快速入门
  24. 使用MindInsight前,需要先将训练过程中的数据记录下来,启动MindInsight时,指定所保存的数据的位置,启动成功后,
  25. 即可通过可视化页面查看数据。下面将简单介绍记录训练过程数据,以及启动、停止MindInsight服务。
  26. [SummaryCollector](https://www.mindspore.cn/api/zh-CN/master/api/python/mindspore/mindspore.train.html?highlight=summarycollector#mindspore.train.callback.SummaryCollector)是MindSpore提供的快速简易地收集一些常见信息的接口,收集的信息包括计算图、损失值、学习率、参数权重等。
  27. 下面是使用 `SummaryCollector` 进行数据收集的示例,其中指定存放数据的目录为 `./summary_dir`。
  28. ```
  29. ...
  30. from mindspore.train.callback import SummaryCollector
  31. summary_collector = SummaryCollector(summary_dir='./summary_dir')
  32. model.train(epoch=1, ds_train, callbacks=[summary_collector])
  33. ```
  34. 更多记录可视化数据的方法,请点击查看[MindInsight使用教程](https://www.mindspore.cn/tutorial/zh-CN/master/advanced_use/visualization_tutorials.html)。
  35. 收集好数据后,启动MindInsight时指定存放数据的目录。
  36. ```
  37. mindinsight start --summary-base-dir ./summary_dir
  38. ```
  39. 启动成功后,通过浏览器访问 `http://127.0.0.1:8080`,查看可视化页面。
  40. 停止MindInsight服务的命令:
  41. ```
  42. mindinsight stop
  43. ```
  44. ## 文档
  45. 有关安装指南、教程和API的更多详细信息,请参阅[用户文档](https://gitee.com/mindspore/docs)。
  46. ## 社区
  47. ### 治理
  48. 查看MindSpore如何进行[开放治理](https://gitee.com/mindspore/community/blob/master/governance.md)。
  49. ### 交流
  50. - [MindSpore Slack](https://join.slack.com/t/mindspore/shared_invite/zt-dgk65rli-3ex4xvS4wHX7UDmsQmfu8w) 开发者交流平台。
  51. - `#mindspore`IRC频道(仅用于会议记录)
  52. - 视频会议:待定
  53. - 邮件列表:<https://mailweb.mindspore.cn/postorius/lists>
  54. ## 贡献
  55. 欢迎参与贡献。更多详情,请参阅我们的[贡献者Wiki](https://gitee.com/mindspore/mindspore/blob/master/CONTRIBUTING.md)。
  56. ## 版本说明
  57. 版本说明请参阅[RELEASE](RELEASE.md)。
  58. ## 许可证
  59. [Apache License 2.0](LICENSE)