elzen6 commited on
Commit
df472ce
1 Parent(s): 269c6cb

Upload realisticvisionv2.ipynb

Browse files
Files changed (1) hide show
  1. realisticvisionv2.ipynb +179 -80
realisticvisionv2.ipynb CHANGED
@@ -8,98 +8,201 @@
8
  },
9
  "outputs": [],
10
  "source": [
11
- "!curl -Lo memfix.zip https://github.com/nolanaatama/sd-webui/raw/main/memfix.zip\n",
12
- "!unzip /content/memfix.zip\n",
13
- "!apt install -qq libunwind8-dev\n",
14
- "!apt install -qq libcairo2-dev pkg-config python3-dev\n",
15
- "!dpkg -i *.deb\n",
16
- "%env LD_PRELOAD=libtcmalloc.so\n",
17
- "!rm *\n",
18
- "!pip install --upgrade fastapi==0.90.1\n",
19
- "!pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 torchaudio==0.13.1 torchtext==0.14.1 torchdata==0.5.1 --extra-index-url https://download.pytorch.org/whl/cu116 -U\n",
20
- "!curl -Lo sd-webui.zip https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui.zip\n",
21
- "!unzip /content/sd-webui.zip\n",
22
- "!git clone https://github.com/nolanaatama/sd-webui-tunnels /content/sd-webui/extensions/sd-webui-tunnels\n",
23
- "!git clone https://github.com/Mikubill/sd-webui-controlnet /content/sd-webui/extensions/sd-webui-controlnet\n",
24
- "!git clone https://github.com/fkunn1326/openpose-editor /content/sd-webui/extensions/openpose-editor\n",
25
- "!git clone https://github.com/hnmr293/posex /content/sd-webui/extensions/posex\n",
26
- "!git clone https://github.com/DominikDoom/a1111-sd-webui-tagcomplete /content/sd-webui/extensions/a1111-sd-webui-tagcomplete\n",
27
- "!git clone https://github.com/hako-mikan/sd-webui-supermerger /content/sd-webui/extensions/sd-webui-supermerger\n",
28
- "!curl -Lo /content/sd-webui/extensions/sd-webui-images-browser.zip https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui-images-browser.zip\n",
29
- "%cd /content/sd-webui/extensions\n",
30
- "!unzip /content/sd-webui/extensions/sd-webui-images-browser.zip\n",
31
- "%cd /content\n",
32
- "# Model Code\n",
33
- "!curl -Lo /content/sd-webui/models/Stable-diffusion/realisticVisionV20_v13.safetensors https://civitai.com/api/download/models/6987\n",
34
- "# ControlNet\n",
35
- "# Remove '#' from the beginning of the line(s) below to download the selected ControlNet model(s)\n",
36
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11e_sd15_ip2p.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11e_sd15_ip2p_fp16.safetensors\n",
37
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11e_sd15_shuffle.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11e_sd15_shuffle_fp16.safetensors\n",
38
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_canny.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_canny_fp16.safetensors\n",
39
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11f1p_sd15_depth.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_depth_fp16.safetensors\n",
40
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_inpaint.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_inpaint_fp16.safetensors\n",
41
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_lineart.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_lineart_fp16.safetensors\n",
42
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_mlsd.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_mlsd_fp16.safetensors\n",
43
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_normalbae.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_normalbae_fp16.safetensors\n",
44
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_openpose.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_openpose_fp16.safetensors\n",
45
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_scribble.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_scribble_fp16.safetensors\n",
46
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_seg.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_seg_fp16.safetensors\n",
47
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_softedge.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_softedge_fp16.safetensors\n",
48
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15s2_lineart_anime.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15s2_lineart_anime_fp16.safetensors\n",
49
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11u_sd15_tile.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11u_sd15_tile_fp16.safetensors\n",
50
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_canny_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_canny_sd14v1.pth\n",
51
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_color_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_color_sd14v1.pth\n",
52
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_depth_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_depth_sd14v1.pth\n",
53
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_keypose_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_keypose_sd14v1.pth\n",
54
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_openpose_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_openpose_sd14v1.pth\n",
55
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_seg_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_seg_sd14v1.pth\n",
56
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_sketch_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_sketch_sd14v1.pth\n",
57
- "#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_style_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_style_sd14v1.pth\n",
58
- "import shutil\n",
59
- "shutil.rmtree('/content/sd-webui/embeddings')\n",
60
- "!rm sd-webui.zip\n",
61
- "!rm sd-webui-images-browser.zip\n",
62
- "%cd /content/sd-webui\n",
63
- "!git clone https://huggingface.co/nolanaatama/embeddings\n",
64
- "%cd /content/sd-webui/models\n",
65
- "!git clone https://huggingface.co/nolanaatama/ESRGAN\n",
66
- "%cd /content/sd-webui/extensions/a1111-sd-webui-tagcomplete\n",
67
- "!git checkout f9f7732\n",
68
- "%cd /content/sd-webui\n",
69
- "# Web UI tunnel\n",
70
- "!COMMANDLINE_ARGS=\"--share --disable-safe-unpickle --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension --gradio-queue --remotemoe\" REQS_FILE=\"requirements.txt\" python launch.py\n",
71
- "# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  ]
73
  },
