README.md 3.7 KB
Newer Older
L
Li Hongzhang 已提交
1
[简体中文](./README_CN.md)
G
gaocongli 已提交
2

3
- [Introduction ](#introduction)
G
gaocongli 已提交
4
- [Installation](#installation)
L
Li Hongzhang 已提交
5
- [QuickStart](#quick-start)
G
gaocongli 已提交
6 7
- [Docs](#docs)
- [Community](#community)
8 9
    - [Governance](#governance)
    - [Communication](#communication)
G
gaocongli 已提交
10 11 12 13
- [Contributing](#contributing)
- [Release Notes](#release-notes)
- [License](#license)

14 15
## Introduction
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.
G
gaocongli 已提交
16 17 18

![MindInsight Architecture](docs/arch.png)

19 20
Click to view the [Design document](https://www.mindspore.cn/docs/en/master/design.html),learn more about the design.
Click to view the [Tutorial documentation](https://www.mindspore.cn/tutorial/en/master/advanced_use/visualization_tutorials.html) learn more about the MindInsight tutorial.
G
gaocongli 已提交
21

22 23
## Installation
Download whl package from [MindSpore download page](https://www.mindspore.cn/versions/en), and install the package.
G
gaocongli 已提交
24

25 26 27
```
pip install -U mindinsight-{version}-cp37-cp37m-linux_{arch}.whl
```
G
gaocongli 已提交
28

29
For more details on how to install MindInsight, click on the MindInsight section of the [installation tutorial](https://www.mindspore.cn/install/en).
G
gaocongli 已提交
30

31 32
## Quick Start
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.
G
gaocongli 已提交
33

34 35 36
[SummaryCollector](https://www.mindspore.cn/api/en/master/api/python/mindspore/mindspore.train.html?highlight=summarycollector#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`.
```
...
G
gaocongli 已提交
37

38 39 40 41
from mindspore.train.callback import SummaryCollector
summary_collector = SummaryCollector(summary_dir='./summary_dir')
model.train(epoch=1, ds_train, callbacks=[summary_collector])
```
G
gaocongli 已提交
42

43
For more ways to record visual data, see the [MindInsight Tutorial](https://www.mindspore.cn/tutorial/en/master/advanced_use/visualization_tutorials.html).
44

45 46 47 48
After you've collected the data, when you launch MindInsight, specify the directory in which the data has been stored.
```
mindinsight start --summary-base-dir ./summary_dir
```
49

50
After successful startup, visit `http://127.0.0.1:8080` through the browser to view the web page.
G
gaocongli 已提交
51

52 53 54 55
Command of stopping the MindInsight service:
```
mindinsight stop
```
G
gaocongli 已提交
56

57 58 59
## Docs
More details about installation guide, tutorials and APIs, please see the
[User Documentation](https://gitee.com/mindspore/docs).
G
gaocongli 已提交
60

61 62 63
## Community
### Governance
Check out how MindSpore Open Governance [works](https://gitee.com/mindspore/community/blob/master/governance.md).
G
gaocongli 已提交
64

65 66 67 68 69
### Communication
- [MindSpore Slack](https://join.slack.com/t/mindspore/shared_invite/zt-dgk65rli-3ex4xvS4wHX7UDmsQmfu8w) - Communication platform for developers.
- IRC channel at `#mindspore` (only for meeting minutes logging purpose)
- Video Conferencing: TBD
- Mailing-list: <https://mailweb.mindspore.cn/postorius/lists>
G
gaocongli 已提交
70

71 72 73
## Contributing
Welcome contributions. See our [Contributor Wiki](https://gitee.com/mindspore/mindspore/blob/master/CONTRIBUTING.md) for
more details.
G
gaocongli 已提交
74

75
## Release Notes
G
gaocongli 已提交
76 77
The release notes, see our [RELEASE](RELEASE.md).

78
## License
G
gaocongli 已提交
79
[Apache License 2.0](LICENSE)
80