-
Notifications
You must be signed in to change notification settings - Fork 42
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
Conversation
@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'),然后从头运行一遍。" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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'),然后从头运行一遍。" |
There was a problem hiding this comment.
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
"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" |
There was a problem hiding this comment.
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.
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. |
0519d96
to
c95ccc0
Compare
"metadata": {}, | ||
"source": [ | ||
"### 2. 下载数据集\n", | ||
"\n", | ||
"如果根目录下没有创建`mnist`文件夹则MNIST数据集会被自动下载并存放到根目录,如果`mnist`文件夹已经存在于根目录 ,则此步操作会被跳过" | ||
"如果根目录下没有创建`mnist`文件夹则MNIST数据集会被自动下载并存放到根目录,如果`mnist`文件夹已经存在于根目录 ,则此步操作会被跳过。" |
There was a problem hiding this comment.
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." |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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." |
There was a problem hiding this comment.
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 @@ | |||
{ |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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
9088cbf
to
647cd0a
Compare
There was a problem hiding this 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.
Hi,@xinwenh.The best path is to use ``, for example, change /home/jovyan to |
647cd0a
to
cbe5209
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@xinwenh LGTM. Thanks for your contribution. |
What type of PR is this?
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: