{"id":24802568,"url":"https://github.com/byliutao/1Prompt1Story","last_synced_at":"2025-10-13T04:30:40.193Z","repository":{"id":273862425,"uuid":"890358626","full_name":"byliutao/1Prompt1Story","owner":"byliutao","description":"🔥ICLR 2025 (Spotlight) One-Prompt-One-Story: Free-Lunch Consistent Text-to-Image Generation Using a Single Prompt","archived":false,"fork":false,"pushed_at":"2025-05-31T07:34:06.000Z","size":31355,"stargazers_count":265,"open_issues_count":10,"forks_count":32,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-31T19:07:15.938Z","etag":null,"topics":["diffusion","diffusion-model","diffusion-models","storytelling","text-to-image"],"latest_commit_sha":null,"homepage":"https://byliutao.github.io/1Prompt1Story.github.io/","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/byliutao.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,"zenodo":null}},"created_at":"2024-11-18T12:41:59.000Z","updated_at":"2025-05-31T07:34:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"eb5e9958-29ac-4217-947e-52d9461b5a5a","html_url":"https://github.com/byliutao/1Prompt1Story","commit_stats":null,"previous_names":["byliutao/1prompt1story"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/byliutao/1Prompt1Story","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byliutao%2F1Prompt1Story","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byliutao%2F1Prompt1Story/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byliutao%2F1Prompt1Story/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byliutao%2F1Prompt1Story/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byliutao","download_url":"https://codeload.github.com/byliutao/1Prompt1Story/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byliutao%2F1Prompt1Story/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013688,"owners_count":26085390,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["diffusion","diffusion-model","diffusion-models","storytelling","text-to-image"],"created_at":"2025-01-30T05:01:49.973Z","updated_at":"2025-10-13T04:30:40.188Z","avatar_url":"https://github.com/byliutao.png","language":"Python","funding_links":[],"categories":["Personalized Restoration","Python"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  🔥ICLR 2025 (Spotlight) One-Prompt-One-Story: Free-Lunch Consistent Text-to-Image Generation Using a Single Prompt\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ca href=\"http://59.110.93.62:7089/\" style=\"display: inline-block;\"\u003e\n    \u003cimg src=\"./resource/gradio.svg\" alt=\"demo\" style=\"height: 20px; vertical-align: middle;\"\u003e\n\u003c/a\u003e\u0026nbsp;\n\u003ca href=\"https://arxiv.org/abs/2501.13554\" style=\"display: inline-block;\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/arXiv%20paper-2406.06525-b31b1b.svg\" alt=\"arXiv\" style=\"height: 20px; vertical-align: middle;\"\u003e\n\u003c/a\u003e\u0026nbsp;\n\u003ca href=\"https://byliutao.github.io/1Prompt1Story.github.io/\" style=\"display: inline-block;\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Project_page-More_visualizations-green\" alt=\"project page\" style=\"height: 20px; vertical-align: middle;\"\u003e\n\u003c/a\u003e\u0026nbsp;\n\n\u003c/div\u003e\n\n\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#key-features\"\u003eKey Features\u003c/a\u003e •\n  \u003ca href=\"#how-to-use\"\u003eHow To Use\u003c/a\u003e •\n  \u003ca href=\"#license\"\u003eLicense\u003c/a\u003e •\n  \u003ca href=\"#citation\"\u003eCitation\u003c/a\u003e •\n  \u003ca href=\"#visualization\"\u003eVisualization\u003c/a\u003e \n\u003c/p\u003e\n\n[![Demo](./resource/demo.png)](./resource/demo.png)\n\n## Key Features\n\n* Consistent Image Generation Code: main.py\n* Gradio Code: app.py \n* Benchmark Generation Code: resource/gen_benchmark.py\n* Consistory+ Benchmark: [link](./resource/consistory+.yaml)\n* Online Gradio demo: [link](http://59.110.93.62:7089/)\n* 🚩[Chinese Version Paper (new)](https://www.overleaf.com/read/pxyhqpsccfjk#20922a)\n* 🚩[Jittor Version (new)](https://github.com/byliutao/1Prompt1Story/tree/main/jittor_version)\n\n\n## How To Use\n\n```bash\n# Clone this repository\n$ git clone https://github.com/byliutao/1Prompt1Story\n\n# Go into the repository\n$ cd 1Prompt1Story\n\n### Install dependencies ###\n$ conda create --name 1p1s python=3.10\n$ conda activate 1p1s\n# choose the right cuda version of your device\n$ conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia \n$ pip install transformers==4.46.3  # or: conda install conda-forge::transformers \n$ conda install -c conda-forge diffusers\n$ pip install opencv-python scipy gradio==4.44.1 sympy==1.13.1\n### Install dependencies ENDs ###\n\n# Run infer code\n$ python main.py\n\n# Run gradio code\n$ python app.py\n\n# Run benchmark generation code\n$ python -m resource.gen_benchmark --save_dir ./result/benchmark --benchmark_path ./resource/consistory+.yaml\n```\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n\n## Citation\nIf our work assists your research, feel free to give us a star ⭐ or cite us using:\n```\n@inproceedings{\nliu2025onepromptonestory,\ntitle={One-Prompt-One-Story: Free-Lunch Consistent Text-to-Image Generation Using a Single Prompt},\nauthor={Tao Liu and Kai Wang and Senmao Li and Joost van de Weijer and Fhad Khan and Shiqi Yang and Yaxing Wang and Jian Yang and Mingming Cheng},\nbooktitle={The Thirteenth International Conference on Learning Representations},\nyear={2025},\nurl={https://openreview.net/forum?id=cD1kl2QKv1}\n}\n```\n\n## Visualization\n\n### Multi-Subject Generation\n  \u003cfigure style=\"display: inline-block; margin: 20px; text-align: center; max-width: 700px;\"\u003e\n    \u003cimg src=\"./resource/multi_subject.jpg\" alt=\"multi_subject\" style=\"width: 100%;\"\u003e\n  \u003c/figure\u003e\n\n### Comparison with Other Models\n  \u003cfigure style=\"display: inline-block; margin: 20px; text-align: center; max-width: 700px;\"\u003e\n    \u003cimg src=\"./resource/other_model.jpg\" alt=\"other_model\" style=\"width: 100%;\"\u003e\n  \u003c/figure\u003e\n\n### Long Story Image Generation\n\u003cdiv align=\"center\"\u003e\n  \u003cfigure style=\"display: inline-block; margin: 20px; text-align: center; max-width: 700px;\"\u003e\n    \u003cimg src=\"./resource/long_story.jpg\" alt=\"long_story\" style=\"width: 100%;\"\u003e\n  \u003c/figure\u003e\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyliutao%2F1Prompt1Story","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyliutao%2F1Prompt1Story","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyliutao%2F1Prompt1Story/lists"}