{"id":13624043,"url":"https://github.com/ototadana/imgflw","last_synced_at":"2025-04-14T09:51:54.675Z","repository":{"id":216480817,"uuid":"738550835","full_name":"ototadana/imgflw","owner":"ototadana","description":"A demo application for image editing using LLM","archived":false,"fork":false,"pushed_at":"2024-01-14T09:39:34.000Z","size":17091,"stargazers_count":7,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T23:11:14.972Z","etag":null,"topics":["chatgpt-api","chromadb","diffusers","gradio","stable-diffusion"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ototadana.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-03T13:42:32.000Z","updated_at":"2025-03-08T10:43:07.000Z","dependencies_parsed_at":"2024-01-13T10:19:35.158Z","dependency_job_id":"282cb150-9aca-499b-8680-99d3a8a0611d","html_url":"https://github.com/ototadana/imgflw","commit_stats":null,"previous_names":["ototadana/imgflw"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ototadana%2Fimgflw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ototadana%2Fimgflw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ototadana%2Fimgflw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ototadana%2Fimgflw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ototadana","download_url":"https://codeload.github.com/ototadana/imgflw/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248859751,"owners_count":21173338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatgpt-api","chromadb","diffusers","gradio","stable-diffusion"],"created_at":"2024-08-01T21:01:38.153Z","updated_at":"2025-04-14T09:51:54.651Z","avatar_url":"https://github.com/ototadana.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# imgflw\r\nA demo application for image editing using LLM.\r\n\r\n![demo](./readme-images/demo-01.webp)\r\n\r\n## imgflw Application Processing Flow\r\n```mermaid\r\nsequenceDiagram\r\n    participant User\r\n    participant imgflw as User Interface\r\n    participant OpenAI_Embed as OpenAI\u003cbr/\u003eEmbedding API\r\n    participant Chroma as Chroma\u003cbr/\u003eVector Store\r\n    participant OpenAI_TextGen as OpenAI\u003cbr/\u003eText Generation API\r\n    participant FaceEditor as Image Processing\u003cbr/\u003eComponents\r\n\r\n    User-\u003e\u003eimgflw: 1. Input request\r\n    imgflw-\u003e\u003eOpenAI_Embed: 2. Convert request to embedding\r\n    OpenAI_Embed-\u003e\u003eimgflw: \r\n    imgflw-\u003e\u003eChroma: 3. Search in Chroma\r\n    alt Similar request exists in Chroma\r\n        Chroma--\u003e\u003eimgflw: 4a. Retrieve corresponding workflow definition (JSON)\r\n    else No similar request in Chroma\r\n        imgflw-\u003e\u003eOpenAI_TextGen: 4b. Generate new workflow definition (JSON)\r\n    end\r\n    imgflw-\u003e\u003eFaceEditor: 5. Process image using workflow definition\r\n```\r\n\r\n- [OpenAPI Schema Specification for Workflow](./imgflw/components/core/workflow_generators/workflow.yml)\r\n\r\n## Installation and Launch\r\nClone this repository:\r\n\r\n```bash\r\ngit clone https://github.com/ototadana/imgflw\r\ncd imgflw\r\n```\r\n\r\nInstall [PyTorch 2.1](https://pytorch.org/) and [xFormers](https://github.com/facebookresearch/xformers):\r\n\r\nExample command:\r\n\r\n```bash\r\npip install torch torchvision xformers --index-url https://download.pytorch.org/whl/cu121\r\n```\r\n\r\nInstall required software:\r\n\r\n```bash\r\npip install -r requirements.txt\r\n```\r\n\r\nTo launch the application:\r\n\r\n```bash\r\npython main.py\r\n```\r\n\r\n## Initial Setup\r\nOnce the interface appears in the browser, switch to the \"Settings\" tab. Enter your API key in \"Workflow Generator - OpenAI API Key\" and click \"Save\".\r\n\r\n![OpenAI API Key](./readme-images/settings-01.jpg)\r\n\r\n## Editing Images\r\n1. Upload the image you want to edit.\r\n  ![Upload](./readme-images/step-01.png)\r\n\r\n2. Describe how you want to edit the image in \"Input your request here:\" and click \"Edit\".\r\n  ![Edit](./readme-images/step-02.png)\r\n\r\n## License\r\nThis software is released under the MIT License, see [LICENSE](./LICENSE).\r\n\r\n## Acknowledgements\r\nThis application has been developed with the support of several outstanding software resources:\r\n\r\n#### Workflow Definition Generation\r\n- [OpenAI Text generation API](https://platform.openai.com/docs/guides/text-generation/text-generation-models)\r\n\r\n#### Workflow Definition Storage\r\n- [OpenAI Embeddings API](https://platform.openai.com/docs/guides/embeddings/embeddings)\r\n- [Chroma](https://docs.trychroma.com/)\r\n\r\n#### Image Processing\r\n- [Face Editor](https://github.com/ototadana/sd-face-editor)\r\n- [Diffusers](https://huggingface.co/docs/diffusers/index)\r\n- [facexlib](https://github.com/xinntao/facexlib)\r\n- [Real-ESRGAN](https://github.com/xinntao/Real-ESRGAN)\r\n- [OpenCV](https://opencv.org/)\r\n- [Pillow](https://python-pillow.org/)\r\n\r\n#### User Interface\r\n- [Gradio](https://www.gradio.app/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fototadana%2Fimgflw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fototadana%2Fimgflw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fototadana%2Fimgflw/lists"}