Code Monkey home page Code Monkey logo

imagemorpher's Introduction

ImageMorpher

  • This application exposes a public API for morphing two faces together

Image Morpher

Build the container

  • Create a .env file in the imagemorpher directory where settings.py is located. Populate the secret key variable by running python manage.py shell -c 'from django.core.management import utils; print(utils.get_random_secret_key())'

  • The docker build can take 10-15 min, so you may start a screen session while building screen -S build-morpher

  • Build the docker image: docker build --memory=2g --memory-swap=4g --cpuset-cpus=1 -t face-morpher-api:<RELEASE-VERSION> -f Dockerfile .

Debug a container

  • Bash into the container: docker-compose -f docker-compose.yml run --rm face-morpher-api /bin/bash
  • Start the development server: python manage.py runserver 0:8000

imagemorpher's People

Contributors

osamja avatar

Watchers

 avatar

imagemorpher's Issues

Add onboard docs to readme

  • Update readme to onboard people on how to actually morph images and call the endpoints
  • Consider making a video on how to build, and run the imagemorpher locally

[analytics] Add log counter for morph GET

Overview

  • currently, users access their morph endpoint through nginx
  • we want to be able to log (maybe to some file) whenever an image is returned (200) or invalid (404)
  • URL requests may be invalid, or have been made invalidated after the morph file is deleted

[privacy] Delete user uploaded images upon morph failure/success

For now, leave the morphed image on server so that the shared link stays valid

Current Behavior:

  • User uploads two images, the output is the morphed image
  • Currently, we store the two images even after the morph output
  • We should delete the input images by the user and store only the output (so link remains valid)
  • Apply these changes to single image morph + morph sequence (store only GIF)

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.