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 3.8 kB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. [简体中文](./README_CN.md)
  2. - [Introduction ](#introduction)
  3. - [Installation](#installation)
  4. - [QuickStart](#quick-start)
  5. - [Docs](#docs)
  6. - [Community](#community)
  7. - [Governance](#governance)
  8. - [Communication](#communication)
  9. - [Contributing](#contributing)
  10. - [Release Notes](#release-notes)
  11. - [License](#license)
  12. ## Introduction
  13. MindInsight provides MindSpore with easy-to-use debugging and tuning capabilities. During the training, data such as scalar, tensor, image, computational graph, model hyper parameter and training’s execution time can be recorded in the file for viewing and analysis through the visual page of MindInsight.
  14. ![MindInsight Architecture](docs/arch.png)
  15. Click to view the [Design document](https://www.mindspore.cn/doc/note/en/master/design/overall.html),learn more about the design.
  16. Click to view the [Tutorial documentation](https://www.mindspore.cn/tutorial/training/en/master/advanced_use/visualization_tutorials.html) learn more about the MindInsight tutorial.
  17. ## Installation
  18. Download whl package from [MindSpore download page](https://www.mindspore.cn/versions/en), and install the package.
  19. ```
  20. pip install -U mindinsight-{version}-cp37-cp37m-linux_{arch}.whl
  21. ```
  22. For more details on how to install MindInsight, click on the MindInsight section of the [installation tutorial](https://www.mindspore.cn/install/en).
  23. ## Quick Start
  24. Before using MindInsight, the data in the training process should be recorded. When starting MindInsight, the directory of the saved data should be specified. After successful startup, the data can be viewed through the web page. Here is a brief introduction to recording training data, as well as starting and stopping MindInsight.
  25. [SummaryCollector](https://www.mindspore.cn/doc/api_python/en/master/mindspore/mindspore.train.html#mindspore.train.callback.SummaryCollector) is the interface MindSpore provides for a quick and easy collection of common data about computational graphs, loss values, learning rates, parameter weights, and so on. Below is an example of using `SummaryCollector` for data collection, specifying the directory where the data is stored in `./summary_dir`.
  26. ```
  27. ...
  28. from mindspore.train.callback import SummaryCollector
  29. summary_collector = SummaryCollector(summary_dir='./summary_dir')
  30. model.train(epoch=1, ds_train, callbacks=[summary_collector])
  31. ```
  32. For more ways to record visual data, see the [MindInsight Tutorial](https://www.mindspore.cn/tutorial/training/en/master/advanced_use/visualization_tutorials.html).
  33. After you've collected the data, when you launch MindInsight, specify the directory in which the data has been stored.
  34. ```
  35. mindinsight start --summary-base-dir ./summary_dir
  36. ```
  37. After successful startup, visit `http://127.0.0.1:8080` through the browser to view the web page.
  38. Command of stopping the MindInsight service:
  39. ```
  40. mindinsight stop
  41. ```
  42. ## Docs
  43. More details about installation guide, tutorials and APIs, please see the
  44. [User Documentation](https://gitee.com/mindspore/docs).
  45. ## Community
  46. ### Governance
  47. Check out how MindSpore Open Governance [works](https://gitee.com/mindspore/community/blob/master/governance.md).
  48. ### Communication
  49. - [MindSpore Slack](https://join.slack.com/t/mindspore/shared_invite/zt-dgk65rli-3ex4xvS4wHX7UDmsQmfu8w) - Communication platform for developers.
  50. - IRC channel at `#mindspore` (only for meeting minutes logging purpose)
  51. - Video Conferencing: TBD
  52. - Mailing-list: <https://mailweb.mindspore.cn/postorius/lists>
  53. ## Contributing
  54. Welcome contributions. See our [Contributor Wiki](https://gitee.com/mindspore/mindspore/blob/master/CONTRIBUTING.md) for
  55. more details.
  56. ## Release Notes
  57. The release notes, see our [RELEASE](RELEASE.md).
  58. ## License
  59. [Apache License 2.0](LICENSE)