Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing an Image Classification App in One Minute for TinyMS 0.3.1 #140

Merged
merged 1 commit into from
Jan 27, 2022

Conversation

xinwenh
Copy link
Contributor

@xinwenh xinwenh commented Jan 25, 2022

What type of PR is this?

/kind enhancement

What does this PR do / why do we need it:

This PR updates tinyms0 3.1 realize the document of "realizing one graphic classification application in one minute" and publish it (Chinese version and English version) on the official document website.

Which issue(s) this PR fixes:

Special notes for your reviewers:

@hellowaywewe
Copy link
Collaborator

@xinwenh please update your branch to ensure that the latest content of your branch is consistent with the main branch.

"metadata": {},
"source": [
"#### 6.2 List servables\n",
"\n",
"使用`list_servables`函数检查当前后端的serving模型"
"使用`list_servables`函数检查当前后端的serving模型,如果这边报错,在root下download_dataset('mnist', '/root'),然后从头运行一遍。"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,@xinwenh .This path /root is inconsistent with the previous one.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok i will perfect it

"metadata": {},
"source": [
"#### 6.2 List servables\n",
"\n",
"使用`list_servables`函数检查当前后端的serving模型"
"使用`list_servables`函数检查当前后端的serving模型,如果这边报错,在root下download_dataset('mnist', '/root'),然后从头运行一遍。"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok i will perfect it

@tinyms-ai tinyms-ai deleted a comment from hellowaywewe Jan 26, 2022
"id": "6d74fafa",
"metadata": {},
"source": [
"Next, we need to go to the menu bar and click `File`=>`new Notebook` to create a new Jupyter file, and then continue to complete the next operation"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the latest thing I asked you to fix yesterday.

@lwdragon
Copy link
Contributor

Hi,@xinwenh. I found that the picture path of your output in Module 6 inference is inconsistent with that of your code. You'd better update the output.

@xinwenh xinwenh force-pushed the xinwenh_branch branch 3 times, most recently from 0519d96 to c95ccc0 Compare January 26, 2022 12:04
"metadata": {},
"source": [
"### 2. 下载数据集\n",
"\n",
"如果根目录下没有创建`mnist`文件夹则MNIST数据集会被自动下载并存放到根目录,如果`mnist`文件夹已经存在于根目录 ,则此步操作会被跳过"
"如果根目录下没有创建`mnist`文件夹则MNIST数据集会被自动下载并存放到根目录,如果`mnist`文件夹已经存在于根目录 ,则此步操作会被跳过"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/home/jovyan is the user home directory not the root directory.

"id": "6d74fafa",
"metadata": {},
"source": [
"After the server is started. we need to go to the menu bar and click `File`=>`new Notebook` to create a new jupyter file, and then continue to complete the operation of the client."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The started word should be followed by a comma.

@@ -88,7 +82,7 @@
},
{
"cell_type": "markdown",
"id": "guided-activation",
"id": "11fd53a1",
"metadata": {},
"source": [
"### 2. Download dataset\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/home/jovyan is the user home directory not the root directory.

]
},
{
"cell_type": "markdown",
"id": "greenhouse-dutch",
"id": "a0ecea1c",
"metadata": {},
"source": [
"### 6. Make predictions\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/home/jovyan is the user home directory not the root directory.

"\n",
"This tutorial consists of six parts, `constructing the model`, `downloading dataset`, `training`, `define servable json`, `starting server` and `making predictions` in which the server will be run in a sub process."
"This tutorial consists of six parts, `constructing the model`, `downloading dataset`, `training, define servable json`, `starting server` and `making predictions` in which the server will be run in a sub process."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @xinwenh.training, define servable json should be training, define servable json.You accidentally removed a backtick. I suggest you look at your own formatting issues on the pr interface after the push, instead of asking us to find these formatting issues

@@ -30,7 +24,7 @@
{
Copy link
Contributor

@lwdragon lwdragon Jan 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

介绍
TinyMS是一个高级API,目的是让新手用户能够更加轻松地上手深度学习。TinyMS可以有效地减少用户在构建、训练、验证和推理一个模型过程中的操作次数。TinyMS也提供了教程和文档帮助开发者更好的上手和开发。

本教程包括6部分,构建模型、下载数据集、训练,定义servable json, 启动服务器和推理,其中服务器将在一个子进程中启动。

Hi,@xinwenh , please pay attention to the specification of punctuation, sometimes it is , sometimes , , it seems particularly unprofessional

"metadata": {},
"source": [
"### 6. 推理\n",
"\n",
"#### 6.1 上传图片\n",
"\n",
"用户需要上传一张0~9之间的数字图片作为输入。如果使用命令行终端,可以使用'scp'或者'wget'获取图片,如果使用Jupyter,点击菜单右上方的'Upload'按钮并且选择上传的图片。本教程中使用的图片可以点击[这里](https://ascend-tutorials.obs.cn-north-4.myhuaweicloud.com/tinyms-test-pics/numbers/7.png)进行下载,将图片保存在根目录下,重命名为'7.png'(或者任何用户喜欢的名字)\n",
"用户需要上传一张0~9之间的数字图片作为输入。如果使用命令行终端,可以使用'scp'或者'wget'获取图片,如果使用Jupyter,点击菜单右上方的'Upload'按钮并且选择上传的图片。本教程中使用的图片可以点击[这里](https://ascend-tutorials.obs.cn-north-4.myhuaweicloud.com/tinyms-test-pics/numbers/7.png)进行下载,将图片保存在根目录下,重命名为'7.png'(或者任何用户喜欢的名字)\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,@xinwenh.In order to unify the specification, it is recommended to change 'scp' and 'wget' to scp and wget

@xinwenh xinwenh force-pushed the xinwenh_branch branch 2 times, most recently from 9088cbf to 647cd0a Compare January 26, 2022 18:23
hellowaywewe
hellowaywewe previously approved these changes Jan 27, 2022
Copy link
Collaborator

@hellowaywewe hellowaywewe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xinwenh LGTM. Thanks for your contribution.

@lwdragon
Copy link
Contributor

Hi,@xinwenh.The best path is to use ``, for example, change /home/jovyan to /home/jovyan.

Copy link
Collaborator

@hellowaywewe hellowaywewe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@lwdragon lwdragon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lwdragon
Copy link
Contributor

@xinwenh LGTM. Thanks for your contribution.

@hellowaywewe hellowaywewe merged commit c980ece into tinyms-ai:main Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants