Downloads · 30 days
0
krunakuamar/zest
zest is a machine learning model from krunakuamar. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
<h1 align="center" Remove Objects Server</h1
Downloads · 30 days
0
Access
Public
Updated Apr 18, 2023
Repo size
144 MB
Likes
0
Public
Click a slice to open those files.
.pt144 MB · 96%
From the Hugging Face model README
This is a Python project for removing unwanted objects from images using the inpainting technique. It includes a server implemented with FastAPI and an endpoint for processing images by applying inpainting techniques. This project uses a deep learning library, PyTorch, for training and testing the inpainting model.
<p align="center"> <img src="lama_cleaner_video.gif" /> </p>To install this project, you should first create a virtual environment using the following commands:
python3 -m venv venv
source venv/bin/activate
After creating the virtual environment, you can install the required libraries using pip:
pip install -r requirements.txt
To use this project, first start the server by running main.py:
python main.py
After the server has started, you can test following endpoints:
http://{localhost}:{port}/lama/paint
file parameter and applies inpainting techniques to remove unwanted objects.http://{localhost}:{port}/mask
img and mask as input parameters. Then, it applies a mask on an image.testX.png image and testX_mask.png mask in image folder for testing.This project is licensed under the MIT License - see the LICENSE file for details.
Other command
docker build -t zest .