Midjourney收費(fèi)高、無(wú)法支付,且生成想要的圖片受限,風(fēng)格固定,如果能夠10分鐘快速搭建屬于自己的AI繪畫系統(tǒng),并且對(duì)電腦配置無(wú)要求,你心動(dòng)了嗎?
先來(lái)看看AI系統(tǒng)構(gòu)建完成后的畫面,只需要輸入自定義的prompt,就能生成自己想要的人像、風(fēng)景、動(dòng)物各種主體,科幻、油畫、寫實(shí)各種風(fēng)格的圖片,后期還可以疊加超分辨率技術(shù)(SR)進(jìn)一步生成高清大圖!很難想象這是10分鐘能夠做出來(lái)的輪子,如果覺(jué)得畫面熟悉的話,沒(méi)錯(cuò),這就是大名鼎鼎的stable-diffusion開(kāi)源的擴(kuò)散模型!
接下來(lái)話不多說(shuō),逐一按照傻瓜式的操作步驟即可完成AI繪畫系統(tǒng)搭建!首先第一步打開(kāi)對(duì)應(yīng)github鏈接:https://github.com/camenduru/stable-diffusion-webui-colab,這是由camenduru開(kāi)源的使用google-colab資源進(jìn)行stable-diffusion擴(kuò)散模型fine-tune得到的開(kāi)箱即用模型列表。
緊接著第二步,ctrl+F或者command+F 搜索?ChilloutMix,進(jìn)一步點(diǎn)擊stable版本進(jìn)入下一步。
第三步通過(guò)鏈接跳轉(zhuǎn)到到Google Colab界面中,為一個(gè)免費(fèi)提供GPU資源的云端機(jī)器(如果沒(méi)有谷歌賬戶的需要自行注冊(cè))。
之后開(kāi)啟第四步,點(diǎn)擊上圖左上角的運(yùn)行按鈕運(yùn)行框中代碼,忽略警告并點(diǎn)擊仍然運(yùn)行,等待few minutes,期間會(huì)開(kāi)始下載模型、準(zhǔn)備webUI并打印一系列日志,看看就好。
緊隨第五步,確認(rèn)第四步正常進(jìn)行,并在log最后產(chǎn)出4個(gè)鏈接,這鏈接實(shí)際上就對(duì)應(yīng)webUI的遠(yuǎn)程界面,點(diǎn)擊最后一個(gè)鏈接即可。
第六步也是最后一步,即進(jìn)入到自己搭建的stable-diffusion web界面中,在第一個(gè)半透明灰色框中輸入自定義Prompt,第二個(gè)灰色框中寫入Negative prompt(可選),分別代表正向提示詞和反向提示詞,進(jìn)一步調(diào)整Sampling method 為 DPM++ SDE Karras,Sampling steps設(shè)置為20-40,Width和Height代表寬高自由設(shè)置即可,然后點(diǎn)擊?Generate??等待出圖(第一次1min)。
當(dāng)然,寫prompt也是一門技術(shù),或許是對(duì)于能夠產(chǎn)出自己想要的圖片來(lái)講最重要的事情,可以進(jìn)入https://prompthero.com/網(wǎng)站參考全球廣大網(wǎng)友的精華prompt經(jīng)驗(yàn)來(lái)寫屬于自己的prompt。
后圖附上一系列的圖片和prompt僅供參考~?
Prompt1:professional portrait photograph of a gorgeous Norwegian girl in winter clothing with long wavy blonde hair, ((sultry flirty look)), freckles, beautiful symmetrical face, cute natural makeup, ((standing outside in snowy city street)), stunning modern urban upscale environment, ultra realistic, concept art, elegant, highly detailed, intricate, sharp focus, depth of field, f/1. 8, 85mm, medium shot, mid shot, (centered image composition), (professionally color graded), ((bright soft diffused light)), volumetric fog, trending on instagram, trending on tumblr, hdr 4k, 8k
Negative prompt:(bonnet), (hat), (beanie), cap, (((wide shot))), (cropped head), bad framing, out of frame, deformed, cripple, old, fat, ugly, poor, missing arm, additional arms, additional legs, additional head, additional face, multiple people, group of people, dyed hair, black and white, grayscale
Prompt2:Hyper realistic painting of a beautiful girl in an EVA plugsuit, hyper detailed, anime, by greg rutkowski, trending on artstation
Prompt3:THE CHERRY BLOSSOM TREE HOUSE :: beautiful ornate treehouse in a gigantic pink cherry blossom tree :: on a high blue grey and brown cliff with light snow and pink cherry blossom trees :: Roger Deakins and Moebius and Alphonse Much and Guweiz :: Intricate details, very realistic, cinematic lighting, volumetric lighting, photographic, --ar 9:20 --no blur bokeh defocus dof --s 4000
Prompt4:bunny, high ornamented light armor, fluffy fur, foggy, wet, stormy, 70mm, cinematic, highly detailed
另外,此系統(tǒng)不僅支持txt2img(文生圖),還支持img2img(圖生圖)、Train(fine-tune微調(diào)訓(xùn)練)等等,此外,本方法會(huì)受Google帶寬和資源限制,也可考慮在PC單機(jī)(Windows&Mac)配置真正屬于自己的AI繪畫系統(tǒng),不過(guò)略微復(fù)雜一點(diǎn),隨后更新~
原創(chuàng)不易,在看收藏都是莫大的分享動(dòng)力!有任何問(wèn)題公眾號(hào)直接留言~
歷史推薦
原創(chuàng)超詳細(xì)Python學(xué)習(xí)路線+思維導(dǎo)圖
原創(chuàng)最全數(shù)據(jù)分析師學(xué)習(xí)路線+思維導(dǎo)圖!
GPT-4出圈,有一份原創(chuàng)最全NLP學(xué)習(xí)路線請(qǐng)查收!
“高頻面經(jīng)”之?dāng)?shù)據(jù)分析篇
“高頻面經(jīng)”之機(jī)器學(xué)習(xí)篇
“高頻面經(jīng)”之深度學(xué)習(xí)篇
Selenium爬取京東商品
Scrapy框架爬取QQ音樂(lè)
數(shù)據(jù)分析與挖掘
數(shù)據(jù)結(jié)構(gòu)與算法
深度學(xué)習(xí)與大數(shù)據(jù)框架
歡迎關(guān)注,感謝“在看”,隨緣稀罕~
文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-437050.html
文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-437050.html
到了這里,關(guān)于保姆級(jí)教程教你快速搭建屬于自己的AI繪畫系統(tǒng)?。ㄊ詹兀┑奈恼戮徒榻B完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!