gradio-image-prompter


Namegradio-image-prompter JSON
Version 0.1.0 PyPI version JSON
download
home_page
SummaryA gradio component to upload images and process point/box prompts.
upload_time2023-12-14 06:59:57
maintainer
docs_urlNone
author
requires_python>=3.8
license
keywords gradio-custom-component gradio-template-image
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Image Prompter for Gradio
A gradio component to upload images and process point/box prompts.

This custom component is developed for [Tokenize Anything](https://github.com/baaivision/tokenize-anything) gradio demo.

## Installation

### Preliminaries

``gradio`` >= 4.0.0

### Installing Package

```bash
pip install gradio-image-prompter
```

## Quick Start

### Development

```bash
cd gradio-image-prompter
gradio cc install
gradio cc dev
```

### Example

```python
import gradio as gr
from gradio_image_prompter import ImagePrompter

demo = gr.Interface(
    lambda prompts: (prompts["image"], prompts["points"]),
    ImagePrompter(show_label=False),
    [gr.Image(show_label=False), gr.Dataframe(label="Points")],
)
demo.launch()

```

## License
[Apache License 2.0](LICENSE)

## Acknowledgement

We thank the repositories: [SAM](https://github.com/facebookresearch/segment-anything), [Gradio Box](https://github.com/ShoufaChen/gradio-box) and [Gradio](https://github.com/gradio-app/gradio).

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "gradio-image-prompter",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "gradio-custom-component,gradio-template-Image",
    "author": "",
    "author_email": "PhyscalX <neopenx@gmail.com>",
    "download_url": "",
    "platform": null,
    "description": "# Image Prompter for Gradio\nA gradio component to upload images and process point/box prompts.\n\nThis custom component is developed for [Tokenize Anything](https://github.com/baaivision/tokenize-anything) gradio demo.\n\n## Installation\n\n### Preliminaries\n\n``gradio`` >= 4.0.0\n\n### Installing Package\n\n```bash\npip install gradio-image-prompter\n```\n\n## Quick Start\n\n### Development\n\n```bash\ncd gradio-image-prompter\ngradio cc install\ngradio cc dev\n```\n\n### Example\n\n```python\nimport gradio as gr\nfrom gradio_image_prompter import ImagePrompter\n\ndemo = gr.Interface(\n    lambda prompts: (prompts[\"image\"], prompts[\"points\"]),\n    ImagePrompter(show_label=False),\n    [gr.Image(show_label=False), gr.Dataframe(label=\"Points\")],\n)\ndemo.launch()\n\n```\n\n## License\n[Apache License 2.0](LICENSE)\n\n## Acknowledgement\n\nWe thank the repositories: [SAM](https://github.com/facebookresearch/segment-anything), [Gradio Box](https://github.com/ShoufaChen/gradio-box) and [Gradio](https://github.com/gradio-app/gradio).\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A gradio component to upload images and process point/box prompts.",
    "version": "0.1.0",
    "project_urls": null,
    "split_keywords": [
        "gradio-custom-component",
        "gradio-template-image"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7e373f2f3542e5245f71665b48b14ca4d77f7ea51196105eb759bbe6c7ddb7aa",
                "md5": "45ebfd05e2cb0e3fd461c235cf5db9d9",
                "sha256": "4c0ccaec3b319783b129e87f1d9bf79482a55441fe9ede0ba69e004e51a4a258"
            },
            "downloads": -1,
            "filename": "gradio_image_prompter-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "45ebfd05e2cb0e3fd461c235cf5db9d9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 96188,
            "upload_time": "2023-12-14T06:59:57",
            "upload_time_iso_8601": "2023-12-14T06:59:57.586694Z",
            "url": "https://files.pythonhosted.org/packages/7e/37/3f2f3542e5245f71665b48b14ca4d77f7ea51196105eb759bbe6c7ddb7aa/gradio_image_prompter-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-14 06:59:57",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "gradio-image-prompter"
}
        
Elapsed time: 0.17020s