{ "nbformat": 4, "nbformat_minor": 0, "metadata": { "colab": { "provenance": [], "collapsed_sections": [] }, "kernelspec": { "name": "python3", "display_name": "Python 3" }, "language_info": { "name": "python" }, "accelerator": "GPU" }, "cells": [ { "cell_type": "markdown", "source": [ "# stablediffusion-infinity\n", "\n", "https://github.com/lkwq007/stablediffusion-infinity\n", "\n", "Outpainting with Stable Diffusion on an infinite canvas" ], "metadata": { "id": "IgN1jqV_DemW" } }, { "cell_type": "code", "execution_count": null, "metadata": { "id": "JvbfNNSJDTW5" }, "outputs": [], "source": [ "#@title setup libs\n", "!nvidia-smi -L\n", "!pip install -qq -U diffusers==0.11.1 transformers ftfy accelerate\n", "!pip install -q gradio==3.11.0\n", "!pip install -q fpie timm\n", "!pip uninstall taichi -y" ] }, { "cell_type": "code", "source": [ "#@title setup stablediffusion-infinity\n", "!git clone --recurse-submodules https://github.com/lkwq007/stablediffusion-infinity\n", "%cd stablediffusion-infinity\n", "!cp -r PyPatchMatch/csrc .\n", "!cp PyPatchMatch/Makefile .\n", "!cp PyPatchMatch/Makefile_fallback .\n", "!cp PyPatchMatch/travis.sh .\n", "!cp PyPatchMatch/patch_match.py . " ], "metadata": { "id": "D1BDhQCJDilE" }, "execution_count": null, "outputs": [] }, { "cell_type": "code", "source": [ "#@title start stablediffusion-infinity (first setup may takes about two minutes for downloading models)\n", "!python app.py --share" ], "metadata": { "id": "UGotC5ckDlmO" }, "execution_count": null, "outputs": [] }, { "cell_type": "code", "source": [], "metadata": { "id": "R1-E07CMFZoj" }, "execution_count": null, "outputs": [] } ] }