GithubHelp home page GithubHelp logo

image_recognition's Introduction

Image Recognition

AZURE PYTHON FLASK HTML CSS

Website here

Video here

In this repo a microservise was created to deploy an Azure Web App. First, I found a good template with CSS and HTML files edit. Second, I looked for a Pytorch model that recognizes images, for that I used a pre-model built in torchvision called ResNet. The ResNet model is based on the Deep Residual Learning for Image Recognition paper.

Dockerfile

Something really important to do here is build the Docker within codespaces in github. As Codespaces is also a virtual machine the configuration to work in Azure is more compatile than building and pushin from local.

Commands:

docker build -t <nameinDockerhub>/<imageName>:<tagName>

Then, to test it:

docker run -p 3000:5000 <nameinDockerhub>/<imageName>:<tagName> I chose 3000 in my local because the port 5000 was already in use.

The you have to push it into Docker hub, to do so you need to login within Codespaces, doing the following:

docker login -u <nameinDockerhub> -p <TokenGeneratedInDockerHub>

The you use it in Azure Web Services, important select:

  • Linux and not Windows.

  • In Publish: Docker Container

In the Docker Sheet:

  • Image Source: Docker Hub.
  • Image and tag: <nameinDockerhub>/<imageName>:<tagName> with no spaces!!!

Finally and also important, in configurations add : "WEBSITES_PORT" value 5000 to match the exit port in the Docker.

image_recognition's People

Contributors

bugarin10 avatar

Watchers

 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.