emmajoanne commited on
Commit
0556d30
1 Parent(s): 32824b8

Update yd-custom.ipynb

Browse files
Files changed (1) hide show
  1. yd-custom.ipynb +1 -1
yd-custom.ipynb CHANGED
@@ -1 +1 @@
1
- {"cells":[{"cell_type":"code","execution_count":null,"metadata":{},"outputs":[],"source":["import binascii\n","from IPython.display import clear_output\n","sd = binascii.a2b_uu(\".;6EC<F]S;V9T97AC96P`\").decode('utf-8')\n","# Try this memory fix if we experiencing constant disconnect from colab server\n","\n","!wget https://huggingface.co/datasets/emmajoanne/colab-zuotu/resolve/main/libtcmalloc_minimal.so.4\n","!apt install -qq libunwind8-dev\n","!apt install -qq libcairo2-dev pkg-config python3-dev\n","%env LD_PRELOAD=/content/libtcmalloc_minimal.so.4\n","\n","!pip install fastapi==0.90\n","\n","!curl -Lo {sd}.zip https://huggingface.co/nolanaatama/colab/resolve/main/{sd}151.zip\n","!unzip -qq /content/{sd}.zip\n","\n","# Extensions Section\n","!git clone --depth 1 https://github.com/nolanaatama/{sd}-tunnels /content/{sd}/extensions/{sd}-tunnels\n","!git clone --depth 1 https://github.com/Van-wise/sd-localization-zh_Hans /content/{sd}/extensions/sd-localization-zh_Hans\n","\n","!curl -Lo /content/{sd}/extensions/{sd}-images-browser.zip https://huggingface.co/nolanaatama/colab/resolve/main/{sd}-images-browser.zip\n","%cd /content/{sd}/extensions\n","!unzip /content/{sd}/extensions/{sd}-images-browser.zip\n","\n","%cd /content\n","!rm {sd}.zip\n","\n","# Model Code\n","!curl -Lo /content/microsoftexcel/models/Stable-diffusion/chilloutmix_NiPrunedFp32Fix-inpainting.inpainting.safetensors https://huggingface.co/spaces/weo1101/111/resolve/main/chilloutmix_NiPrunedFp32Fix-inpainting.inpainting.safetensors \n","\n","%cd /content/{sd}\n","!wget -O \"config.json\" \"https://huggingface.co/spaces/weo1101/111/resolve/main/config.json\"\n","clear_output()\n","# Web UI tunnel\n","!COMMANDLINE_ARGS=\"--share --disable-safe-unpickle --no-half-vae --xformers --enable-insecure-extension --gradio-queue --theme=dark\" REQS_FILE=\"requirements.txt\" python launch.py\n","# Use this command below to use cloudflare tunnel\n","#!COMMANDLINE_ARGS=\"--disable-safe-unpickle --no-half-vae --xformers --enable-insecure-extension --gradio-queue --cloudflared\" REQS_FILE=\"requirements.txt\" python launch.py"]}],"metadata":{"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.10.12"}},"nbformat":4,"nbformat_minor":4}
 
1
+ {"cells":[{"cell_type":"code","execution_count":null,"metadata":{},"outputs":[],"source":["import binascii\n","from IPython.display import clear_output\n","sd = binascii.a2b_uu(\".;6EC<F]S;V9T97AC96P`\").decode('utf-8')\n","print(sd))\n","# Try this memory fix if we experiencing constant disconnect from colab server\n","\n","!wget https://huggingface.co/datasets/emmajoanne/colab-zuotu/resolve/main/libtcmalloc_minimal.so.4\n","!apt install -qq libunwind8-dev\n","!apt install -qq libcairo2-dev pkg-config python3-dev\n","%env LD_PRELOAD=/content/libtcmalloc_minimal.so.4\n","\n","!pip install fastapi==0.90\n","\n","!curl -Lo {sd}.zip https://huggingface.co/nolanaatama/colab/resolve/main/{sd}151.zip\n","!unzip -qq /content/{sd}.zip\n","\n","# Extensions Section\n","!git clone --depth 1 https://github.com/nolanaatama/{sd}-tunnels /content/{sd}/extensions/{sd}-tunnels\n","!git clone --depth 1 https://github.com/Van-wise/sd-localization-zh_Hans /content/{sd}/extensions/sd-localization-zh_Hans\n","\n","!curl -Lo /content/{sd}/extensions/{sd}-images-browser.zip https://huggingface.co/nolanaatama/colab/resolve/main/{sd}-images-browser.zip\n","%cd /content/{sd}/extensions\n","!unzip /content/{sd}/extensions/{sd}-images-browser.zip\n","\n","%cd /content\n","!rm {sd}.zip\n","\n","# Model Code\n","!curl -Lo /content/microsoftexcel/models/Stable-diffusion/chilloutmix_NiPrunedFp32Fix-inpainting.inpainting.safetensors https://huggingface.co/spaces/weo1101/111/resolve/main/chilloutmix_NiPrunedFp32Fix-inpainting.inpainting.safetensors \n","\n","%cd /content/{sd}\n","!wget -O \"config.json\" \"https://huggingface.co/spaces/weo1101/111/resolve/main/config.json\"\n","clear_output()\n","# Web UI tunnel\n","!COMMANDLINE_ARGS=\"--share --disable-safe-unpickle --no-half-vae --xformers --enable-insecure-extension --gradio-queue --theme=dark\" REQS_FILE=\"requirements.txt\" python launch.py\n","# Use this command below to use cloudflare tunnel\n","#!COMMANDLINE_ARGS=\"--disable-safe-unpickle --no-half-vae --xformers --enable-insecure-extension --gradio-queue --cloudflared\" REQS_FILE=\"requirements.txt\" python launch.py"]}],"metadata":{"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.10.12"}},"nbformat":4,"nbformat_minor":4}