本篇的目的是生成一個虛擬的女生形象。先進入正題說明人像怎么生成,本篇使用到的工具和工具的介紹放在文末。
先來一波Midjourney生成的美圖提升下大家學(xué)習(xí)的欲望
以上四張圖使用的是相同的Prompt,如下:
a beautiful chinese girl, 18 years old, detailed and big eyes, white and soft skin, pink lips, black and long hair,A straight and tall nose,intricate details, hyper-realistic
不過Midjourney收費,大家可以先用免費的工具試試水
本篇中使用到的工具:Playground AI
工具網(wǎng)址:https://playgroundai.com/create
需要注冊谷歌賬號來進行登錄playgroundai
Playground AI 是一個免費使用的在線 AI 圖像創(chuàng)建器。用戶可以用它來創(chuàng)作藝術(shù)、社交媒體帖子、演示文稿、海報、視頻、徽標等。
Playgroundai的使用
它的整體界面如下
左邊的導(dǎo)航欄
左邊的導(dǎo)航欄有filter選項,有眾多濾鏡的選項
它可以生成成不同風(fēng)格的藝術(shù)品,比如油畫、水墨畫、蒙太奇、抽象等,可以滿足用戶不同需求。它還可以生成頭像、徽標等各種你想要的,你可以讓照片加上不同的色彩、濾鏡和畫面效果。
第二個填寫prompt的地方,你可以描述你想要生成的圖片,盡可能詳細的描述,這樣生成的效果可能會更符合要求
第三個exclude from image,就是你不希望圖片有哪些特性,寫在這個地方,如果不會描述可以參考官方給出的negative描述,比如我上面用到的
NEGATIVE PROMPTS: ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, out of frame, ugly, extra limbs, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, mutated hands, fused fingers, too many fingers, long neck
(來源)
第四個image to image就是你上傳圖片的地方,然后根據(jù)圖片生成另一張圖片,并且可以調(diào)整圖片的權(quán)重
右邊的導(dǎo)航欄
第一個選項可選擇生成圖片使用的模型,比如圖中的SD1.5
第二個選項可選擇生成圖片的分辨率
第三個選項可選擇prompt提供的參考,默認7,可按需求更改
第四個選項可選擇圖像質(zhì)量,但是更好的圖像質(zhì)量耗時更久
第五個選項調(diào)整seed,可以調(diào)整多次生成圖片時圖片的變化程度
第六個選項選擇每次生成圖片的張數(shù),1-4張
第七個選項選擇是否將你的生成結(jié)果與他人共享,打開這個按鈕說明共享
參考他人的prompt和生成的圖片
先來到https://playgroundai.com/首頁
可以看到很多很漂亮的圖片,我想要直到第四張的prompt和相關(guān)參數(shù),點進去
prompt:
A lovely smiling girl, head surrounded by a lot of butterflies, cute-fine-face, anime, realistic shaded perfect face, realistic shaded lighting by ilya kuvshinov giuseppe dangelico pino and michael garmash and rob rey, bright saturated colors, wlop matte print, 16k resolution, a masterpiece
可以看到它是模型playground v1生成,圖生圖,但是原圖404not found了,暫時告一段落
playgroundai官方還給出了些Prompt 示例,如下:
Prompt 1: a photo of ultra realistic archangel warframe warriror, dynamic action pose full body, futuristic city in the background, intricate details, hyper-realistic, global illumination, cosmic energy in the air, specular highlights, trending on artstation, 4k, sharp focused, unreal engine 5, VRay render, cinematic
Prompt 2: minimal line art of a flower, white background, ink outlines
Prompt 3 (add cinematic filter for variation): inox fox, quick silver liquid glossy, reflective, exploding through ice, ornate details, fractal patterns, scattered shards and debris, nature background
感興趣的朋友們可以自己試試這些Prompt的對應(yīng)生成圖片效果如何
tips: 油管上有playgroundai的官方賬號,會給出更加詳細的、關(guān)于playgroundai的教學(xué)視頻,推薦想要學(xué)習(xí)的朋友們前去學(xué)習(xí)。playgroundai
插一句
此外,博主參加了一個社區(qū),內(nèi)容是關(guān)于 AI的國內(nèi)平臺副業(yè)案例庫 , 適合普通人的低門檻案例。適合想搞副業(yè),但不知道玩法的普通人。專欄訂閱后,永久可以查看,初始價格 19 元 ,一頓飯錢感覺很便宜就加入了,但后期據(jù)說每多加500人漲10塊,同樣有這方面想法的小伙伴可以趕在漲價前速速加一下哦~
掃下圖的碼即可
使用playgroundai繪圖
使用stable diffusion 1.5
文生圖
首先使用prompt
(1)a beautiful chinese girl, 18 years old, detailed and big eyes, white and soft skin, pink lips, black and short hair
可以看到還是比較逼真的,但是距離我想要的理想效果還有差距。我想要一個不那么大的鼻子,然后改成長頭發(fā),所以先修改prompt
(2)a beautiful chinese girl, 18 years old, detailed and big eyes, white and soft skin, pink lips, black and long hair,A straight and tall nose.
這個效果有點難評價,眼睛好像有點假,再改prompt,加個gritty
(3)a beautiful chinese girl, 18 years old, detailed and big eyes, white and soft skin, pink lips, black and long hair,A straight and tall nose,gritty.
效果居然沒咋變,因為我沒有改seed,它的說明:different numbers result in new variations of your image.
決定在不改prompt的情況下添加摒除positive效果的描述詞,即你不想要的效果的詳細說明
官方給出的示例是
NEGATIVE PROMPTS: ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, out of frame, ugly, extra limbs, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, mutated hands, fused fingers, too many fingers, long neck
(來源)
(4)a beautiful chinese girl, 18 years old, detailed and big eyes, white and soft skin, pink lips, black and long hair,A straight and tall nose,intricate details, hyper-realistic. 并且添加了NEGATIVE PROMPTS,得到效果如下
感覺眼睛細節(jié)的效果比第二三張好了不少,有點像網(wǎng)上精修過后的圖了,這個形象可以了。但我比較需要一張正對屏幕的、端正坐著的半身圖,所以繼續(xù)
(5)a beautiful chinese girl, 18 years old, detailed and big eyes, white and soft skin, pink lips, black and long hair,A straight and tall nose,intricate details, hyper-realistic, sitting upright, facing the camera directly.(有NEGATIVE PROMPTS)
失望了,改seed, 默認seed: 237477746 ,改random
改完random之后網(wǎng)站貌似會給出非常多的圖,讓你二選一,來測試你的偏好,圖太多好像選不完,選的差不多了刷新網(wǎng)頁,然后再生成
生成了幾次不滿意,主要是需要一個面對鏡頭的半身照但老是沒成功,換方法文章來源:http://www.zghlxwxcb.cn/news/detail-485291.html
圖生圖
找張好看的網(wǎng)圖,面對鏡頭的半身照(原照片就不放了,只放效果圖)
可以選擇原照片在生成圖片當(dāng)中所占比例,第一張占比30%,第二張占比50%
雖然圖片到這里還稍微有點硅膠感,但先到此為止。文章來源地址http://www.zghlxwxcb.cn/news/detail-485291.html
到了這里,關(guān)于AI繪畫與虛擬人生成實踐(一):生成人像,AI繪畫模型和工具的效果對比的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!