大家好,近期使用Stable Diffusion比較多,積累整理了一些內容,得空分享給大家。如果你近期正好在關注AI繪畫領域,可以看看哦。 本文比較適合已經解決了安裝問題,(沒有安裝的在文末領取)
在尋找合適的大模型及lora,或者想找一些繪畫案例給自己的創作帶來一些靈感的人。文章總共2000多字,且涉及大量圖片,謹慎觀看哈。下面正式開始。
Stable Diffusion簡介
Stable Diffusion 是由 CompVis、Stability AI 和 LAION 共同開發的一個文本轉圖像模型,它通過 LAION-5B 子集大量的 512x512 圖文模型進行訓練,我們只要簡單的輸入一段文本,Stable Diffusion 就可以迅速將其轉換為圖像,同樣我們也可以置入圖片或視頻,配合文本對其進行處理。
通俗的解釋:
StableDiffusion是一種基于擴散過程的圖像生成模型,可以生成高質量、高分辨率的圖像。它通過模擬擴散過程,將噪聲圖像逐漸轉化為目標圖像。這種模型具有較強的穩定性和可控性,可以生成具有多樣化效果和良好視覺效果的圖像。
基礎大模型推薦
模型網址推薦:(文末領取)
C站:有預覽圖、提示詞,非常適合新手,可以通過查找自己喜歡的圖片來選擇合適的模型。
最全的模型庫:(文末領取)
下面推薦幾個我在C站挖掘的目前最常用的幾個模型:
1、好看人物插畫風:
說明:
優點:畫人物特別好看
建議搭配參數: 采樣器:DPM++ 2M Karras 步數20
繪畫示例:
1、人物角色設計:
提示詞示例:((masterpiece)),((nsanely detailed)), ((intricate)),((high quality)) a little girl character, pop-art illustration style, simple,cute, 5 years old girl, full color, blue dress, blue shoes, long brown hair, blue hat, no outline, 3d
基于這個人物嘗試制作一個4格漫畫:
2、生成類似的背景+不同的人物:
提示詞示例:((masterpiece)),((nsanely detailed)), ((HD Quality)),((exquisite face)) background: The background is a construction site, with skyscrapers under construction, feeling in 1990s shenzhen. character:There is only one 20-year-old smile asian female agent,must appear item:balloon
關于這個模型的一個小技巧:
這個模型其他都好,就是你們看我上面生成的圖片人物都很精致很好看,但是就是顏色一直是灰蒙蒙的效果。多方查閱之后,找到一個方法,需要下載一個VAE,然后在設置里面勾選上即可:
如何使用:
下面是對比效果:
((masterpiece)),((best quality))The style of a natural painter includes storybook illustrations, detailed plant illustrations, andlively tableaus. The kawaii girl sitting on a half cut watermelon.
設置VAE前:
設置VAE后:
2、二次元
這個是其他地方收集的這個模型的一些使用咒語,可以參考:
暫時無法在飛書文檔外展示此內容
繪畫示例:
1、角色設計:
((masterpiece)),((nsanely detailed)), ((intricate)),((high quality)) a little girl character, pop-art illustration style, simple,cute, 5 years old stading girl, full color, red dress, red shoes, long brown hair, red hat, no outline, 3d
2、生成故事插畫:
((masterpiece)),((nsanely detailed)), ((intricate)),Best quality,anime,Draw a little girl [Zhang Ziyi | Lin Chiling] walking in the park, wearing a beautiful red dress, she showed a surprised expression,suddenly only a cute white kitten in the grass.
((masterpiece)),((nsanely detailed)), ((intricate)),((high quality)) 5 years old standing girl, simple,cute, full color, brown hair, yellow dress, black shoes.She stands in a magical garden surrounded by colored flowers . Her big eyes were full of curiosity and surprise.
3、超真實風格
使用較多,默認真實風格,且搭配很多lora效果都不錯
建議搭配參數:DPM++ SDE Karras+step20
繪畫示例:
1、生成類似的背景+不同的人物:
繪畫提示詞:((masterpiece)),((nsanely detailed)), ((HD Quality)),((exquisite face)) background: The background is a construction site, ((skyscrapers under construction)), feeling in 1990s shenzhen china. character:There is only one asian female agent,clear face,20-year-old,smile,must appear item:(an ice cream cone)
同樣的提示詞,加上lora之后,表情質感確實更好一點點
4、動畫:
優點:搭配泡泡瑪特lora效果非常棒
建議搭配參數:采樣器:Euler a+step 28
繪畫示例:
提示詞:(masterpiece),(best quality),(ultra-detailed), (full body:1.2), wide angle,1girl,cute, smile, open mouth, flower, outdoors, running on the grass, blurry, brown hair, blush stickers, long sleeves, bangs, black hair, pink flower, (beautiful detailed face), (beautiful detailed eyes),music, beret, blush, short hair, surrounded by balloons, blue sky and white clouds, lora:blindbox_v1_mix:1
5、懸疑風/風景/插畫
這個模型一開始是想用來做懸疑小說的封面的,后來發現畫簡筆畫、插畫居然也都還行!
建議搭配參數:采樣器DPM++ 2M Karras +step 20
繪畫示例:
1、玄幻風、懸疑風的小說封面、插圖:
提示詞:gray sky,white clouds,fantasstyle,fantasy,mountains,castle,canyons,fantasy,magic,4k.
提示詞:
Grand and spectacular scene, big background, small characters, a misty back, fantasy world of cultivating immortals, swords, flowing clothes,4k
2、簡筆頭像:
(races of monotony Line drawing),(flat illustration),minimalism,headshot, line art.
A cute cartoon girl with short hair,stick figure,headshot,bold line illustration,((in the style of Black line drawn drawing)),((traces of monotony line drawing)), clean blue background
3、插畫
((masterpiece)),((nsanely detailed)), ((HD Quality)),((best quality))kawaii girl sitting on a watermelon, in the style of nature painter, ai yazawa, xiaofei yue, storybook illustrations, detailed botanical illustrations, lively tableaus
There is a watermelon on the poster, giving people a refreshing and cool feeling. Watermelon can be cut into pieces to showcase its juicy red interior, surrounded by white water droplets. The background can be light blue to enhance a cool and refreshing atmosphere
6、國風
建議搭配參數:采樣器Euler a+step30
示例:
1、使用官方的這個提示詞直出效果如下:
best quality, masterpiece, highres, 1girl,blush,(seductive smile:0.8),star-shaped pupils,china hanfu,hair ornament,necklace, jewelry,Beautiful face,upon_body, tyndall effect,photorealistic, dark studio, rim lighting, two tone lighting,(high detailed skin:1.2), 8k uhd, dslr, soft lighting, high quality, volumetric lighting, candid, Photograph, high resolution, 4k, 8k, Bokeh
2、用lora里面的那個示例的人物的效果:
((masterpiece)),((nsanely detailed)), ((HD Quality)),((best quality))A young lovely girl, upper body shot, clear face,dressed in a beautiful traditional Hanfu. Her hair is neatly coiled into a bun, adorned with bobby pins and an elaborate tiara.
LORA簡介及推薦
LoRA模型全稱是:Low-Rank Adaptation of Large Language Models,通俗的可以理解為Stable-Diffusion中的一個插件,僅需要少量的數據就可以進行訓練的一種模型。在生成圖片時,LoRA模型會與大模型結合使用,從而實現對輸出圖片結果的調整。下面是我已經試驗體驗過的一些lora:(最后會有一組不同lora的使用效果對比)
1、適合插畫/二次元adventures:
civitai.com/models/1479…
試用總結:配合deliberate不錯
2、表情lora
crazy-expressions:二次元
civitai.com/models/5891…
試用總結:配合deliberate不錯,出現正臉概率較大
3、墨心:
civitai.com/models/1259…
試用總結:配合deliberate不錯
4、小人書·連環畫 xiaorenshu
civitai.com/models/1832…
試用總結:配合deliberate不錯
5、二次元漫畫風
[LoCon/LoRA] Airconditioner/空調 Style
civitai.com/models/2260…
6、城市景色:
civitai.com/models/1491…
7、線條:
civitai.com/models/1993…
8、科幻:
civitai.com/models/3048…
試用總結:人物也可以加這個lora,配合deliberate不錯
9、室內設計:
civitai.com/models/2811…
10、亞洲男生:(適合用sd1.5基礎大模型)
civitai.com/models/1322…
11、角色設計多角度:
適合設計角色charTurnbeta:
civitai.com/models/7252…
示例:
為了對比效果,我先用基礎大模型deliberate生成一個人物角色,然后搭配不同的lora看效果。
((masterpiece)),((nsanely detailed)), ((HD Quality)),((best quality))
A young lovely girl, full body shot, clear face,dressed in a beautiful traditional Hanfu. Her hair is neatly coiled into a bun, adorned with bobby pins and an elaborate tiara.
搭配不同的lora效果圖參考如下:
歡迎看到最后,如果覺得還不錯,歡迎點贊收藏哈。后續有空會繼續發controlnet的使用技巧、提示詞的使用技巧等系列文章,適合初學者觀看哈!
寫在最后
感興趣的小伙伴,贈送全套AIGC學習資料,包含AI繪畫、AI人工智能等前沿科技教程和軟件工具,具體看這里。
?
AIGC技術的未來發展前景廣闊,隨著人工智能技術的不斷發展,AIGC技術也將不斷提高。未來,AIGC技術將在游戲和計算領域得到更廣泛的應用,使游戲和計算系統具有更高效、更智能、更靈活的特性。同時,AIGC技術也將與人工智能技術緊密結合,在更多的領域得到廣泛應用,對程序員來說影響至關重要。未來,AIGC技術將繼續得到提高,同時也將與人工智能技術緊密結合,在更多的領域得到廣泛應用。
?
一、AIGC所有方向的學習路線
AIGC所有方向的技術點做的整理,形成各個領域的知識點匯總,它的用處就在于,你可以按照下面的知識點去找對應的學習資源,保證自己學得較為全面。
二、AIGC必備工具
工具都幫大家整理好了,安裝就可直接上手!
三、最新AIGC學習筆記
當我學到一定基礎,有自己的理解能力的時候,會去閱讀一些前輩整理的書籍或者手寫的筆記資料,這些筆記詳細記載了他們對一些技術點的理解,這些理解是比較獨到,可以學到不一樣的思路。
四、AIGC視頻教程合集
觀看全面零基礎學習視頻,看視頻學習是最快捷也是最有效果的方式,跟著視頻中老師的思路,從基礎到深入,還是很容易入門的。
五、實戰案例
紙上得來終覺淺,要學會跟著視頻一起敲,要動手實操,才能將自己的所學運用到實際當中去,這時候可以搞點實戰案例來學習。
?