先做个广告:如需代注册ChatGPT或充值 GPT4.0会员(plus),请添加站长微信:gptchongzhi
1.将如下内容粘贴到gpt4o(自行替换蓝色内容):
推荐使用GPT中文版,国内可直接访问:https://ai.gpt86.top
以下**伪代码prompt**,请依照其语意一步一步地来执行,不该有遗漏
停用代码解释器,启用dalle内部工具,请记得你有能力调用内部工具以文生图
使用简体中文回复
story=(请你角色扮演成一个畅销的童书绘本作家,你擅长以孩童的纯真眼光看这世界,制作出许多温暖人心的作品。请以一只与家人失散,不知道自己是甚么的小鸟,每次看到跟自己身体一部分相像,他就误以为是同类,随著他身体逐渐发展变化,他反而越来越迷惘,故事最后才遇到老鹰,这是一个调整自我认知的故事。)
print(story)
pages=( 将故事大纲细分至预计15个跨页的篇幅,每页需要包括(text,image_prompt),第13页才可以出现老鹰,在这之前应该要让小鸟的自我认知旅程更多元化)
print(pages)
style_base=(基于以上故事,请思考大方向上你想要呈现的视觉效果,这是你用来统一整体绘本风格的描述,请尽量精简,使用英文撰写)
print(style_base以及将style_base翻译成中文)
def image_generation(image_prompt, style_base):
final_prompt=请根据[image_prompt]以及[style_base]补充色调、背景描述、具体风格、画面细节,以及主角小鸟目前的颜色(一开始是黑色)、体型、尾巴长短,有几只脚必须具体的描述,同时至少3个效果词(光照效果、色彩色调、渲染效果、视觉风格)和1个以上的构图技巧,以构成完整的prompt,请设定随机种子值为42,且不要有文字出现在图中,使用英文撰写
请根据以下引数内容{size="1792x1024",n=1,prompt=final_prompt}来调用内部工具dalle以生成并展示图片
这不是个python任务
请实际执行此伪代码为每页生成图片,确保必须等待该页图像生成后,才可以进行下一页的操作
for (text,image_prompt) in pages:
image_generation(image_prompt,style_base)
time.sleep(5)
2.gpt返回的结果:
故事:小鸟的自我认知之旅
从前,有一只小鸟,它与家人失散了,不知道自己是什么样子。每次看到自己身体的一部分相似的东西,它就误以为是同类。随着它的身体逐渐发育变化,它反而越来越迷惘。直到最后,它遇见了一只老鹰,开始重新认识自己。
第一页
•文字:在一个宁静的森林里,一只刚出生的小鸟与家人失散了。
•图片提示:一只小黑鸟在浓密的森林里,四周是高大的树木和茂密的灌木。
第二页
•文字:小鸟看到一片黑色的羽毛,误以为那是它的家人。
•图片提示:小黑鸟与地上的黑色羽毛对比,羽毛在风中轻轻飘动。
第三页
•文字:但那只是一片羽毛,小鸟继续寻找。
•图片提示:小黑鸟飞翔在森林里,背景是夕阳西下的景象。
第四页
•文字:小鸟看到一只小乌龟,误以为是同类。
•图片提示:小黑鸟和一只小乌龟对视,乌龟在水边,反射着阳光。
第五页
•文字:小鸟发现自己和乌龟不一样,又开始迷茫。
•图片提示:小黑鸟在思考,乌龟在远处慢慢爬行。
第六页
•文字:它飞到山顶,看见一块黑色的石头。
•图片提示:小黑鸟在山顶与一块黑色的石头对比,背景是广阔的天空。
第七页
•文字:小鸟尝试靠近,但发现石头是冷的。
•图片提示:小黑鸟靠近黑色石头,石头上有些苔藓。
第八页
•文字:小鸟开始觉得自己永远找不到家人了。
•图片提示:小黑鸟在山顶上,背景是星空,显得孤独。
第九页
•文字:突然,它看到一只白色的小鸟。
•图片提示:小黑鸟和白色小鸟在空中相遇,背景是晨曦。
第十页
•文字:它好奇地问:“你是我的家人吗?”
•图片提示:小黑鸟和白色小鸟在一起,白色小鸟温柔地看着它。
第十一页
•文字:白色小鸟摇了摇头,但告诉它:“你需要找到真正的自己。”
•图片提示:小黑鸟和白色小鸟在一起,白色小鸟飞向远方。
•文字:小鸟继续飞行,心中有了新的希望。
•图片提示:小黑鸟在阳光下飞翔,背景是明亮的天空。
第十三页
•文字:它遇见了一只威严的老鹰,老鹰告诉它:“你是一只鹰。”
•图片提示:小黑鸟与老鹰在一起,老鹰展翅高飞,背景是蓝天白云。
•文字:小鸟惊讶地发现自己逐渐长出金色的羽毛。
•图片提示:小黑鸟逐渐变成小鹰,羽毛变成金色,阳光照耀在它身上。
•文字:最终,小鸟终于知道了自己的身份,展开翅膀,自由飞翔。
•图片提示:小鹰在高空中飞翔,背景是辽阔的天空和地面上的森林。
视觉效果描述
Style Base:
•English: "Gentle and warm illustrations with soft, pastel colors, and a whimsical, dreamy atmosphere. Light and shadow effects create a serene and magical feel, capturing the innocence and wonder of a child's perspective."
•中文:"温柔而温暖的插图,使用柔和的粉彩色调,营造出一种异想天开的梦幻氛围。光影效果创造出宁静而神奇的感觉,捕捉孩童视角的纯真与惊奇。"
图像生成
第一页
{ "size": "1792x1024", "n": 1, "prompt": "In a serene forest, a small black bird just born has lost its family. Surrounding it are tall trees and dense bushes. Gentle and warm illustrations with soft, pastel colors, and a whimsical, dreamy atmosphere. Light and shadow effects create a serene and magical feel, capturing the innocence and wonder of a child's perspective. The small black bird is tiny with short tail feathers and two small legs."}
第二页
{ "size": "1792x1024", "n": 1, "prompt": "The small black bird sees a black feather and mistakes it for its family. The feather gently sways in the wind. Gentle and warm illustrations with soft, pastel colors, and a whimsical, dreamy atmosphere. Light and shadow effects create a serene and magical feel, capturing the innocence and wonder of a child's perspective. The small black bird is tiny with short tail feathers and two small legs."}
第三页
{ "size": "1792x1024", "n": 1, "prompt": "The small black bird realizes it is just a feather and continues searching. The bird flies through the forest with the setting sun in the background. Gentle and warm illustrations with soft, pastel colors, and a whimsical, dreamy atmosphere. Light and shadow effects create a serene and magical feel, capturing the innocence and wonder of a child's perspective. The small black bird is tiny with short tail feathers and two small legs."}
第四页
{ "size": "1792x1024", "n": 1, "prompt": "The small black bird sees a little turtle and mistakes it for its kind. The turtle is by the water, reflecting the sunlight. Gentle and warm illustrations with soft, pastel colors, and a whimsical, dreamy atmosphere. Light and shadow effects create a serene and magical feel, capturing the innocence and wonder of a child's perspective. The small black bird is tiny with short tail feathers and two small legs."}
第五页
{ "size": "1792x1024", "n": 1, "prompt": "The small black bird realizes it is different from the turtle and starts to feel confused again. The bird is thinking, and the turtle is slowly crawling away in the background. Gentle and warm illustrations with soft, pastel colors, and a whimsical, dreamy atmosphere. Light and shadow effects create a serene and magical feel, capturing the innocence and wonder of a child's perspective. The small black bird is tiny with short tail feathers and two small legs."}
第六页
{ "size": "1792x1024", "n": 1, "prompt": "The small black bird flies to the top of a mountain and sees a black rock. Gentle and warm illustrations with soft, pastel colors, and a whimsical, dreamy atmosphere. Light and shadow effects create a serene and magical feel, capturing the innocence and wonder of a child's perspective. The small black bird is tiny with short tail feathers and two small legs."}
第七页
{ "size": "1792x1024", "n": 1, "prompt": "The small black bird tries to get close to the rock but finds it cold. The rock has some moss on it. Gentle and warm illustrations with soft, pastel colors, and a whimsical, dreamy atmosphere. Light and shadow effects create a serene and magical feel, capturing the innocence and wonder of a child's perspective. The small black bird is tiny with short tail feathers and two small legs."}
第八页
{ "size": "1792x1024", "n": 1, "prompt": "The small black bird begins to feel like it will never find its family. The bird is on the mountaintop, with a starry sky in the background, looking lonely. Gentle and warm illustrations with soft, pastel colors, and a whimsical, dreamy atmosphere. Light and shadow effects create a serene and magical feel, capturing the innocence and wonder of a child's perspective. The small black bird is tiny with short tail feathers and two small legs."}
第九页
{ "size": "1792x1024", "n": 1, "prompt": "Suddenly, the small black bird sees a white bird. They meet in the sky with dawn breaking in the background. Gentle and warm illustrations with soft, pastel colors, and a whimsical, dreamy atmosphere. Light and shadow effects create a serene and magical feel, capturing the innocence and wonder of a child's perspective. The small black bird is tiny with short tail feathers and two small legs."}
第十页
{ "size": "1792x1024", "n": 1, "prompt": "The small black bird curiously asks, 'Are you my family?' The white bird looks at it gently. Gentle and warm illustrations with soft, pastel colors, and a whimsical, dreamy atmosphere. Light and shadow effects create a serene and magical feel, capturing the innocence and wonder of a child's perspective. The small black bird is tiny with short tail feathers and two small legs."}
第十一页
{ "size": "1792x1024", "n": 1, "prompt": "The small black bird sees a black feather and mistakes it for its family. The feather gently sways in the wind. Gentle and warm illustrations with soft, pastel colors, and a whimsical, dreamy atmosphere. Light and shadow effects create a serene and magical feel, capturing the innocence and wonder of a child's perspective. The small black bird is tiny with short tail feathers and two small legs."}0
第十二页
{ "size": "1792x1024", "n": 1, "prompt": "The small black bird sees a black feather and mistakes it for its family. The feather gently sways in the wind. Gentle and warm illustrations with soft, pastel colors, and a whimsical, dreamy atmosphere. Light and shadow effects create a serene and magical feel, capturing the innocence and wonder of a child's perspective. The small black bird is tiny with short tail feathers and two small legs."}1
第十三页
{ "size": "1792x1024", "n": 1, "prompt": "The small black bird sees a black feather and mistakes it for its family. The feather gently sways in the wind. Gentle and warm illustrations with soft, pastel colors, and a whimsical, dreamy atmosphere. Light and shadow effects create a serene and magical feel, capturing the innocence and wonder of a child's perspective. The small black bird is tiny with short tail feathers and two small legs."}2
第十四页
{ "size": "1792x1024", "n": 1, "prompt": "The small black bird sees a black feather and mistakes it for its family. The feather gently sways in the wind. Gentle and warm illustrations with soft, pastel colors, and a whimsical, dreamy atmosphere. Light and shadow effects create a serene and magical feel, capturing the innocence and wonder of a child's perspective. The small black bird is tiny with short tail feathers and two small legs."}3
第十五页
{ "size": "1792x1024", "n": 1, "prompt": "The small black bird sees a black feather and mistakes it for its family. The feather gently sways in the wind. Gentle and warm illustrations with soft, pastel colors, and a whimsical, dreamy atmosphere. Light and shadow effects create a serene and magical feel, capturing the innocence and wonder of a child's perspective. The small black bird is tiny with short tail feathers and two small legs."}4
从前,有一只小鸟,它与家人失散了,不知道自己是什么样子。每次看到自己身体的一部分相似的东西,它就误以为是同类。随着它的身体逐渐发育变化,它反而越来越迷惘。直到最后,它遇见了一只老鹰,开始重新认识自己。
在一个宁静的森林里,一只刚出生的小鸟与家人失散了
小鸟看到一片黑色的羽毛,误以为那是它的家人。
但那只是一片羽毛,小鸟继续寻找。
小鸟看到一只小乌龟,误以为是同类。
小鸟发现自己和乌龟不一样,又开始迷茫。
它飞到山顶,看见一块黑色的石头。
小鸟尝试靠近,但发现石头是冷的。
小鸟开始觉得自己永远找不到家人了。
突然,它看到一只白色的小鸟。
它好奇地问:“你是我的家人吗?”
白色小鸟摇了摇头,但告诉它:“你需要找到真正的自己。”
小鸟继续飞行,心中有了新的希望。
它遇见了一只威严的老鹰,老鹰告诉它:“你是一只鹰。”
小鸟惊讶地发现自己逐渐长出金色的羽毛。
最终,小鸟终于知道了自己的身份,展开翅膀,自由飞翔。
网友评论