草庐IT

当ChatGPT遇上Stable Diffusion

物联全栈 2023-04-10 原文

之前有在前面的图文和大家分享过stable diffusion--二次元福利 (qq.com),缺点就是prompt很难准确的把握,受限于自己的文字表达能力,以及中英文对照不恰当。

最近出现了让很多人都疯狂的AIGC模型ChatGPT,一个由OpenAI训练的大型语言模型。被设计用于回答各种各样的问题和提供对话交互。

网络上也出现了各种各样的基于ChatGPT的应用,有用它来写小作文的,也有用它来接管微信当聊天机器人的等等。

鉴于这么强大的文本生成能力,把它应用在Stable Diffusion上岂不是完美。心动不如行动,于是有了下面的骚操作。

首先弄一个ChatGPT的账号,可以在某宝上购买,也可以自己科学上网自己注册。然后登陆ChatGPT的账号,进入如下界面

第一个测试:

问题:他的心是冷的,他的剑是冷的,他的血也是冷的

生成的文本如下:

:He was a man of ice and steel, his heart as cold as the frozen tundra, his sword as sharp as a winter's chill, and his blood as frigid as the arctic sea. His gaze was steady and unflinching, and his voice was as sharp as a blade.
He moved through the world with an air of detachment, aloof from the passions and desires of mortals. His every action was calculated, precise, and efficient, driven by a single-minded determination to achieve his goals.
His sword was his constant companion, an extension of his will and an embodiment of his mastery over the art of combat. Its icy edge cut through his enemies with effortless ease, leaving only frozen corpses in its wake.
Though he was feared and respected by all who knew him, he was a man of few words and even fewer emotions. He had long ago learned to suppress the warmth of his heart, the fire of his passions, and the flow of his blood in order to achieve a state of perfect equilibrium.
But even in his cold and frozen heart, there lay a spark of something deeper, a glimmer of humanity that he could not extinguish. It was a memory of a time long past, when he too had known the warmth of the sun and the touch of another's hand.
Yet, he pushed these thoughts aside, for they were a weakness that he could not afford. He was a man of ice and steel, and he would allow nothing to stand in his way.

然后启动Stable Diffusion,python webui.py,网页进入如下界面

然后我们输入上面生成的文本

问题:用英文描写一个中国古代神话的宏大激烈的战斗场面

生成的文本如下:

Amidst the roaring thunder and flashes of lightning, two armies of immortals clashed in a fierce and epic battle. The sky was ablaze with the brilliant light of magic and the air was thick with the smell of burning incense.
The gods of the north, led by the powerful and fearsome Xuanwu, surged forward, their weapons glinting in the flickering light. On the other side of the battlefield, the southern gods, under the command of the legendary Zhu Rong, stood their ground, their bodies wreathed in flames.
The clash was ferocious and unrelenting. Xuanwu's dragon-like form soared through the air, its scales flashing in the light, while Zhu Rong wielded his mighty spear, driving back wave after wave of enemies. Lightning bolts streaked across the sky as the gods hurled spells at one another, and the earth trembled beneath the stampede of their celestial armies.
For hours the battle raged on, neither side gaining the upper hand. But then, with a roar that shook the heavens, Xuanwu unleashed his ultimate weapon, a sword that blazed with the power of a thousand suns. The earth shook and the sky turned red as he charged towards Zhu Rong, determined to vanquish his foe once and for all.
But Zhu Rong was not so easily defeated. Summoning all his strength, he raised his spear high and called upon the might of the fire element. Flames erupted from the ground and surrounded him, and with a final burst of energy, he sent a searing beam of fire hurtling towards Xuanwu.
The collision was cataclysmic. The ground split apart and the air filled with smoke and ash. When the dust cleared, both armies were gone, and only the smoldering ruins of the battlefield remained as a testament to the epic clash of the gods.

然后灌到Stable Diffusion

看上去是不是很酷。

再来一个

问题:用英文描述中国神话中的仙女的模样

生成的文本:

The Fairy of Chinese mythology was a vision of ethereal beauty, with features that were both delicate and divine. Her skin was porcelain-white, her eyes as bright as stars, and her hair as dark as the night sky.


Her clothing was equally stunning, often made of gossamer silk or other fine materials that shimmered and flowed with her every movement. She wore a crown of flowers on her head, each petal perfectly formed, and carried a magical instrument, like a jade flute or a stringed instrument, which she played with enchanting skill.


In some legends, she had delicate wings, like those of a butterfly, that allowed her to soar through the air with ease. And in all depictions, she radiated a sense of otherworldly grace and beauty that made all who beheld her feel as if they were in the presence of something truly divine.


