Giter VIP home page Giter VIP logo

background-remover-django's Introduction

Background remover

Remove background from images using pre-trained AI model.
View Demo »

About The Project

Screenshot

A web app built with Python/Django that enables users to remove background from images using pre-trained AI model. It allows users to download the final result image with a transparent background.

It does well for most images that doesn't have messy background but I'm sure you won't expect photoshop like results :)

Deployment

Note: The project is production ready and can be easily deployed. But it requires good amount of resource to run ML models used by rembg in the cloud. At the moment, I'm unable to deploy the django version for free.

So I used Streamlit to deploy the main script with enchanced functionality. Check here

Features

  • Downloadable final result
  • Transparent background
  • Production ready

(back to top)

Built With

  • Python/Django
  • Bootstrap
  • rembg
  • Dropbox

(back to top)

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

  • Django

Installation

  1. Clone the repo and navigate to background-remover-django directory
    git clone https://github.com/balewgize/background-remover-django.git
    
    cd background-remover-django
    
  2. Install required packages (virtual environments recommended)
    python3 -m venv venv && source venv/bin/activate
    
    pip install -r requirements/local.txt
    
  3. Provide credentials in .env (example in .env.dev file)
     DJANGO_SECRET_KEY=
    
    Use this command to generate strong SECRET_KEY
    python3 -c "from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())"
    
  4. Apply migrations and start the server
    python manage.py migrate
    
     python manage.py runserver
    
  5. Goto http://127.0.0.1:8000 on your browser

(back to top)

Thanks!

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.