Giter Site home page Giter Site logo

ml_sample's Introduction

ML_Sample

demo_gif_movie

This gif image is showing this app under development.

1. Requirement

You need to setup these and to enable docker-compose to run.

  • docker
  • docker-compose

Other Middlewares

  • pipenv
  • postgresql

*You don't have to setup these Middlewares in your OS, if you build your environment with docker and docker-compose !!

2. How to build development environment

Please refer to this doc

ml_sample's People

Contributors

siruku6 avatar

Watchers

 avatar

ml_sample's Issues

refine UI

Add Text message and Link

  • the bias that this model recognize the shape of mouth much, but don't recognize the shape of eyes much
    • it may be because training data don't include Japanese or any Asian faces (I heard that people in Europe or America express smile with mouth, but not with eyes).
  • link to the page detect
  • link to github repository including the source which made face expression detection model

Exception Handling

notify user of following things in Japanese

  • camera is not usable when it is

Add easy feature

  • remain displaying the most positive image on browser at another area

Other

  • modify the text size of the message telling detection result

The size of source is too large for deploying to heroku

-----> Building on the Heroku-20 stack
-----> Using buildpack: heroku/python
-----> Python app detected
-----> Using Python version specified in runtime.txt
 !     Python has released a security update! Please consider upgrading to python-3.9.11
       Learn More: https://devcenter.heroku.com/articles/python-runtimes
cp: cannot stat '/tmp/build_cfcd8af5/requirements.txt': No such file or directory
-----> Installing python-3.9.10
-----> Installing pip 21.3.1, setuptools 57.5.0 and wheel 0.37.0
-----> Installing dependencies with Pipenv 2020.11.15
       Installing dependencies from Pipfile.lock (69a402)...
-----> Installing SQLite3
-----> Skipping Django collectstatic since the env var DISABLE_COLLECTSTATIC is set.
-----> Discovering process types
       Procfile declares types -> web
-----> Compressing...
 !     Compiled slug size: 977.5M is too large (max is 500M).
 !     See: http://devcenter.heroku.com/articles/slug-size
 !     Push failed

possible resolutions

add feature turning on camera and sending image to django server

How to use opencv to enable web-camera on local PC.

aa

-----> Building on the Heroku-20 stack
-----> Using buildpack: heroku/python
-----> Python app detected
-----> Using Python version specified in runtime.txt
 !     Python has released a security update! Please consider upgrading to python-3.9.11
       Learn More: https://devcenter.heroku.com/articles/python-runtimes
cp: cannot stat '/tmp/build_cfcd8af5/requirements.txt': No such file or directory
-----> Installing python-3.9.10
-----> Installing pip 21.3.1, setuptools 57.5.0 and wheel 0.37.0
-----> Installing dependencies with Pipenv 2020.11.15
       Installing dependencies from Pipfile.lock (69a402)...
-----> Installing SQLite3
-----> Skipping Django collectstatic since the env var DISABLE_COLLECTSTATIC is set.
-----> Discovering process types
       Procfile declares types -> web
-----> Compressing...
 !     Compiled slug size: 977.5M is too large (max is 500M).
 !     See: http://devcenter.heroku.com/articles/slug-size
 !     Push failed

switch the user in docker image from root to other

Now the following warning is arising while running docker-compose build.

WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

Easily failed and response 503 because of running out of memory

This is the log displayed on console of heroku.

2022-05-08T03:49:57.936246+00:00 heroku[web.1]: Process running mem=737M(141.4%)
2022-05-08T03:49:57.938415+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)

TODO

Show reason why app doesn't any response to user.

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.