Some stories tell of how she would appear to mortals in times of need, offering guidance, comfort, and aid. Others speak of how she would sing sweet melodies that would fill the air with a sense of peace and harmony.


Overall, the Fairy of Chinese mythology was a symbol of purity, beauty, and grace, embodying the highest ideals of human nature and inspiring all who beheld her to strive for something greater.

然后灌到Stable Diffusion,生成如下图片

当然也可以使用img2img功能搭配使用,进行俄罗斯套娃生成

类似ChatGPT这样的AIGC模型,后续会如雨后春笋般的冒出来,毕竟潘多拉魔盒已经被打开,一起期待平民版的模型吧!

听说关注公众号的都是大牛:公众号:IoT Inn

有关当ChatGPT遇上Stable Diffusion的更多相关文章

  1. 亚特兰蒂斯的回声(中文版): chatGPT 的杰作 - 2

    英文版英文链接关注公众号在“亚特兰蒂斯的回声”中踏上一段难忘的冒险之旅,深入未知的海洋深处。足智多谋的考古学家AriaSeaborne偶然发现了一件古代神器,揭示了一张通往失落之城亚特兰蒂斯的隐藏地图。在她神秘的导师内森·兰登教授的指导和勇敢的冒险家亚历克斯·默瑟的帮助下,阿丽亚开始了一段危险的旅程,以揭开这座传说中城市的真相。他们的冒险之旅带领他们穿越险恶的大海、神秘的岛屿和充满陷阱和谜语的致命迷宫。随着Aria潜在的魔法能力的觉醒,她被睿智勇敢的QueenNeria的幻象所指引,她让她为即将到来的挑战做好准备。三人组揭开亚特兰蒂斯令人惊叹的隐藏文明,并了解到邪恶的巫师马拉卡勋爵试图利用其古

  2. 智能客服 | 浅谈人工智能聊天机器人ChatGPT - 2

    2022年底,OpenAI的预训练模型ChatGPT给人工智能领域的爱好者和研究人员留下了深刻的印象和启发,他展现的惊人能力将人工智能的研究和应用热度推向高潮,网上也充斥着和ChatGPT的各种聊天,他可以作诗、写小说、写代码、讨论疫情问题等。下面就是一些他的神回复:人命关天的坑: 写歌,留给词作者的机会不多了。。。 回答人类怎么样面对人工智能: 什么是ChatGPT?借用网上的一段介绍,ChatGPT是由人工智能研究实验室OpenAI在2022年11月30日发布的全新聊天机器人模型,一款人工智能技术驱动的自然语言处理工具。它能够通过学习和理解人类的语言来进行对话,还能根据聊天的上下文进行互动

  3. 【ChatGPT】ChatGPT 的 N 种用法 - 2

    目录ChatGPT简介技术原理应用未来发展ChatGPT的10 种用法ChatGPT简介ChatGPT是一种基于深度学习的大型语言模型,由OpenAI公司开发。技术原理GPT是GenerativePre-trainedTransformer的缩写,意为生成式预训练变压器。它的技术原理是使用了一个基于注意力机制的变压器(Trans

  4. 「想体验ChatGPT中文聊天?」那快进来,你用不上算我输 - 2

    ♥️作者:白日参商🤵‍♂️个人主页:白日参商主页♥️坚持分析平时学习到的项目以及学习到的软件开发知识,和大家一起努力呀!!!🎈🎈加油!加油!加油!加油🎈欢迎评论💬点赞👍🏻收藏📂加关注+!「想体验ChatGPT中文聊天?」那快进来,你用不上算我输项目场景:项目条件一、那就开始吧1、安装ChatGPT-Desktop2、OpenAPI设置二、使用实例恭喜你!!!配置成功了!!!API和URL都是博主免费提供给大家的!!!恭喜你!!!配置成功了!!!API和URL都是博主免费提供给大家的!!!🎈🎈加油!加油!加油!加油🎈欢迎评论💬点赞👍🏻收藏📂加关注+!项目场景:近几个月可以说ChatGPT是火得一

  5. 半个月狂飙1000亿,ChatGPT概念股凭什么? - 2

    ChatGPT掀起了AI股历史上最疯狂的一轮市值狂飙。自春节后至今,ChatGPT概念股开始了暴走模式,短短半月时间,海天瑞声、开普云等ChatGPT概念股市值累计增加了近1400亿。如此的爆炸效应,得益于ChatGPT所展现出商业化落地的巨大潜力。要知道,在此之前,无论是十年AI投入超千亿的百度,还是困在硬件化里的AI四小龙,都在重复着AI商业化难落地的故事。ChatGPT的出现,让AI从生产力的赋能者直接成为一种创造生产力的工具。随着订阅模式的推出,ChatGPT已经成为第一个以AI技术为核心直接变现的消费者应用。本文持有以下核心观点:1、ChatGPT是AI技术迭代的受益者。过去受限技术

  6. 未来的趋势————以ChatGPT为标杆的AI对生活的影响是巨大的 - 2

    文章目录前言1.AI的发展历程2.我是如何接触到人工智能的概念和产品的3.对于ChatGPT的一点看法4.AI对大学毕业生的职业发展的利与弊5.对于AI的思考和问题前言随着ChatGPT的爆火,生成式AI,大模型的人工智能被越来越多的人注意到,同时他也带来了许多问题。本文将对几方面进行探讨。1.AI的发展历程远古时期在公元前第一个千禧年,中国,印度和希腊哲学家都提出了一些推理的研究理论,比如亚里士多德(Aristotle)进行了演绎推理三段论的完整分析,欧几里得(Euclid)所著Elements是一种形式推理的模型,MuḥammadibnMūsāal-Khwārizmī,发明了代数学,即我们

  7. 山石发声|风暴眼中的ChatGPT,看NLPer怎么说? - 2

    当前科技领域最有热度的话题,无疑是OpenAI新提出的大规模对话语言模型ChatGPT,一经发布上线,短短五天就吸引了百万用户,仅一个多月的时间月活已然破亿,并且热度一直在持续发酵,各行各业的从业人员、企业机构都开始体验关注甚至自研“类ChatGPT”模型。这里,笔者从一位NLP从业人员的角度谈一谈对ChatGPT的一些看法和思考。1、ChatGPT诞生之路1.1BERT2018年,谷歌提出BERT(BidirectionalEncoderRepresentationfromTransformer)模型,一时之间疯狂屠榜,在各种自然语言处理领域建模任务中取得了最佳的成绩,NLP自此进入了大规模

  8. ChatGPT教程之深入了解魔术背后的技术 - 2

    解开谜团:深入探索ChatGPT的技术奇迹。ChatGpt无处不在,无论是在播客、博客、YouTube还是社交媒体上。当我注意到这项新技术如此受欢迎时,我决定试一试,我被震惊了!有很多关于ChatGpt及其魔力的博客,但在这篇博客中,我将深入探讨其内部技术及其工作原理!ChatGpt简介根据OpenAI,ChatGpt被描述为:“我们训练了一个名为ChatGpt的模型,它以对话方式进行交互。对话格式使ChatGpt可以回答后续问题、承认错误、挑战不正确的前提并拒绝不适当的请求。ChatGPT是InstructGPT的兄弟模型,它经过训练可以按照提示中的说明进行操作并提供详细的响应。”OpenA

  9. 火爆的ChatGPT快速学成,要看哪些书? - 2

    以前我们经常打趣说:***,你out了!当然了,玩笑成分居多。但是如果作为一名技术人员,现在还没有听说过ChatGPT,那么你可能真的“out”了。比尔·盖茨说,ChatGPT的重要性堪比互联网的发明,甚至它“将改变我们的世界”。ChatGPT得到科技界大佬的如此推崇,那么,ChatGPT到底是什么?ChatGPT是2022年11月底,美国OpenAI公司推出的一款人工智能聊天机器人。两个月后,ChatGPT的月活用户已经突破1亿,成为有史以来增长速度最快的消费者应用程序。ChatGPT功能极其强大,它能够通过学习和理解人类的语言进行对话,还能根据上下文进行互动,实现像人类一样的聊天交流。除了

  10. ChatGPT陷伦理风波 “纯净版”机器人在赶来的路上 - 2

     近期,AI安全问题闹得沸沸扬扬,多国“禁令”剑指ChatGPT。自然语言大模型采用人类反馈的增强学习机制,也被担心会因人类的偏见“教坏”AI。4月6日,OpenAI官方发声称,从现实世界的使用中学习是创建越来越安全的人工智能系统的“关键组成部分”,该公司也同时承认,这需要社会有足够时间来适应和调整。至于这个时间是多久,OpenAI也没给出答案。大模型背后的“算法黑箱”无法破解,开发它的人也搞不清机器作答的逻辑。十字路口在前,一些自然语言大模型的开发者换了思路,给类似GPT的模型立起规矩,让对话机器人“嘴上能有个把门的”,并“投喂”符合人类利益的训练数据,以便它们输出“更干净”的答案。这些研发

随机推荐