lama-cleaner-custom


Namelama-cleaner-custom JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/Sanster/lama-cleaner
SummaryImage inpainting tool powered by SOTA AI Model
upload_time2023-04-12 11:46:39
maintainer
docs_urlNone
authorPanicByte
requires_python>=3.7
license
keywords
VCS
bugtrack_url
requirements torch opencv-python flask_cors Jinja2 flask flaskwebgui tqdm pydantic rich loguru pytest yacs markupsafe scikit-image diffusers transformers gradio piexif safetensors omegaconf
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center">Lama Cleaner</h1>
<p align="center">A free and open-source inpainting tool powered by SOTA AI model.</p>

<p align="center">
  <a href="https://github.com/Sanster/lama-cleaner">
    <img alt="total download" src="https://pepy.tech/badge/lama-cleaner" />
  </a>
  <a href="https://pypi.org/project/lama-cleaner/">
    <img alt="version" src="https://img.shields.io/pypi/v/lama-cleaner" />
  </a>
  <a href="https://colab.research.google.com/drive/1e3ZkAJxvkK3uzaTGu91N9TvI_Mahs0Wb?usp=sharing">
    <img alt="Open in Colab" src="https://colab.research.google.com/assets/colab-badge.svg" />
  </a>

  <a href="https://huggingface.co/spaces/Sanster/Lama-Cleaner-lama">
    <img alt="Hugging Face Spaces" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue" />
  </a>

  <a href="">
    <img alt="python version" src="https://img.shields.io/pypi/pyversions/lama-cleaner" />
  </a>
  <a href="https://hub.docker.com/r/cwq1913/lama-cleaner">
    <img alt="version" src="https://img.shields.io/docker/pulls/cwq1913/lama-cleaner" />
  </a>
</p>

https://user-images.githubusercontent.com/3998421/196976498-ba1ad3ab-fa18-4c55-965f-5c6683141375.mp4

## Sponsor

<table>
   <tr>
    <td >
        <img src="./assets/GitHub_Copilot_logo.svg" style="background: white;padding: 8px;"/>
    </td>
    <td >
      <a href="https://ko-fi.com/Z8Z1CZJGY/tiers" target="_blank" >
        ❤️ Your logo
      </a>
    </td>
  </tr>
</table>

## Features

