lkwq007/stablediffusion-infinity

★ 3,888⑂ 292

Outpainting with Stable Diffusion on an infinite canvas

About lkwq007/stablediffusion-infinity

lkwq007/stablediffusion-infinity is an open-source project on GitHub, mainly written in Python. Outpainting with Stable Diffusion on an infinite canvas It currently holds 3,888 stars and 292 forks with 95 open issues, and was last pushed on 2023-05-16 (repository created 2022-09-02).

Project Overview

Git Homed tracks it on the Image Trending board and on the AI Image Trending list.

GitHub Repository Details

Repository lkwq007/stablediffusion-infinity · default branch master · size 17463 KB · watchers 35 · source: GitHub REST API and repository README

README

stablediffusion-infinity

Outpainting with Stable Diffusion on an infinite canvas.

Open In Colab Hugging Face Spaces Setup Locally

outpaint

https://user-images.githubusercontent.com/1665437/197244111-51884b3b-dffe-4dcf-a82a-fa5117c79934.mp4

Status

Powered by Stable Diffusion inpainting model, this project now works well. However, the quality of results is still not guaranteed. You may need to do prompt engineering, change the size of the selection, reduce the size of the outpainting region to get better outpainting results.

The project now becomes a web app based on PyScript and Gradio. For Jupyter Notebook version, please check out the ipycanvas branch.

Pull requests are welcome for better UI control, ideas to achieve better results, or any other improvements.

Update: the project add photometric correction to suppress seams, to use this feature, you need to install fpie: pip install fpie (Linux/MacOS only)

Docs

Get Started

FAQs

Known issues

Credit

The code of perlin2d.py is from https://stackoverflow.com/questions/42147776/producing-2d-perlin-noise-with-numpy/42154921#42154921 and is not included in the scope of LICENSE used in this repo.

The submodule glid_3_xl_stable is based on https://github.com/Jack000/glid-3-xl-stable

The submodule PyPatchMatch is based on https://github.com/vacancy/PyPatchMatch

The code of postprocess.py and process.py is modified based on https://github.com/Trinkle23897/Fast-Poisson-Image-Editing

The code of convert_checkpoint.py is modified based on https://github.com/huggingface/diffusers/blob/main/scripts/convert_original_stable_diffusion_to_diffusers.py

The submodule sd_grpcserver and handleImageAdjustment() in utils.py are based on https://github.com/hafriedlander/stable-diffusion-grpcserver and https://github.com/parlance-zz/g-diffuser-bot

w2ui.min.js and w2ui.min.css is from https://github.com/vitmalina/w2ui. fabric.min.js is a custom build of https://github.com/fabricjs/fabric.js

interrogate.py is based on https://github.com/pharmapsychotic/clip-interrogator v1, the submodule blip_model is based on https://github.com/salesforce/BLIP

GitHub Stars & Activity

3,888Stars
292Forks
95Open issues
PythonLanguage

GitHub Popularity

GitHub stars3,888
Forks292
Open issues95
Primary languagePython
LicenseApache-2.0
Stars gained today0
Created2022-09-02
Last pushed2023-05-16

Trending History

Trending statusnot on today's boards

Related GitHub Projects

1
→
2

Comfy-Org / ComfyUI

Python★ 136,784⑂ 0
→
3

unslothai / unsloth

Python★ 77,708⑂ 0
→
4

ultralytics / ultralytics

Python★ 62,361⑂ 0
→
5

ultralytics / yolov5

Python★ 58,135⑂ 0
→
6

roboflow / supervision

Python★ 51,168⑂ 0
→
7

huggingface / diffusers

Python★ 34,701⑂ 0
→
8

ATH-MaaS / Pixelle-Video

Python★ 28,829⑂ 0
→

More Trending Repositories