74
  {
 
75
  "cell_type": "markdown",
76
- "source": [
77
- "## (OPTIONAL) LoRAs"
78
- ],
79
  "metadata": {
80
  "id": "0DwYF_aLUXKy"
81
- }
 
 
 
82
  },
83
  {
 
84
  "cell_type": "markdown",
85
- "source": [
86
- "### 1. After the gradio link show up, stop the first cell & clear the code output👆"
87
- ],
88
  "metadata": {
89
  "id": "JUtPlg328avv"
90
- }
 
 
 
91
  },
92
  {
 
93
  "cell_type": "markdown",
94
- "source": [
95
- "### 2. Load the LoRA & launch the web ui"
96
- ],
97
  "metadata": {
98
  "id": "xy_WyDzNUgd2"
99
- }
 
 
 
100
  },
101
  {
102
  "cell_type": "code",
 
 
 
 
 
103
  "source": [
104
  "# Copy the LoRA code from other LoRA setup (download the setup file after editing the LoRA code cell to avoid repeat input for next session)\n",
105
  "# How-to download the setup file: Click 'File' menu -> 'Download' -> 'Download .ipynb'\n",
@@ -119,14 +222,10 @@
119
  "# Web UI tunnel\n",
120
  "!COMMANDLINE_ARGS=\"--share --disable-safe-unpickle --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension- --gradio-queue --remotemoe\" REQS_FILE=\"requirements.txt\" python launch.py\n",
121
  "# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel"
122
- ],
123
- "metadata": {
124
- "id": "3EOPSiOgUs4z"
125
- },
126
- "execution_count": null,
127
- "outputs": []
128
  },
129
  {
 
130
  "cell_type": "markdown",
131
  "metadata": {
132
  "id": "fhwIXzcgfkoR"
@@ -153,4 +252,4 @@
153
  },
154
  "nbformat": 4,
155
  "nbformat_minor": 0
156
- }
 
8
  },
9
  "outputs": [],
