提交 aacb1da6 编写于 作者: H huzhifeng

update chinese readme

上级 31aa8457
# MindSpore Hub contributing guidelines
<!-- TOC -->
- [MindSpore Hub contributing guidelines](#mindspore-contributing-guidelines)
- [Contributor License Agreement](#contributor-license-agreement)
- [Getting Started](#getting-started)
- [Contribution workflow](#contribution-workflow)
- [Code style](#code-style)
- [Fork-Pull development model](#fork-pull-development-model)
- [Report issues](#report-issues)
- [Propose PRs](#propose-prs)
<!-- /TOC -->
## Contributor License Agreement
It's required to sign CLA before your first code submission to MindSpore community.
For individual contributor, please refer to [ICLA online document](https://www.mindspore.cn/icla) for the detailed information.
## Getting Started
- Fork the repository on [Gitee](https://gitee.com/mindspore/hub).
- Read the [README.md](README_CN.md) and [install page](#TODO) for project information and build instructions.
## Contribution Workflow
### Code style
Please follow this style to make MindSpore easy to review, maintain and develop.
* Coding guidelines
The *Python* coding style suggested by [Python PEP 8 Coding Style](https://pep8.org/) and *C++* coding style suggested by [Google C++ Coding Guidelines](http://google.github.io/styleguide/cppguide.html) are used in MindSpore community.
* Unittest guidelines
The *Python* unittest style suggested by [pytest](http://www.pytest.org/en/latest/) and *C++* unittest style suggested by [Googletest Primer](https://github.com/google/googletest/blob/master/googletest/docs/primer.md) are used in MindSpore community.
### Fork-Pull development model
* Fork MindSpore Hub repository
Before submitting code to MindSpore project, please make sure that this project have been forked to your own repository. It means that there will be parallel development between MindSpore Hub repository and your own repository, so be careful to avoid the inconsistency between them.
* Clone the remote repository
If you want to download the code to the local machine, `git` is the best way:
```shell
# For Gitee
git clone https://gitee.com/{insert_your_forked_repo}/hub.git
git remote add upstream https://gitee.com/mindspore/hub.git
```
* Develop code locally
To avoid inconsistency between multiple branches, checking out to a new branch is `SUGGESTED`:
```shell
git checkout -b {new_branch_name} origin/master
```
Then you can change the code arbitrarily.
* Push the code to the remote repository
After updating the code, you should push the update in the formal way:
```shell
git add .
git status # Check the update status
git commit -m "Your commit title"
git commit -s --amend #Add the concrete description of your commit
git push origin {new_branch_name}
```
* Pull a request to MindSpore repository
In the last step, your need to pull a compare request between your new branch and MindSpore `master` branch. After finishing the pull request, the Jenkins CI will be automatically set up for building test.
### Report issues
A great way to contribute to the project is to send a detailed report when you encounter an issue. We always appreciate a well-written, thorough bug report, and will thank you for it!
When reporting issues, refer to this format:
- What version of env (mindspore, os, python etc) are you using?
- Is this a BUG REPORT or FEATURE REQUEST?
- What happened?
- What you expected to happen?
- How to reproduce it?(as minimally and precisely as possible)
- Special notes for your reviewers?
**Issues advisory:**
- **If you find an unclosed issue, which is exactly what you are going to solve,** please put some comments on that issue to tell others you would be in charge of it.
- **If an issue is opened for a while,** it's recommended for contributors to precheck before working on solving that issue.
- **If you resolve an issue which is reported by yourself,** it's also required to let others know before closing that issue.
### Propose PRs
* Raise your idea as an *issue* [Gitee](https://gitee.com/mindspore/hub/issues)
* If it is a new feature that needs lots of design details, a design proposal should also be submitted.
* After reaching consensus in the issue discussions and design proposal reviews, complete the development on the forked repo and submit a PR.
* None of PRs is not permitted until it receives **2+ LGTM** from approvers. Please NOTICE that approver is NOT allowed to add *LGTM* on his own PR.
* After PR is sufficiently discussed, it will get merged, abandoned or rejected depending on the outcome of the discussion.
**PRs advisory:**
- Any irrelevant changes should be avoided.
- Make sure your commit history being ordered.
- Always keep your branch up with the master branch.
- For bug-fix PRs, make sure all related issues being linked.
## For Model Committer
You should refer to [mshub_res/README](https://gitee.com/mindspore/hub/blob/master/mshub_res/README.md) before
you upload your own model into mindspore model hub.
\ No newline at end of file
# Hub
MindSpore Hub
\ No newline at end of file
# Hub
MindSpore Hub
\ No newline at end of file
![MindSporelogo](docs/MindSpore-logo.png "MindSpore logo")
============================================================
[查看中文](./README_CN.md)
- [What Is MindSpore Hub](#what-is-mindspore-hub)
- [Installation](#installation)
- [Binaries](#binaries)
- [Quickstart](#quickstart)
- [Docs](#docs)
- [Community](#community)
- [Governance](#governance)
- [Communication](#communication)
- [Contributing](#contributing)
- [Release Notes](#release-notes)
- [License](#license)
## What is MindSpore Hub
MindSpore Hub
\ No newline at end of file
![MindSpore标志](docs/MindSpore-logo.png "MindSpore logo")
============================================================
[View English](./README.md)
- [MindSpore Hub介绍](#mindspore_hub介绍)
- [安装](#安装)
- [二进制文件](#二进制文件)
- [快速入门](#快速入门)
- [文档](#文档)
- [社区](#社区)
- [治理](#治理)
- [交流](#交流)
- [贡献](#贡献)
- [版本说明](#版本说明)
- [许可证](#许可证)
## MindSpore Hub介绍
MindSpore Hub是MindSpore生态的预训练模型应用工具,作为模型开发者和应用开发者的管道:
- 向模型开发者提供方便快捷的模型发布、提交通道;
- 向应用开发者提供高质量的预训练模型,结合模型加载以及模型Fine-tune API快速完成模型的迁移到部署的工作。
当前MindSpore Hub提供的预训练模型主要包括
图像分类、目标检测、语义模型、推荐模型等。更多模型内容可以查看[官网](#TODO)
## 特性
- **即插即用的模型加载**: 通过在MindSpore Hub网站上搜索可以快速得到想要的模型,快速体验MindSpore预训练模型;
- **简单易用的迁移学习**: 借助MindSpore灵活的接口,一步实现迁移学习。
## 文档
有关安装指南、教程和API的更多详细信息,请参阅[用户文档](#TODO)
## 社区
MindSpore Hub是MindSpore社区的一部分,关于社区的交流、贡献与治理内容与MindSpore社区一致。
### 治理
查看MindSpore如何进行[开放治理](https://gitee.com/mindspore/community/blob/master/governance.md)
### 交流
- [MindSpore Slack](https://join.slack.com/t/mindspore/shared_invite/zt-dgk65rli-3ex4xvS4wHX7UDmsQmfu8w) 开发者交流平台。
- `#mindspore`IRC频道(仅用于会议记录)
- 视频会议:待定
- 邮件列表:<https://mailweb.mindspore.cn/postorius/lists>
## 贡献
欢迎参与贡献。更多详情,请参阅我们的[贡献者Wiki](CONTRIBUTING.md)
## 版本说明
版本说明请参阅[RELEASE](RELEASE.md)
## 许可证
[Apache License 2.0](LICENSE)
\ No newline at end of file
......@@ -268,7 +268,7 @@ def sanity_check(json_path, check_dir=''):
with open(json_path, "w") as json_file:
for each_file in glob.glob(check_dir):
# Skip documentation
if os.path.basename(each_file) in ('README.md', 'README.en.md'):
if os.path.basename(each_file) in ('README_CN.md', 'README.md'):
continue
headers = ValidMarkdown(each_file).check_markdown_file()
json_str = json.dumps(headers, sort_keys=False, default=str, ensure_ascii=False)
......
......@@ -28,7 +28,7 @@ def parse_args():
def check_md_of_path(check_dir='../assets/'):
"""check all markdown files of dir."""
skip_check_list = ['README.md', 'README.en.md']
skip_check_list = ['README_CN.md', 'README.md']
if not os.path.exists(check_dir):
print(f"{check_dir} does not exist!")
......
......@@ -31,13 +31,13 @@ def test_check_md_of_dir(check_dir='../mshub_res/assets/mindspore/gpu/0.6/'):
check_dir = os.path.join(check_dir, '*.md')
for each_file in glob.glob(check_dir):
# Skip documentation
if os.path.basename(each_file) in ('README.md', 'README.en.md'):
if os.path.basename(each_file) in ('README_CN.md', 'README.md'):
continue
ValidMarkdown(each_file).check_markdown_file()
def test_check_all_md_of_dir(check_dir='../mshub_res/assets/'):
"""check all markdown files of dir."""
skip_check_list = ['README.md', 'README.en.md']
skip_check_list = ['README_CN.md', 'README.md']
def record(folder, md_list):
for name in os.listdir(folder):
if os.path.isdir(os.path.join(folder, name)):
......@@ -90,7 +90,7 @@ def skip_test_load_weights():
repo_link = 'https://gitee.com/mindspore/mindspore/tree/master/model_zoo/official/cv/alexnet'
_download_repo_from_url(repo_link, path)
net = _get_network_from_cache(path+'/alexnet')
net = _get_network_from_cache('alexnet', path+'/alexnet')
load_weights(net, handle='mindspore/alexnet_v1_cifar10', force_reload=True)
print(net)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册