https://github.com/lkwq007/stablediffusion-infinity Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code + Explore + All features + Documentation + GitHub Skills + Changelog * Solutions + By Size + Enterprise + Teams + Compare all + By Solution + CI/CD & Automation + DevOps + DevSecOps + Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles + Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} lkwq007 / stablediffusion-infinity Public * Notifications * Fork 31 * Star 359 Outpainting with Stable Diffusion on an infinite canvas 359 stars 31 forks Star Notifications * Code * Issues 6 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights lkwq007/stablediffusion-infinity This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 1 branch 0 tags Code * Clone HTTPS GitHub CLI [https://github.com/l] Use Git or checkout with SVN using the web URL. [gh repo clone lkwq00] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @lkwq007 lkwq007 Update deps ... 7a2a1d9 Sep 15, 2022 Update deps 7a2a1d9 Git stats * 33 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time PyPatchMatch @ 4a102d5 Add https://github.com/vacancy/PyPatchMatch as submodule Sep 14, 2022 .gitmodules Add https://github.com/vacancy/PyPatchMatch as submodule Sep 14, 2022 canvas.py Add patch_match fallback Sep 15, 2022 demo.gif Update demo gif Sep 14, 2022 environment.yml Update deps Sep 15, 2022 readme.md Update deps Sep 15, 2022 stablediffusion_infinity.ipynb Update notebooks Sep 14, 2022 stablediffusion_infinity_applesilicon.ipynb Add untested notebook for windows and apple silicon Sep 15, 2022 stablediffusion_infinity_colab.ipynb Update utils Sep 15, 2022 stablediffusion_infinity_windows.ipynb Add untested notebook for windows and apple silicon Sep 15, 2022 utils.py Add patch_match fallback Sep 15, 2022 View code stablediffusion-infinity Setup environment How-to readme.md stablediffusion-infinity Open In Colab Start with init_image: Girl.with.a.Pearl.Earring.mp4 Start with text2img: demo.mp4 Outpainting with Stable Diffusion on an infinite canvas. It is recommended run the notebook on a local server for better interactive control. The notebook might work on Windows (untested) and Apple Silicon devices (untested, check guide here: https://huggingface.co/docs/ diffusers/optimization/mps). Setup environment setup with environment.yml git clone --recurse-submodules https://github.com/lkwq007/stablediffusion-infinity cd stablediffusion-infinity conda env create -f environment.yml if the environment.yml doesn't work for you, you may install dependencies manually: conda create -n sd-inf python=3.10 conda activate sd-inf conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch conda install scipy conda install -c conda-forge jupyterlab conda install -c conda-forge ipywidgets=7.7.1 conda install -c conda-forge ipycanvas conda install -c conda-forge diffusers transformers ftfy pip install opencv-python Note that opencv library is required for PyPatchMatch. You may need to install opencv by yourself. If no opencv installed, the patch_match option (usually better quality) won't work. How-to conda activate sd-inf huggingface-cli login # ignore this if you have already logged in jupyter lab # and then open stablediffusion_infinity.ipynb and run cells About Outpainting with Stable Diffusion on an infinite canvas Topics outpainting stablediffusion Resources Readme Stars 359 stars Watchers 8 watching Forks 31 forks Releases No releases published Packages 0 No packages published Contributors 2 * @lkwq007 lkwq007 Lnyan * @LEBMD LEBMD MD Languages * Jupyter Notebook 76.7% * Python 23.3% Footer (c) 2022 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.