10
  "source": [
11
+ "{\n",
12
+ " \"cells\": [\n",
13
+ " {\n",
14
+ " \"cell_type\": \"code\",\n",
15
+ " \"execution_count\": null,\n",
16
+ " \"metadata\": {\n",
17
+ " \"id\": \"sBbcB4vwj_jm\"\n",
18
+ " },\n",
19
+ " \"outputs\": [],\n",
20
+ " \"source\": [\n",
21
+ " \"!curl -Lo memfix.zip https://github.com/nolanaatama/sd-webui/raw/main/memfix.zip\\n\",\n",
22
+ " \"!unzip /content/memfix.zip\\n\",\n",
23
+ " \"!apt install -qq libunwind8-dev\\n\",\n",
24
+ " \"!apt install -qq libcairo2-dev pkg-config python3-dev\\n\",\n",
25
+ " \"!dpkg -i *.deb\\n\",\n",
26
+ " \"%env LD_PRELOAD=libtcmalloc.so\\n\",\n",
27
+ " \"!rm *\\n\",\n",
28
+ " \"!pip install --upgrade fastapi==0.90.1\\n\",\n",
29
+ " \"!pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 torchaudio==0.13.1 torchtext==0.14.1 torchdata==0.5.1 --extra-index-url https://download.pytorch.org/whl/cu116 -U\\n\",\n",
30
+ " \"!curl -Lo sd-webui.zip https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui.zip\\n\",\n",
31
+ " \"!unzip /content/sd-webui.zip\\n\",\n",
32
+ " \"!git clone https://github.com/nolanaatama/sd-webui-tunnels /content/sd-webui/extensions/sd-webui-tunnels\\n\",\n",
33
+ " \"!git clone https://github.com/Mikubill/sd-webui-controlnet /content/sd-webui/extensions/sd-webui-controlnet\\n\",\n",
34
+ " \"!git clone https://github.com/fkunn1326/openpose-editor /content/sd-webui/extensions/openpose-editor\\n\",\n",
35
+ " \"!git clone https://github.com/hnmr293/posex /content/sd-webui/extensions/posex\\n\",\n",
36
+ " \"!git clone https://github.com/DominikDoom/a1111-sd-webui-tagcomplete /content/sd-webui/extensions/a1111-sd-webui-tagcomplete\\n\",\n",
37
+ " \"!git clone https://github.com/hako-mikan/sd-webui-supermerger /content/sd-webui/extensions/sd-webui-supermerger\\n\",\n",
38
+ " \"!curl -Lo /content/sd-webui/extensions/sd-webui-images-browser.zip https://huggingface.co/nolanaatama/webui/resolve/main/sd-webui-images-browser.zip\\n\",\n",
39
+ " \"%cd /content/sd-webui/extensions\\n\",\n",
40
+ " \"!unzip /content/sd-webui/extensions/sd-webui-images-browser.zip\\n\",\n",
41
+ " \"%cd /content\\n\",\n",
42
+ " \"# Model Code\\n\",\n",
43
+ " \"!curl -Lo /content/sd-webui/models/Stable-diffusion/realisticVisionV20_v20.safetensors https://civitai.com/api/download/models/29460\\n\", \n",
44
+ " \"# ControlNet\\n\",\n",
45
+ " \"# Remove '#' from the beginning of the line(s) below to download the selected ControlNet model(s)\\n\",\n",
46
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11e_sd15_ip2p.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11e_sd15_ip2p_fp16.safetensors\\n\",\n",
47
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11e_sd15_shuffle.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11e_sd15_shuffle_fp16.safetensors\\n\",\n",
48
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_canny.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_canny_fp16.safetensors\\n\",\n",
49
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11f1p_sd15_depth.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_depth_fp16.safetensors\\n\",\n",
50
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_inpaint.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_inpaint_fp16.safetensors\\n\",\n",
51
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_lineart.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_lineart_fp16.safetensors\\n\",\n",
52
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_mlsd.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_mlsd_fp16.safetensors\\n\",\n",
53
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_normalbae.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_normalbae_fp16.safetensors\\n\",\n",
54
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_openpose.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_openpose_fp16.safetensors\\n\",\n",
55
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_scribble.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_scribble_fp16.safetensors\\n\",\n",
56
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_seg.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_seg_fp16.safetensors\\n\",\n",
57
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15_softedge.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15_softedge_fp16.safetensors\\n\",\n",
58
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11p_sd15s2_lineart_anime.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11p_sd15s2_lineart_anime_fp16.safetensors\\n\",\n",
59
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/control_v11u_sd15_tile.safetensors https://huggingface.co/nolanaatama/models/resolve/main/control_v11u_sd15_tile_fp16.safetensors\\n\",\n",
60
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_canny_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_canny_sd14v1.pth\\n\",\n",
61
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_color_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_color_sd14v1.pth\\n\",\n",
62
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_depth_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_depth_sd14v1.pth\\n\",\n",
63
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_keypose_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_keypose_sd14v1.pth\\n\",\n",
64
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_openpose_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_openpose_sd14v1.pth\\n\",\n",
65
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_seg_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_seg_sd14v1.pth\\n\",\n",
66
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_sketch_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_sketch_sd14v1.pth\\n\",\n",
67
+ " \"#!curl -Lo /content/sd-webui/extensions/sd-webui-controlnet/models/t2iadapter_style_sd14v1.pth https://huggingface.co/nolanaatama/models/resolve/main/t2iadapter_style_sd14v1.pth\\n\",\n",
68
+ " \"import shutil\\n\",\n",
69
+ " \"shutil.rmtree('/content/sd-webui/embeddings')\\n\",\n",
70
+ " \"!rm sd-webui.zip\\n\",\n",
71
+ " \"!rm sd-webui-images-browser.zip\\n\",\n",
72
+ " \"%cd /content/sd-webui\\n\",\n",
73
+ " \"!git clone https://huggingface.co/nolanaatama/embeddings\\n\",\n",
74
+ " \"%cd /content/sd-webui/models\\n\",\n",
75
+ " \"!git clone https://huggingface.co/nolanaatama/ESRGAN\\n\",\n",
76
+ " \"%cd /content/sd-webui/extensions/a1111-sd-webui-tagcomplete\\n\",\n",
77
+ " \"!git checkout f9f7732\\n\",\n",
78
+ " \"%cd /content/sd-webui\\n\",\n",
79
+ " \"# Web UI tunnel\\n\",\n",
80
+ " \"!COMMANDLINE_ARGS=\\\"--share --disable-safe-unpickle --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension --gradio-queue --remotemoe\\\" REQS_FILE=\\\"requirements.txt\\\" python launch.py\\n\",\n",
81
+ " \"# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel\"\n",
82
+ " ]\n",
83
+ " },\n",
84
+ " {\n",
85
+ " \"cell_type\": \"markdown\",\n",
86
+ " \"source\": [\n",
87
+ " \"## (OPTIONAL) LoRAs\"\n",
88
+ " ],\n",
89
+ " \"metadata\": {\n",
90
+ " \"id\": \"0DwYF_aLUXKy\"\n",
91
+ " }\n",
92
+ " },\n",
93
+ " {\n",
94
+ " \"cell_type\": \"markdown\",\n",
95
+ " \"source\": [\n",
96
+ " \"### 1. After the gradio link show up, stop the first cell & clear the code output👆\"\n",
97
+ " ],\n",
98
+ " \"metadata\": {\n",
99
+ " \"id\": \"JUtPlg328avv\"\n",
100
+ " }\n",
101
+ " },\n",
102
+ " {\n",
103
+ " \"cell_type\": \"markdown\",\n",
104
+ " \"source\": [\n",
105
+ " \"### 2. Load the LoRA & launch the web ui\"\n",
106
+ " ],\n",
107
+ " \"metadata\": {\n",
108
+ " \"id\": \"xy_WyDzNUgd2\"\n",
109
+ " }\n",
110
+ " },\n",
111
+ " {\n",
112
+ " \"cell_type\": \"code\",\n",
113
+ " \"source\": [\n",
114
+ " \"# Copy the LoRA code from other LoRA setup (download the setup file after editing the LoRA code cell to avoid repeat input for next session)\\n\",\n",
115
+ " \"# How-to download the setup file: Click 'File' menu -> 'Download' -> 'Download .ipynb'\\n\",\n",
116
+ " \"# Load LoRA from Google Drive: https://youtu.be/G1QZfAPUMaM\\n\",\n",
117
+ " \"\\n\",\n",
118
+ " \"# LoRA 1\\n\",\n",
119
+ " \"#!curl ...\\n\",\n",
120
+ " \"\\n\",\n",
121
+ " \"# LoRA 2\\n\",\n",
122
+ " \"#!curl ...\\n\",\n",
123
+ " \"\\n\",\n",
124
+ " \"# LoRA 3\\n\",\n",
125
+ " \"#!curl ...\\n\",\n",
126
+ " \"\\n\",\n",
127
+ " \"# ...\\n\",\n",
128
+ " \"\\n\",\n",
129
+ " \"# Web UI tunnel\\n\",\n",
130
+ " \"!COMMANDLINE_ARGS=\\\"--share --disable-safe-unpickle --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension- --gradio-queue --remotemoe\\\" REQS_FILE=\\\"requirements.txt\\\" python launch.py\\n\",\n",
131
+ " \"# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel\"\n",
132
+ " ],\n",
133
+ " \"metadata\": {\n",
134
+ " \"id\": \"3EOPSiOgUs4z\"\n",
135
+ " },\n",
136
+ " \"execution_count\": null,\n",
137
+ " \"outputs\": []\n",
138
+ " },\n",
139
+ " {\n",
140
+ " \"cell_type\": \"markdown\",\n",
141
+ " \"metadata\": {\n",
142
+ " \"id\": \"fhwIXzcgfkoR\"\n",
143
+ " },\n",
144
+ " \"source\": [\n",
145
+ " \"# 📚 GitHub for more: [_@nolanaatama_](https://github.com/nolanaatama)\\n\",\n",
146
+ " \"# 📦 Repo: [Github](https://github.com/nolanaatama/sd-1click-colab)\"\n",
147
+ " ]\n",
148
+ " }\n",
149
+ " ],\n",
150
+ " \"metadata\": {\n",
151
+ " \"accelerator\": \"GPU\",\n",
152
+ " \"colab\": {\n",
153
+ " \"provenance\": []\n",
154
+ " },\n",
155
+ " \"gpuClass\": \"standard\",\n",
156
+ " \"kernelspec\": {\n",
157
+ " \"display_name\": \"Python 3\",\n",
158
+ " \"name\": \"python3\"\n",
159
+ " },\n",
160
+ " \"language_info\": {\n",
161
+ " \"name\": \"python\"\n",
162
+ " }\n",
163
+ " },\n",
164
+ " \"nbformat\": 4,\n",
165
+ " \"nbformat_minor\": 0\n",
166
+ "}"
167
  ]
