GithubHelp home page GithubHelp logo

google-app-engine's Introduction

Cola detector - CNN image classification

如何部署 web app:

Step0: 參考 fastai官網步驟 直到 git clone 跳到 Step1

Step1: $ git clone https://github.com/benwufc/google-app-engine.git to your google cloud shell

Step2: 如何客製化成為你的辨識器

Step3: 調整 web app 的 GUI:

  • 修改 app/view/index.html
    • 標題:<div class='title'>Cola Detector</div>
    • 插入圖片 (可有可無): <img src="link.jpg" width="150" height="100">
    • 按鈕上的文字: <button class='choose-file-button' type='button' onclick='showPicker()'>Select Coke or Pepsi Image</button>
    • 修改好你的GUI 可以到 https://www.ifreesite.com/runcode.htm 測試網頁的樣式。

Step4: $ gcloud app deploy app.yaml ,等待十分鐘左右就可以成功完成部署,之後就可以到 http://YOUR_PROJECT_ID.appspot.com 試試你的 web app!

  • app.yaml 細節可以參考google官方連結,我在這邊只改了必要參數讓部署可以成功,不會出現 timeout error

error 解決辦法

_pickle.UnpicklingError: invalid load key, ‘<’. :代表你在 app/server.py 中變數export_file_url 提供的不是正確連結,可以使用 $ wget 下載連結 試試看,是否能成功下載檔案 "export.pkl"

Reference

google-app-engine's People

Contributors

fangchung avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.