《Tech Xplore:如何完善ChatGPT、Midjourney和其他AI生成工具的提示写作(2023)(英文版)(8页).pdf》由会员分享,可在线阅读,更多相关《Tech Xplore:如何完善ChatGPT、Midjourney和其他AI生成工具的提示写作(2023)(英文版)(8页).pdf(8页珍藏版)》请在三个皮匠报告上搜索。
1、 How to perfect your prompt writing forChatGPT,Midjourney and other AIgeneratorsFebruary 24 2023,by Marcel Scharth Credit:Midjourney/Marcel Scharth,Author providedGenerative AI is having a moment.ChatGPT and art generators such asDALL-E 2,Stable Diffusion and Midjourney have proven theirpotential,an
2、d now millions are wracking their brains over how to gettheir outputs to look something like the vision in their head.This is the goal of prompt engineering:the skill of crafting an input to1/8 deliver a desired result from generative AI.Despite being trained on more data and computational resources
3、 thanever before,generative AI models have limitations.For instance,theyrenot trained to produce content aligned with goals such as truth,insight,reliability and originality.They also lack common sense and a fundamental understanding of theworld,which means they can generate flawed(and even nonsensi
4、cal)content.As such,prompt engineering is essential for unlocking generative AIscapabilities.And luckily it isnt a technical skill.Its mostly about trialand error,and keeping a few things in mind.ChatGPTFirst,lets use ChatGPT to illustrate how prompt engineering can be usedfor text outputs.If its us
5、ed effectively,ChatGPT can generate essays,computer code,business plans,cover letters,poetry,jokes,and more.Since its a chatbot,you may be inclined to engage with itconversationally.But this isnt the best approach if you want tailoredresults.Instead,adopt the mindset that youre programming the machi
6、neto perform a writing task for you.Create a content brief similar to what you might give a hiredprofessional writer.The key is to provide as much context as possibleand use specific and detailed language.You can include informationabout:your desired focus,format,style,intended audience and textleng
7、th2/8 a list of points you want addressedwhat perspective you want the text written from,if applicableand specific requirements,such as no jargon.Image created using Midjourney.Prompt:oil painting of a child with theirgrandparent enjoying a moment together and looking at each other.The childsface is
8、 full of wonder and the grandparents face is lined with years of living,nostalgia,happy and sad memories and the wisdom of their years.Detailed faces.ar 3:2 no glassesIf you want a longer piece,you can generate it in steps.Start with thefirst few paragraphs and ask ChatGPT to continue in the next pr
9、ompt.Ifyoure unsatisfied with a specific portion,you can ask for it to be3/8 rewritten according to new instructions.But remember:no matter how much you tinker with your prompts,ChatGPT is subject to inaccuracies and making things up.So dont takeanything at face value.In the example below,the output
10、 mentions areport that doesnt exist.It probably included this because my promptasked it to use only reliable sources.4/8 I used prompt engineering to get ChatGPT to write this news article,whichprovides inaccurate information.5/8 Art generatorsMidjourney is one of the most popular tools for art gene
11、ration,and oneof the easiest for beginners.So lets use it for our next example.Unlike for text generation,elaborate prompts arent necessarily better forimage generation.The following example shows how a basic promptcombined with a style keyword is enough to create a variety ofinteresting images.Your
12、 style keyword may refer to a genre,artmovement,technique,artist or specific work.The following images were based on the prompt leopard on tree followedby different style keywords.These were(from the top left clockwise)synthwave,hyperrealist,expressionist and in the style of Zena Holloway.Holloway i
13、s a British photographer known for capturing her subjects inethereal and somewhat surreal scenes,most often underwater.You can also add keywords relating to:image qualities,such as beautiful or high definitionobjects you want picturedand lighting and colors.With Midjourney,you can even use certain s
14、pecific commands fordifferent features,including ar or aspect to set the aspect ratio,no to omit certain objects,and c to produce more unusual results.This command accepts values between 0-100 after it,where the defaultis 0 and 100 leads to the most unusual result.You can also use s or stylize to ge
15、nerate more artistic images(at theexpense of following the prompt less closely).The following example applies some of these ideas to create a fantasy6/8 image with a dreamlike and futuristic look.The prompt used here was dreamy futuristic cityscape,beautiful,clouds,interesting colors,cinematiclighti
16、ng,8k,4k ar 7:4 c 25 no windows.Midjourney accepts multiple prompts for one image if you use a doublecolon.This can lead to results such as the image below,where I providedseparate prompts for the owl and plants.The full prompt was oil paintingof an ethereal owl:flowers,colors:abstract:wisdom ar 7:4
17、.A more advanced type of prompting is to include an image as part of theprompt.Midjourney will then take the style of that image into accountwhen generating a new one.A good way to find inspiration and ideas is to explore the Midjourneygallery and style libraries.A career of the future?As generative
18、 AI models enter everyday life,prompting skills are likelyto become more in-demand,especially from employers looking to getresults using AI generators.Some commentators are asking if becoming a prompt engineer may bea way for professionals such as designers,software engineers and contentwriters to s
19、ave their jobs from automation,by integrating generative AIinto their work.Others have suggested prompt engineering will itself bea career.Its hard to predict what role prompt engineering will play as AI modelsadvance.But its almost a given that more sophisticated generators will be able tohandle mo
20、re complex requests,inviting users to stretch their creativity.7/8 They will likely also have a better grasp of our preferences,reducing theneed for tinkering.This article is republished from The Conversation under a CreativeCommons license.Read the original article.Provided by The ConversationCitat
21、ion:How to perfect your prompt writing for ChatGPT,Midjourney and other AI generators(2023,February 24)retrieved 30 July 2023 from https:/ document is subject to copyright.Apart from any fair dealing for the purpose of privatestudy or research,no part may be reproduced without the written permission.The content isprovided for information purposes only.Powered by TCPDF(www.tcpdf.org)8/8