Skip to content

rohit123sinha456/wallpapersegmentation

Repository files navigation

Requirements

python version - 3.9.6 [https://tecadmin.net/install-python-3-9-on-amazon-linux/] pip version - 21.2.4 [https://sparkbyexamples.com/python/upgrade-pip-latest-or-specific-version/]

Methods to deploy this code

  • git clone this repository
  • cd intp api
  • run docker build -t app .
  • run docker run -d -p 5000:5000 api

If there is any issue with docker or memory run with WSGI app

  • Install python in the instance
  • git clone this repository
  • cd into the directory
  • run python -m venv env
  • Activate the virtual env source env/bin/activate
  • Run pip install -r requirements.txt
  • cd into the api directory cd api
  • Run gunicorn -w 3 -b :5000 -t 0 --reload --daemon wsgi:app

To Test

  • After running the app
  • open the wallsegment.postman_collection.json file in POSTMAN app
  • Use the POST Request to get the infered image name from the JSON returned
    • In the header of the request set a key value pair
      • key = auth-token
      • SHA256(quleep_wallpaper_segmentation)
    • In the body set request type as form data and give 3 key value pairs
      • Key = wallimg | value = image ( send the image NOT the link of the Image)
      • Key = designimg | value = image of the design ( send the image NOT the link of the Image)
      • Key = detectionmode | value =
  • Use the GET request to get the image (The image name from the revious step must be passed on as the query parameter)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors