|
6 | 6 | "private_outputs": true, |
7 | 7 | "provenance": [], |
8 | 8 | "gpuType": "T4", |
9 | | - "authorship_tag": "ABX9TyMHArnj2eZWRGGmqrDSgjTk", |
| 9 | + "authorship_tag": "ABX9TyPLopvW87TjfPqa4k8fkEwa", |
10 | 10 | "include_colab_link": true |
11 | 11 | }, |
12 | 12 | "kernelspec": { |
|
139 | 139 | "execution_count": null, |
140 | 140 | "outputs": [] |
141 | 141 | }, |
| 142 | + { |
| 143 | + "cell_type": "code", |
| 144 | + "source": [ |
| 145 | + "txt_path = '.'.join(img_path.split('.')[:-1])+'.txt'\n", |
| 146 | + "print(open(txt_path).read())" |
| 147 | + ], |
| 148 | + "metadata": { |
| 149 | + "id": "CsqZvDYihMeZ" |
| 150 | + }, |
| 151 | + "execution_count": null, |
| 152 | + "outputs": [] |
| 153 | + }, |
142 | 154 | { |
143 | 155 | "cell_type": "markdown", |
144 | 156 | "source": [ |
|
152 | 164 | "cell_type": "code", |
153 | 165 | "source": [ |
154 | 166 | "#@markdown ####**替换文本设置:**\n", |
155 | | - "ori_text = \"an asian woman\" #@param {type: 'string'}\n", |
156 | | - "new_text = \"<lyf>\" #@param {type: 'string'}\n", |
| 167 | + "ori_text = \"a woman\" #@param {type: 'string'}\n", |
| 168 | + "new_text = \"\\u003Clyf>\" #@param {type: 'string'}\n", |
157 | 169 | "with open('1.txt','w') as f:\n", |
158 | 170 | " f.write(ori_text)\n", |
159 | 171 | "with open('2.txt','w') as f:\n", |
|
166 | 178 | "execution_count": null, |
167 | 179 | "outputs": [] |
168 | 180 | }, |
| 181 | + { |
| 182 | + "cell_type": "code", |
| 183 | + "source": [ |
| 184 | + "txt_path = '.'.join(img_path.split('.')[:-1])+'.txt'\n", |
| 185 | + "print(open(txt_path).read())" |
| 186 | + ], |
| 187 | + "metadata": { |
| 188 | + "id": "mM6l7M68h4Hh" |
| 189 | + }, |
| 190 | + "execution_count": null, |
| 191 | + "outputs": [] |
| 192 | + }, |
169 | 193 | { |
170 | 194 | "cell_type": "code", |
171 | 195 | "source": [ |
|
194 | 218 | "cell_type": "code", |
195 | 219 | "source": [ |
196 | 220 | "#@markdown ####**输入文本设置:**\n", |
197 | | - "prompt = \"<dlrb>,solo, long hair, black hair, choker, breasts, earrings, blue eyes, jewelry, lipstick, makeup, dark, bare shoulders, mountain, night, upper body, dress, large breasts, ((masterpiece))\" #@param {type: 'string'}\n", |
| 221 | + "prompt = \"<lyf>,solo, long hair, black hair, choker, breasts, earrings, blue eyes, jewelry, lipstick, makeup, dark, bare shoulders, mountain, night, upper body, dress, large breasts, ((masterpiece))\" #@param {type: 'string'}\n", |
198 | 222 | "with open('1.txt','w') as f:\n", |
199 | 223 | " f.write(prompt)\n", |
200 | 224 | "!python inference.py \\\n", |
|
221 | 245 | " checkpoint/Lora/000-00000000.pth checkpoint/Lora/000-00000300.pth" |
222 | 246 | ], |
223 | 247 | "metadata": { |
224 | | - "id": "PIcVI5exCkp4" |
| 248 | + "id": "PIcVI5exCkp4", |
| 249 | + "cellView": "form" |
225 | 250 | }, |
226 | 251 | "execution_count": null, |
227 | 252 | "outputs": [] |
|
236 | 261 | "!wget https://github.com/LeslieZhoa/LVT/releases/download/v0.0/face_parsing.pt -P pretrained_models" |
237 | 262 | ], |
238 | 263 | "metadata": { |
239 | | - "id": "52oqmBZRDi_m" |
| 264 | + "id": "52oqmBZRDi_m", |
| 265 | + "cellView": "form" |
240 | 266 | }, |
241 | 267 | "execution_count": null, |
242 | 268 | "outputs": [] |
|
0 commit comments