<p><strong>This is the LoRA for realistic pink piggy.</strong></p><h1 id="heading-11"><strong><em><u><span style="color:rgb(230, 73, 128)">Mini usually, pink mostly, but pigs always.</span></u></em></strong></h1><p></p><h2 id="heading-6"><strong>A lot of people ask me how I trained, so here are the settings:</strong></h2><h3 id="heading-7"><strong>Updated May 15 2023: change epoch to 50 and file name (repeat) to 2_xxx.</strong></h3><h1 id="heading-8"><strong>1: Koyah_SS GUI</strong></h1><p>I use <a target="_blank" rel="ugc" href="https://github.com/bmaltais/kohya_ss"><strong><em><u>Koyha_SS GUI</u></em></strong></a> to train my LORAs.</p><p>Some Key Settings:</p><p><strong>"max_resolution": "768,768"</strong></p><p><strong>(if your GPU is really powerful, using 1024,1024 will be even better)</strong></p><p><strong>"learning_rate": "3e-6",</strong></p><p><strong>"lr_scheduler": "cosine_with_restarts",</strong></p><p>"lr_warmup": "5",</p><p><strong>"train_batch_size": 4,</strong></p><p><strong>"epoch": "5",</strong></p><ul><li><p><strong>(May 15 2023: "epoch": "50" with file name 2_xxx)</strong></p></li></ul><p><strong>"save_every_n_epochs": "40",</strong></p><p>"mixed_precision": "bf16",</p><p>"save_precision": "bf16",</p><p>"enable_bucket": true,</p><p><strong>"use_8bit_adam": false,</strong></p><p><strong>"text_encoder_lr": "1e-5",</strong></p><p><strong>"unet_lr": "5e-5",</strong></p><p><strong>"network_dim": 128,</strong></p><p><strong>"clip_skip": 2,</strong></p><p><strong>"network_alpha": 64,</strong></p><p>"persistent_data_loader_workers": true,</p><p><strong>"optimizer": "Lion"</strong></p><p></p><p>If your hardware does not support my setting, tried to reduce the batch size to 2 or 1, this will increase the training time dramatically. If you want training time to be shorter, using epoch 2 will solve that.</p><p>Personally, I use epoch 5 because my hardware supports that and I think a higher epoch might capture more details from the source, but it is not necessary.</p><p></p><h1 id="heading-9"><strong>2. Training source image set:</strong></h1><p>Image selection:</p><p>50 high-resolution (at least 1024*1024 before cropping) images with around 25 close-up and 20 upper-body shots and 5 full-body images. The more angles of the images the better.</p><p></p><p>Preprocess:</p><p>Auto focal crop in webUI with cropping dimension being <strong>at least 768*768 </strong>and up to 1536*1536.</p><p>Integrate with BLIP and Deepdanbooru for caption, and also use the <a target="_blank" rel="ugc" href="https://github.com/toriato/stable-diffusion-webui-wd14-tagger.git"><em><u>stable-diffusion-webui-wd14-tagger</u></em></a> extension for further captions. Remember to select append on existing captions and also select <em><u>Remove duplicated tag</u></em></p><p>Then I use <a target="_blank" rel="ugc" href="https://github.com/starik222/BooruDatasetTagManager"><strong><em><u>BooruDatasetTagManager</u></em></strong></a><strong> </strong>to manually change the captions to my desired ones.</p><p></p><p>Image file name:</p><p><strong>50_xxx</strong></p><p>(This means each image in the image file is repeated 50 times)</p><ul><li><p><strong>May 15 2023: 2_xxx but with epoch increase to 50</strong></p></li></ul><p></p><p></p><p><strong>Then you should be ready to go!</strong></p><p>However, because of source image selection, you might need to give a trial on the resulting LORA and modify the source image several times until you get the LORA you are satisfied. Also, because everyone's hardware could be different, if you can not run 768*768 with batch size 4, try 2 or even 1.</p><p></p><p>I think the LORA result is really sensitive to the source images, so the image selection and tagging are the actual important part. Something you could tell what is the “bad” source image by trying out the LORA, and to improve it, you simply delete that "bad" image from the source. And sometimes you find some problem with the LORA suggested you need to modify the tags. For example, always generate a "wet" effect suggesting that you might not have “wet, rain, pool” tagged on a related source image.</p><p></p><h1 id="heading-10"><strong>3. Training:</strong></h1><p>Check your usually used checkpoint and see what it is based on, then select your base model based on that. good luck training.</p>
Public
SD 1.5
Standard
<p>Based on SD1.5.</p>
https://civitai.com/api/download/models/85368
true
https://civitai.com/api/download/models/85368
01AA6469
43063AAF4F
4C2C3A0070A0
9E8EB789688CA6A1DFEC09F041ED9CC5D2BB95D152DC8FE88316D9FE6E3CC7AF
D5E43D85
43063AAF4F4F1492A3BF7D4C3DEB692F149E2E8C6C2D35F05FB595156C1A310C
SafeTensor
UltimatePinkPig_v1.0.safetensors
No Pickle imports
Success
2023-05-30T09:21:34.623Z
Model
Success
UbMsfdogWTxZ~UR*M{RRKI$+wNWBFqIoxut7
image
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/103c6bad-277e-4143-a2cd-598de8061a87/width=450/966526.jpeg
UUJH%6D*J#-:~pxuRjo|SJxbnSIpJ6%1%MM{
image
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/17462f4f-97ba-4a4f-887d-835ea90d56f6/width=450/966532.jpeg
UQI5VFkDEda1S$kCR6oI03Rordov_Jt7NGIo
image
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/2f315333-6a70-42d7-9bc1-bfda4550f3a7/width=450/966522.jpeg
UfJt*QNHxsxu~pxHjFozNYxaV]WUO9ozt7Rj
image
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/e874fbcb-addf-41dd-a209-9de526f3734f/width=450/966527.jpeg
U9Ihi|?@2~~C00t6#aIq00wP^AIo~nn+%fnm
image
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/15fc48f1-8b9b-401e-944f-cc419628219f/width=450/966525.jpeg
UdL4TN%LOpW.~UsqbXozJOIUrxxuEdobt7WC
image
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/6e9039ac-593d-44ae-a249-dd8ad5c4d0db/width=450/966523.jpeg
URJ[02tkEJxX_4%fMxM{9u-;R6IU57%N%Mae
image
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/69c77489-7ce0-4c5b-af61-b639ed64e42d/width=450/966524.jpeg
U8IE:=bp5y~C00s.-WM$00?b^n56n4Wmkp$*
image
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/cddc2e78-dbc1-44f4-9b03-2ccda8e7de79/width=450/966530.jpeg
UIKdM8~D9?iz~VjGR6%20J9YsDxa55xt%gIo
image
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/9b2d2168-3489-4a63-b253-d2fd64b5e4ca/width=450/966529.jpeg
UjJRBND,NE%1~WRnM{j]xuoNM|NGxtxuoMRi
image
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/20dca2a9-22d1-4613-8cd2-6fac5349c53a/width=450/966528.jpeg
UOJ@%X%MEdW:~WWEM{tkE0Ri-Wg2E0%2-pIo
image
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/9d340b98-9c37-4eaa-80f8-b04bd624fa7d/width=450/966531.jpeg
UQK1jy_3_3~q%MWBayoL%MWBayWBtSaeWCof
image
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/3178b658-d067-4399-92e6-db64443adf83/width=450/966550.jpeg
UQK-Xf?w_4~qtmn%jXbbtQjaWUah%Nj@j@oK
image
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/105ff219-03c4-4b73-92ed-eb6a472e86a8/width=450/966552.jpeg
UWN0U~%3-n%K~Xs?W;tPOsk-WGN0kos:o4Rj
image
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/54b3d3ce-9bf8-4d33-84e9-4bec7e25b217/width=450/966559.jpeg
UFLqH+_L-;tQVA^+-;n+0eS%NfN31Vx[W,XR
image
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/9c57b111-a623-4fac-8fb9-ed6292a637ba/width=450/966560.jpeg
UVMi7pP9IpRjtQ~B-:t6RjNu-p-oxHafS#WC
image
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/9c614c4c-a9c9-4630-88bd-e6dbca1b5090/width=450/966564.jpeg
UNKTuh~qE1?b-nI=%N%f00ae%MV??b-;S5jF
image
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/e20c300b-c605-4440-b1b9-8d58e1ee545b/width=450/966908.jpeg
UMLE4P~q9tITxwS$4:M_0Lx]Z;RPJ|bI-:i^
image
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/bf5a9075-62b6-4a82-8235-8ed0c7cf92fa/width=450/967336.jpeg
USK^.moi9HNET1x]E0ROFxNLVZs8~okWsojY
image
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/8e84694e-8287-4af7-b464-b81822a074fb/width=450/967383.jpeg
UcJ*U$o}N2%M9fs;oct79@t7ahM|~USzt7Rk
image
https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/782149b5-6c24-49ce-ad42-08f303b3969f/width=450/967453.jpeg
v1.0
2023-05-30T09:19:42.134Z
ultimatepinkpig
UltimatePinkPig Realistic
animals pig cute animal