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

【2019-05-15】手写数字图像识别应用实践 #1

Open
chenliang613 opened this issue May 16, 2019 · 3 comments
Open

【2019-05-15】手写数字图像识别应用实践 #1

chenliang613 opened this issue May 16, 2019 · 3 comments
Assignees

Comments

@chenliang613
Copy link
Collaborator

实践点1:按照下面步骤完成数据准备、模型训练、模型部署:
https://github.com/huaweicloud/ModelArts-Lab/tree/master/%E7%BB%BC%E5%90%88AI%E5%BC%80%E5%8F%91%E6%A1%88%E4%BE%8B/MNIST%20Dataset%20Recognition

实践点2:按照下面make_your_mnist.py代码,修改代码中的文件路径,在本地制作适配mnist的图片数据,来测试模型的精准度。(其中使用的原图需要黑底白字)
https://github.com/huaweicloud/ModelArts-Lab/blob/master/%E7%BB%BC%E5%90%88AI%E5%BC%80%E5%8F%91%E6%A1%88%E4%BE%8B/MNIST%20Dataset%20Recognition/mnist_pic/make_your_mnist.py

@chenliang613
Copy link
Collaborator Author

chenliang613 commented May 16, 2019

if(you are new users of huaweicloud)
{
  you can automatically get 400rmb modelarts cloud resource!
}
else
{
   if(you don't join aidevplan)
  {
     apply 300 rmb modelarts cloud resource at here : https://developer.huaweicloud.com/aidevplan
  }
  else
  {
     please contact me for getting modelarts cloud resource!
  } 
}

@chenliang613 chenliang613 self-assigned this May 16, 2019
@chenliang613
Copy link
Collaborator Author

simistar的经验分享:
下载train_mnist.py文件要当心,因为如果直接点击右键进行“另存为”时,下载下来的文件可能已经变为了一个网页文件(虽然train_mnist.py点击属性时显示仍然是pathon file),但在创建训练后,就会一直初始化,并且这时日志中会出现提示“SyntsxError”。
解决方法:我的方法可能有些笨,但可以解决问题,分享一下:用notepad++将train_mnist.py打开,并比对着github中打开的源文件,将你下载的train_mnist.py中增加的内容删除(注意一般是在头部和尾部都有多出来的内容),再另存一份新的train_mnist.py。使用这个新的train_mnist.py作为启动文件再进行训练,应该就可以了。

@crystaldust
Copy link
Contributor

也可以这样保存:

train_mnist.py页面,点击"Raw"按钮,然后右键另存为,保存的时候,保存类型选“所有”,文件名称为"train_mnist.py"即可。

@chenliang613 chenliang613 changed the title 手写数字图像识别应用实践 【2019-05-15】手写数字图像识别应用实践 May 31, 2019
langziwuqing pushed a commit that referenced this issue Mar 30, 2021
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

No branches or pull requests

2 participants