- Completely free and open-source, fully self-hosted, support CPU & GPU & M1/2
- [Windows 1-Click Installer](https://lama-cleaner-docs.vercel.app/install/windows_1click_installer)
- Multiple SOTA AI [models](https://lama-cleaner-docs.vercel.app/models)
  - Erase model: LaMa/LDM/ZITS/MAT/FcF/Manga
  - Erase and Replace model: Stable Diffusion/Paint by Example
- [Plugins](https://lama-cleaner-docs.vercel.app/plugins) for post-processing:
  - [RemoveBG](https://github.com/danielgatis/rembg): Remove images background 
  - [RealESRGAN](https://github.com/xinntao/Real-ESRGAN): Super Resolution
  - [GFPGAN](https://github.com/TencentARC/GFPGAN): Face Restoration
  - [RestoreFormer](https://github.com/wzhouxiff/RestoreFormer): Face Restoration
- More features at [lama-cleaner-docs](https://lama-cleaner-docs.vercel.app/)

## Quick Start

Lama Cleaner make it easy to use SOTA AI model in just two commands:

```bash
# In order to use the GPU, install cuda version of pytorch first.
# pip install torch==1.13.1+cu117 torchvision==0.14.1 --extra-index-url https://download.pytorch.org/whl/cu117
pip install lama-cleaner
lama-cleaner --model=lama --device=cpu --port=8080
```

That's it, Lama Cleaner is now running at http://localhost:8080

See all command line arguments at [lama-cleaner-docs](https://lama-cleaner-docs.vercel.app/install/pip)

## Development

Only needed if you plan to modify the frontend and recompile yourself.

### Frontend

Frontend code are modified from [cleanup.pictures](https://github.com/initml/cleanup.pictures), You can experience their
great online services [here](https://cleanup.pictures/).

- Install dependencies:`cd lama_cleaner/app/ && pnpm install`
- Start development server: `pnpm start`
- Build: `pnpm build`

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Sanster/lama-cleaner",
    "name": "lama-cleaner-custom",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "PanicByte",
    "author_email": "cwq1913@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/01/ea/f5e59ee54a877d30fb992130964bc86b01e894bd0ac7ccc84c2e1d29e0ec/lama-cleaner-custom-0.0.2.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\">Lama Cleaner</h1>\n<p align=\"center\">A free and open-source inpainting tool powered by SOTA AI model.</p>\n\n<p align=\"center\">\n  <a href=\"https://github.com/Sanster/lama-cleaner\">\n    <img alt=\"total download\" src=\"https://pepy.tech/badge/lama-cleaner\" />\n  </a>\n  <a href=\"https://pypi.org/project/lama-cleaner/\">\n    <img alt=\"version\" src=\"https://img.shields.io/pypi/v/lama-cleaner\" />\n  </a>\n  <a href=\"https://colab.research.google.com/drive/1e3ZkAJxvkK3uzaTGu91N9TvI_Mahs0Wb?usp=sharing\">\n    <img alt=\"Open in Colab\" src=\"https://colab.research.google.com/assets/colab-badge.svg\" />\n  </a>\n\n  <a href=\"https://huggingface.co/spaces/Sanster/Lama-Cleaner-lama\">\n    <img alt=\"Hugging Face Spaces\" src=\"https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue\" />\n  </a>\n\n  <a href=\"\">\n    <img alt=\"python version\" src=\"https://img.shields.io/pypi/pyversions/lama-cleaner\" />\n  </a>\n  <a href=\"https://hub.docker.com/r/cwq1913/lama-cleaner\">\n    <img alt=\"version\" src=\"https://img.shields.io/docker/pulls/cwq1913/lama-cleaner\" />\n  </a>\n</p>\n\nhttps://user-images.githubusercontent.com/3998421/196976498-ba1ad3ab-fa18-4c55-965f-5c6683141375.mp4\n\n## Sponsor\n\n<table>\n   <tr>\n    <td >\n        <img src=\"./assets/GitHub_Copilot_logo.svg\" style=\"background: white;padding: 8px;\"/>\n    </td>\n    <td >\n      <a href=\"https://ko-fi.com/Z8Z1CZJGY/tiers\" target=\"_blank\" >\n        \u2764\ufe0f Your logo\n      </a>\n    </td>\n  </tr>\n</table>\n\n## Features\n\n- Completely free and open-source, fully self-hosted, support CPU & GPU & M1/2\n- [Windows 1-Click Installer](https://lama-cleaner-docs.vercel.app/install/windows_1click_installer)\n- Multiple SOTA AI [models](https://lama-cleaner-docs.vercel.app/models)\n  - Erase model: LaMa/LDM/ZITS/MAT/FcF/Manga\n  - Erase and Replace model: Stable Diffusion/Paint by Example\n- [Plugins](https://lama-cleaner-docs.vercel.app/plugins) for post-processing:\n  - [RemoveBG](https://github.com/danielgatis/rembg): Remove images background \n  - [RealESRGAN](https://github.com/xinntao/Real-ESRGAN): Super Resolution\n  - [GFPGAN](https://github.com/TencentARC/GFPGAN): Face Restoration\n  - [RestoreFormer](https://github.com/wzhouxiff/RestoreFormer): Face Restoration\n- More features at [lama-cleaner-docs](https://lama-cleaner-docs.vercel.app/)\n\n## Quick Start\n\nLama Cleaner make it easy to use SOTA AI model in just two commands:\n\n```bash\n# In order to use the GPU, install cuda version of pytorch first.\n# pip install torch==1.13.1+cu117 torchvision==0.14.1 --extra-index-url https://download.pytorch.org/whl/cu117\npip install lama-cleaner\nlama-cleaner --model=lama --device=cpu --port=8080\n```\n\nThat's it, Lama Cleaner is now running at http://localhost:8080\n\nSee all command line arguments at [lama-cleaner-docs](https://lama-cleaner-docs.vercel.app/install/pip)\n\n## Development\n\nOnly needed if you plan to modify the frontend and recompile yourself.\n\n### Frontend\n\nFrontend code are modified from [cleanup.pictures](https://github.com/initml/cleanup.pictures), You can experience their\ngreat online services [here](https://cleanup.pictures/).\n\n- Install dependencies:`cd lama_cleaner/app/ && pnpm install`\n- Start development server: `pnpm start`\n- Build: `pnpm build`\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Image inpainting tool powered by SOTA AI Model",
    "version": "0.0.2",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9ced7b0e5c58a860e7dbf7778d8314798bce8526d84ac6144ea02057be1dc23f",
                "md5": "788fe54af2cd149b80e87daa79a6b21a",
                "sha256": "1b933c7e4e48f032f5381cfc821180a04c8a02514a11aba323d39d3ff3431261"
            },
            "downloads": -1,
            "filename": "lama_cleaner_custom-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "788fe54af2cd149b80e87daa79a6b21a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 943944,
            "upload_time": "2023-04-12T11:46:37",
            "upload_time_iso_8601": "2023-04-12T11:46:37.928556Z",
            "url": "https://files.pythonhosted.org/packages/9c/ed/7b0e5c58a860e7dbf7778d8314798bce8526d84ac6144ea02057be1dc23f/lama_cleaner_custom-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "01eaf5e59ee54a877d30fb992130964bc86b01e894bd0ac7ccc84c2e1d29e0ec",
                "md5": "67ca12fa61d1c25bdcb517c65c097a63",
                "sha256": "0deda111e1bbea31d5207614ad0da1e485e4b9ad3363e7e731cc963b3ef5e375"
            },
            "downloads": -1,
            "filename": "lama-cleaner-custom-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "67ca12fa61d1c25bdcb517c65c097a63",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 688938,
            "upload_time": "2023-04-12T11:46:39",
            "upload_time_iso_8601": "2023-04-12T11:46:39.467995Z",
            "url": "https://files.pythonhosted.org/packages/01/ea/f5e59ee54a877d30fb992130964bc86b01e894bd0ac7ccc84c2e1d29e0ec/lama-cleaner-custom-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-12 11:46:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "Sanster",
    "github_project": "lama-cleaner",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "torch",
            "specs": [
                [
                    ">=",
                    "1.9.0"
                ]
            ]
        },
        {
            "name": "opencv-python",
            "specs": []
        },
        {
            "name": "flask_cors",
            "specs": []
        },
        {
            "name": "Jinja2",
            "specs": [
                [
                    "==",
                    "2.11.3"
                ]
            ]
        },
        {
            "name": "flask",
            "specs": [
                [
                    "==",
                    "1.1.4"
                ]
            ]
        },
        {
            "name": "flaskwebgui",
            "specs": [
                [
                    "==",
                    "0.3.5"
                ]
            ]
        },
        {
            "name": "tqdm",
            "specs": []
        },
        {
            "name": "pydantic",
            "specs": []
        },
        {
            "name": "rich",
            "specs": []
        },
        {
            "name": "loguru",
            "specs": []
        },
        {
            "name": "pytest",
            "specs": []
        },
        {
            "name": "yacs",
            "specs": []
        },
        {
            "name": "markupsafe",
            "specs": [
                [
                    "==",
                    "2.0.1"
                ]
            ]
        },
        {
            "name": "scikit-image",
            "specs": [
                [
                    "==",
                    "0.19.3"
                ]
            ]
        },
        {
            "name": "diffusers",
            "specs": [
                [
                    "==",
                    "0.14.0"
                ]
            ]
        },
        {
            "name": "transformers",
            "specs": [
                [
                    "==",
                    "4.27.4"
                ]
            ]
        },
        {
            "name": "gradio",
            "specs": []
        },
        {
            "name": "piexif",
            "specs": [
                [
                    "==",
                    "1.1.3"
                ]
            ]
        },
        {
            "name": "safetensors",
            "specs": []
        },
        {
            "name": "omegaconf",
            "specs": []
        }
    ],
    "lcname": "lama-cleaner-custom"
}
        
Elapsed time: 0.06152s