{"id":44975976,"url":"https://github.com/k-l-lambda/diffusers-web","last_synced_at":"2026-02-18T17:04:57.192Z","repository":{"id":59427367,"uuid":"534557335","full_name":"k-l-lambda/diffusers-web","owner":"k-l-lambda","description":"A web front-end wrapper of HuggingFace/Diffusers","archived":false,"fork":false,"pushed_at":"2025-04-27T11:42:27.000Z","size":23181,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-27T12:39:02.006Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/k-l-lambda.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.txt","contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2022-09-09T08:15:18.000Z","updated_at":"2024-06-13T06:36:25.000Z","dependencies_parsed_at":"2025-04-27T12:49:16.138Z","dependency_job_id":null,"html_url":"https://github.com/k-l-lambda/diffusers-web","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/k-l-lambda/diffusers-web","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-l-lambda%2Fdiffusers-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-l-lambda%2Fdiffusers-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-l-lambda%2Fdiffusers-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-l-lambda%2Fdiffusers-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k-l-lambda","download_url":"https://codeload.github.com/k-l-lambda/diffusers-web/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-l-lambda%2Fdiffusers-web/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29587066,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T16:55:40.614Z","status":"ssl_error","status_checked_at":"2026-02-18T16:55:37.558Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-02-18T17:04:50.618Z","updated_at":"2026-02-18T17:04:57.182Z","avatar_url":"https://github.com/k-l-lambda.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Diffusers Web\n\nThis project is a web based image generation tool, a front-end wrapper for [HuggingFace's diffusers](https://github.com/huggingface/diffusers).\n\n## Usage\n\nRun the web server:\n\n```.bash\npython ./main.py\n```\n\nIf this works, navigate to *http://localhost:8157* in your browser.\n\n## Features\n\n### Text to image\n\n![text2image](./doc/text2image.gif)\n\n### Image transform\n\nNavigate to *http://localhost:8157/converter*.\n\n![transform](./doc/transform.gif)\n\n### Inpainting and outpainting\n\nBefore run web server, config the diffuser model to an inpainting model. E.g. add an environment variable in `.env.local`:\n\n```\nDIFFUSER_MODEL_PATH=runwayml/stable-diffusion-inpainting\n```\n\nThen navigate to *http://localhost:8157/painter*.\n\n![mask](./doc/mask.gif)\n\n![outpaint](./doc/outpaint.gif)\n\nTips: image copy in a web page other than *localhost* requires *https* protocol, config `SSL_CONTEXT=\"'adhoc'\"` in `.env.local` to achieve this.\n\n## Requirements\n\n### Hardware\n\nA GPU with CUDA capability is required for good performence. The more video memory the better, 24GB is recommended.\n\n### Python Libraries\n\nInstall dependency libraries with pip, reference to [requirements.txt](./requirements.txt).\n\n### Authorization\n\nYou may need a [HuggingFace access token](https://huggingface.co/settings/tokens) to download pretrained models for the first running.\n\n## Local Environment Variables\n\nEdit local environment variables in file *.env.local*.\n\nVariable Name\t\t\t\t\t\t| Default Value\t\t\t\t\t\t| Description\n:--\t\t\t\t\t\t\t\t\t| :--\t\t\t\t\t\t\t\t| :--\n**HF_TOKEN**\t\t\t\t\t\t|\t\t\t\t\t\t\t\t\t| Your HuggingFace access token. If a local config path provided, this can be ignored.\n**DIFFUSER_MODEL_PATH**\t\t\t\t| stabilityai/stable-diffusion-2\t| This can be a local model config path.\n**TEXTGEN_MODEL_PATH**\t\t\t\t| k-l-lambda/clip-text-generator\t| The random painting description generator model path. This can be a local model config path.\n**HTTP_HOST**\t\t\t\t\t\t| 127.0.0.1\t\t\t\t\t\t\t| Use `0.0.0.0` for network access.\n**HTTP_PORT**\t\t\t\t\t\t| 8157\t\t\t\t\t\t\t\t|\n**SSL_CONTEXT**\t\t\t\t\t\t| None\t\t\t\t\t\t\t\t| Use `'adhoc'` for https server.\n**DEVICE**\t\t\t\t\t\t\t|\t\t\t\t\t\t\t\t\t| `cuda` or *None*\n**TEXT_DEVICE_INDEX**\t\t\t\t| 0\t\t\t\t\t\t\t\t\t| This can be greater than 0 if **CUDA_VISIBLE_DEVICES** has more than 1 gpu specified.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-l-lambda%2Fdiffusers-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk-l-lambda%2Fdiffusers-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-l-lambda%2Fdiffusers-web/lists"}