最近由OpenAI發佈的ChatGPT迅速走紅,僅一周就獲得了100萬用戶。 這個令人印象深刻的AI可以完成各種各樣的任務,例如回答問題、生成故事、對話交流、生成程式碼、解釋複雜的概念等等。 國外一比特Twitter用戶甚至報告說ChatGPT的智商為83,這對於人類來說是較低的平均水準,但對於神經網路來說卻非常令人印象深刻!
最近各大網站看到ChatGPT的功能後,我有一個有趣的想法,想親自嘗試一下。 因為很多時候新手用AI繪畫往往不知道如何下手寫提示詞,尤其是要用英文來描述,可能憋半天腦海裏只有“girl”、“dog”、“apple”。 既然提示詞是文字,作為文字生成AI的扛把子,ChatGPT能不能生成AI繪畫的提示詞(prompt)呢?
但這並不像我想的那麼容易,因為ChatGPT不知道AI繪畫! 事實上,它使用2021年9月之前的數據訓練,而AI繪畫模型Stable Diffusion於2022年8月發佈,直接問“請按照Stable Diffusion的prompt格式生成XX內容的prompt”往往沒有結果。 經過一些嘗試和試錯後,我發現可以通過為ChatGPT提供一些上下文和幾個示例提示來繞過此限制。
與ChatGPT的對話範本
Stable Diffusion是一個AI繪畫生成模型,下麵是一些被用來生成圖片的Stable Diffusion描述詞:
-描述詞示例1
-描述詞示例2
-描述詞示例3
我希望你給我寫一份有關「XX」的詳細描述語,遵循示例描述語的結構,即對場景的非常簡短的描述,然後是用逗號分隔的修飾符,以改變情緒、風格、燈光、藝術風格等。
具體描述語如下:
Stable Diffusion is an AI art generation model. Below is a list of prompts that can be used to generate images with Stable Diffusion: – portait of a homer simpson archer shooting arrow at forest monster, front game card, drark, marvel comics, dark, intricate, highly detailed, smooth, artstation, digital illustration by ruan jia and mandy jurgens and artgerm and wayne barlowe and greg rutkowski and zdislav beksinski – pirate, concept art, deep focus, fantasy, intricate, highly detailed, digital painting, artstation, matte, sharp focus, illustration, art by magali villeneuve, chippy, ryan yee, rk post, clint cearley, daniel ljunggren, zoltan boros, gabor szikszai, howard lyon, steve argyle, winona nelson – ghost inside a hunted room, art by lois van baarle and loish and ross tran and rossdraws and sam yang and samdoesarts and artgerm, digital art, highly detailed, intricate, sharp focus, Trending on Artstation HQ, deviantart, unreal engine 5, 4K UHD image – red dead redemption 2, cinematic view, epic sky, detailed, concept art, low angle, high detail, warm lighting, volumetric, godrays, vivid, beautiful, trending on artstation, by jordan grimmer, huge scene, grass, art greg rutkowski – a fantasy style portrait painting of rachel lane / alison brie hybrid in the style of francois boucher oil painting unreal 5 daz. rpg portrait, extremely detailed artgerm greg rutkowski alphonse mucha greg hildebrandt tim hildebrandt – athena, greek goddess, claudia black, art by artgerm and greg rutkowski and magali villeneuve, bronze greek armor, owl crown, d & d, fantasy, intricate, portrait, highly detailed, headshot, digital painting, trending on artstation, concept art, sharp focus, illustration – closeup portrait shot of a large strong female biomechanic woman in a scenic scifi environment, intricate, elegant, highly detailed, centered, digital painting, artstation, concept art, smooth, sharp focus, warframe, illustration, thomas kinkade, tomasz alen kopera, peter mohrbacher, donato giancola, leyendecker, boris vallejo – ultra realistic illustration of steve urkle as the hulk, intricate, elegant, highly detailed, digital painting, artstation, concept art, smooth, sharp focus, illustration, art by artgerm and greg rutkowski and alphonse mucha I want you to write me a list of detailed prompts exactly about the idea written after IDEA. Follow the structure of the example prompts. This means a very short description of the scene, followed by modifiers divided by commas to alter the mood, style, lighting, and more. IDEA: a pretty girl
效果展示
女孩
一幅漂亮女孩的畫像,她留著飄逸的長髮,坐在鬱鬱蔥蔥的綠色花園裏的秋千上,周圍環繞著鮮花,數位插圖,柔和,柔和的色彩,充滿活力,俏皮,輕鬆,異想天開,無憂無慮,作者:J.斯科特·坎貝爾和宮崎駿
A portrait of a pretty girl with long,flowing hair,sitting on a swing in a lush,green garden,surrounded by flowers,digital illustration,soft,pastel colors,vibrant,playful,light-hearted,whimsical,carefree,by J. Scott Campbell and Hayao Miyazaki
一張漂亮女孩的臉特寫,帶著夢幻般若有所思的表情,被光暈包圍,數位繪畫,空靈,浪漫,夢幻,超現實,精緻,by Rebecca Sugar and Kiki’s Delivery Service
A close-up of a pretty girl’s face,with a dreamy,thoughtful expression,surrounded by a halo of light,digital painting,ethereal,romantic,dreamy,surreal,delicate,by Rebecca Sugar and Kiki’s Delivery Service
一個坐在寶座上的漂亮女孩,穿著漂亮、華麗的中世紀禮服,數位繪畫,富麗堂皇、威嚴、宏偉、莊嚴、優雅,作者:George Perez和M.C.埃舍爾
A pretty girl sitting on a throne,dressed in a beautiful,ornate medieval gown,digital painting,regal,majestic,grand,stately,elegant,by George Perez and M.C. Escher
异世界
通往另一個宇宙的門戶,被描繪成一個充滿活力色彩和脈動能量的漩渦,以鮮明的黑色背景為背景,瘋狂,迷幻,迷幻,超現實,抽象,數字藝術,artstation,概念藝術,流暢,清晰的焦點,充滿活力,發光,霓虹燈,插圖, 藝術由阮嘉和曼迪尤爾根斯和artgerm和韋恩巴洛和格雷格魯特科夫斯基和zdislav beksinski
a portal to another universe,depicted as a swirling vortex of vibrant colors and pulsating energy,set against a stark black background,insane,psychedelic,trippy,surreal,abstract,digital art,artstation,concept art,smooth,sharp focus,vibrant,glowing,neon,illustration,art by ruan jia and mandy jurgens and artgerm and wayne barlowe and greg rutkowski and zdislav beksinski
一個角色穿過門戶進入另一個宇宙,被描繪成一個充滿活力色彩和脈動能量的漩渦,背景是超現實、夢幻般的風景、瘋狂、迷幻、迷幻、抽象、數字藝術、藝術站、概念藝術、流暢、清晰的焦點,充滿活力,發光,霓虹燈,插圖,
magali villeneuve and chippy and ryan yee and rk post and clint cearley and daniel ljunggren and zoltan boros and gabor szikszai and howard lyon and steve argyle and winona nelson的藝術
a character stepping through the portal to another universe,depicted as a swirling vortex of vibrant colors and pulsating energy,set against a surreal,dreamlike landscape,insane,psychedelic,trippy,abstract,digital art,artstation,concept art,smooth,sharp focus,vibrant,glowing,neon,illustration, art by magali villeneuve and chippy and ryan yee and rk post and clint cearley and daniel ljunggren and zoltan boros and gabor szikszai and howard lyon and steve argyle and winona nelson
魔法吟唱
巫師召喚魔法火球,强烈,黑暗,幻想,數位插圖,artstation,非常詳細,清晰的焦點,magali villeneuve,chippy,ryan yee,rk post,clint cearley,daniel ljunggren,zoltan boros,gabor szikszai,howard lyon的藝術,史蒂夫·阿蓋爾,薇諾娜·尼爾森
Wizard conjuring a magic fireball,intense,dark,fantasy,digital illustration,artstation,highly detailed,sharp focus,art by magali villeneuve,chippy,ryan yee,rk post,clint cearley,daniel ljunggren,zoltan boros,gabor szikszai,howard lyon,steve argyle,winona nelson
巫師施法,特寫肖像拍攝,優雅,高度詳細,居中,數位繪畫,artstation,概念藝術,平滑,銳利的焦點,插圖,artgerm和greg rutkowski和alphonse mucha的藝術,tomasz alen kopera,peter mohrbacher,donato giancola,萊恩德克爾,鮑裏斯·瓦列霍
Wizard casting a spell,closeup portrait shot,elegant,highly detailed,centered,digital painting,artstation,concept art,smooth,sharp focus,illustration,art by artgerm and greg rutkowski and alphonse mucha,tomasz alen kopera,peter mohrbacher,donato giancola,leyendecker,boris vallejo
總結
除了讓ChatGPT直接生成AI作畫描述詞,通過對話的管道也能讓ChatGPT描述一個具體場景或物體,人工微調後就能用於AI繪畫。