168
  },
169
  {
170
+ "attachments": {},
171
  "cell_type": "markdown",
 
 
 
172
  "metadata": {
173
  "id": "0DwYF_aLUXKy"
174
+ },
175
+ "source": [
176
+ "## (OPTIONAL) LoRAs"
177
+ ]
178
  },
179
  {
180
+ "attachments": {},
181
  "cell_type": "markdown",
 
 
 
182
  "metadata": {
183
  "id": "JUtPlg328avv"
184
+ },
185
+ "source": [
186
+ "### 1. After the gradio link show up, stop the first cell & clear the code output👆"
187
+ ]
188
  },
189
  {
190
+ "attachments": {},
191
  "cell_type": "markdown",
 
 
 
192
  "metadata": {
193
  "id": "xy_WyDzNUgd2"
194
+ },
195
+ "source": [
196
+ "### 2. Load the LoRA & launch the web ui"
197
+ ]
198
  },
199
  {
200
  "cell_type": "code",
201
+ "execution_count": null,
202
+ "metadata": {
203
+ "id": "3EOPSiOgUs4z"
204
+ },
205
+ "outputs": [],
206
  "source": [
207
  "# Copy the LoRA code from other LoRA setup (download the setup file after editing the LoRA code cell to avoid repeat input for next session)\n",
208
  "# How-to download the setup file: Click 'File' menu -> 'Download' -> 'Download .ipynb'\n",
 
222
  "# Web UI tunnel\n",
223
  "!COMMANDLINE_ARGS=\"--share --disable-safe-unpickle --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension- --gradio-queue --remotemoe\" REQS_FILE=\"requirements.txt\" python launch.py\n",
224
  "# If remotemoe failed to start, change '--remotemoe' to '--cloudflared' on the COMMANDLINE_ARGS line above to use cloudflare tunnel"
225
+ ]
 
 
 
 
 
226
  },
227
  {
228
+ "attachments": {},
229
  "cell_type": "markdown",
230
  "metadata": {
231
  "id": "fhwIXzcgfkoR"
 
252
  },
253
  "nbformat": 4,
254
  "nbformat_minor": 0
255
+ }