Omost - 一句话就可AI绘画,自动生成关键词,本地一键整合包
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q7.itc.cn/q_70/images01/20240605/603621bb4f1f4e4d9b52eded56a11190.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">近期</span>,ControlNet的作者推出了一个全新的项目——Omost。这个项目对现有图像模型的提示词理解有着巨大的<span style="color: black;">帮忙</span>。<span style="color: black;">经过</span>很短的提示词,就<span style="color: black;">能够</span>生成非常<span style="color: black;">仔细</span>并且空间表现很准确的<span style="color: black;">照片</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">划重点,这个项目需要8G显存显卡运行,<span style="color: black;">据述</span>老显卡,<span style="color: black;">例如</span>10系可能用不了,<span style="color: black;">详细</span><span style="color: black;">自动</span>测试。</p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;"><strong style="color: blue;">从此,天下<span style="color: black;">无</span>难写的生图提示词</strong></h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">当然Omost还是和AI绘画<span style="color: black;">关联</span>:<span style="color: black;">处理</span>大伙不会写提示词的痛点。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">除了自动写词外,会话模式改图<span style="color: black;">亦</span>是一大亮点,<span style="color: black;">第1</span>次生成的效果不满意,<span style="color: black;">能够</span>以“聊天”方式再次发布会话内容,修改上次生成的内容。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">此刻</span>只需一句超简单的提示词说明意图,Agent就会自己<span style="color: black;">起始</span>“构图”</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">例如</span>写一句简短的提示词</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">“ generate an image of the fierce battle of warriors and the dragon”(生成勇士与龙的激烈战斗的图像)</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">软件就会自动<span style="color: black;">起始</span>构图:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">以下构图流程部分做了中文翻译,让<span style="color: black;">大众</span>能更直观看到<span style="color: black;">全部</span>流程:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">---------------------------</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"># Initialize the canvas</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">canvas = Canvas()</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"># 为画布设置全局描述</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">canvas.set_global_description(</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">description=一个以勇士和龙为主角的激烈战斗场景.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">detailed_descriptions=[</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">这张照片拍摄了勇敢的战士和可怕的龙之间的史诗般的战斗.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">战士们身穿中世纪盔甲,挥舞着剑和盾牌,展示了<span style="color: black;">她们</span>凶猛的决心.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">巨龙张开巨大的翅膀,喷火照亮了<span style="color: black;">阴暗</span>的天空.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">背景是崎岖的山区景观,<span style="color: black;">增多</span>了场景的强度和戏剧性.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">战士们战略性地围绕着巨龙展开,有些人试图躲避巨龙的火焰,而另<span style="color: black;">有些</span>人则准备发动攻击.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">当龙在战场上威胁性地逼近时,气氛充满了紧张和即将到来的厄运感.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">灯光是戏剧性的,火焰在<span style="color: black;">全部</span>场景中投射出炽热的光芒和<span style="color: black;">暗影</span>.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">],</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">关键词=战斗,战士,龙,中世纪的盔甲,剑,盾牌,火,翅膀,<span style="color: black;">阴暗</span>的天空,崎岖的风景,山脉,紧张,戏剧,战场,火焰,<span style="color: black;">暗影</span>,史诗,激烈,激烈,决心,勇敢,迫在眉睫,威胁,充份,即将到来的厄运,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">HTML_web_color_name=firebrick,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"># 加上猛龙.</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">canvas.add_local_description(</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">location=in the center,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">offset=no offset,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">area=a large square area,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">distance_to_viewer=5.0,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">description=The fierce dragon.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">detailed_descriptions=[</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">The dragon is the centerpiece of the battle scene.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Its massive wings are spread wide, revealing intricate scales and powerful muscles.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">The dragon’s eyes are fierce and glowing, reflecting its anger and determination.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">It breathes fire, which illuminates the darkening sky with bright, fiery hues.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">The dragon’s body is muscular and covered in protective scales, and its tail is poised to strike.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">The overall appearance of the dragon is one of pure power and menace, making it a formidable opponent in this epic battle.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">],</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">关键词=龙,翅膀,鳞片,肌肉,眼睛,火,发光,愤怒,强大,威胁,强大,对手,战斗,核心,明亮,色调,<span style="color: black;">阴暗</span>的天空,肌肉,<span style="color: black;">守护</span>,沉着,打击,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">atmosphere=The atmosphere is charged with tension and the sense of impending doom.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">style=The style is dramatic and intense, with a focus on the dragon’s menacing presence.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">quality_meta=The dragon is depicted with intricate details and a powerful presence.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">HTML_web_color_name=darkred,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"># 添加准备攻击的战士.</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">canvas.add_local_description(</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">location=on the left,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">offset=slightly to the lower-right,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">area=a medium-sized vertical area,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">distance_to_viewer=4.5,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">description=Warriors preparing to strike.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">detailed_descriptions=[</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">A group of warriors, clad in medieval armor, are positioned on the left side of the scene.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">They are armed with swords and shields, ready to face the dragon.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Their expressions are determined and focused, showing their bravery and readiness for battle.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">The warriors are strategically placed to prepare for an attack, with some members slightly to the lower-right, positioned to dodge the dragon’s flames.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">The armor they wear is detailed, with engravings and protective elements, showcasing their skill and craftsmanship.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">The lighting casts dramatic shadows on their figures, emphasizing the tension and intensity of the battle.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">],</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">关键词=战士,中世纪盔甲,剑,盾牌,决心,专注,勇敢,准备,战斗,战略,躲闪,火焰,<span style="color: black;">仔细</span>,雕刻,<span style="color: black;">守护</span>,技能,工艺,戏剧性,<span style="color: black;">暗影</span>,紧张,强度,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">atmosphere=The atmosphere is intense and charged with the energy of the impending battle.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">style=The style is focused and detailed, capturing the bravery of the warriors.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">quality_meta=The warriors are depicted with detailed armor and expressions of determination.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">HTML_web_color_name=saddlebrown,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"># 添加试图躲避火焰的战士.</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">canvas.add_local_description(</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">location=on the right,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">offset=slightly to the upper-left,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">area=a medium-sized vertical area,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">distance_to_viewer=4.5,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">description=Warriors attempting to dodge flames.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">detailed_descriptions=[</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">On the right side of the scene, a group of warriors is seen attempting to dodge the dragon’s flames.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">They are positioned slightly to the upper-left, with their movements swift and precise.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">The warriors are clad in medieval armor, and their expressions are a mix of urgency and focus.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">The flames from the dragon’s mouth create a dramatic contrast, with bright hues of fire illuminating the darkening sky.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">The warriors’ armor is detailed, with protective elements and engravings, showcasing their readiness for battle.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">The lighting emphasizes the urgency and intensity of the moment, casting dynamic shadows and highlights.,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">],</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">关键词=战士,中世纪盔甲,躲闪,火焰,快速,精确,紧迫,焦点,戏剧性,对比,明亮,色调,火焰,照明,变暗</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">---------------------------</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">放大翻译成中文来看,用户简短的提示词会被拆解扩展,从图像全局描述到局部<span style="color: black;">每一个</span>元素的都会<span style="color: black;">仔细</span>说明,直观地指定图像中各个元素的位置和<span style="color: black;">体积</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">之后,特定图像生成器<span style="color: black;">按照</span>LLM描绘的“蓝图”创建<span style="color: black;">最后</span>的图像。<span style="color: black;">例如</span>,<span style="color: black;">咱们</span>刚才生成的“人龙大战”</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q9.itc.cn/q_70/images01/20240605/229443c6ae9040beac192553e4497380.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">况且</span>,<span style="color: black;">已然</span>完成的图像整体布局<span style="color: black;">能够</span><span style="color: black;">保存</span>,想修改画面中的某个元素,<span style="color: black;">亦</span>只需一句提示词。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">例如</span>我想把当前生成的龙改成恐龙,只需要执行一句话 " change the dragon to a dinosaur ",效果如下:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q8.itc.cn/q_70/images01/20240605/3de74bb69320478d99bb8984cc723110.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q9.itc.cn/q_70/images01/20240605/ec078b4c3b994007a6a47df45b830ca6.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">咱们</span><span style="color: black;">能够</span>将Omost生成的关键词复制到其他AI绘画软件,<span style="color: black;">例如</span>SD里,<span style="color: black;">一样</span>能生成酷炫的效果。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">日前</span>,Omost用来生成代码的LLM有基于Llama3和Phi3变体的三种模型。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">项目亮点:</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">自动扩展提示词:Omost能够将简单的提示词拆解成<span style="color: black;">仔细</span>的描述,从图像整体到局部元素的位置和<span style="color: black;">体积</span>均能<span style="color: black;">仔细</span>说明。例如输入“a funny cartoon batman fights joker”,系统会生成蝙蝠侠与小丑战斗的完整图像。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">高灵活性:生成的图像布局<span style="color: black;">能够</span><span style="color: black;">保存</span>,用户<span style="color: black;">能够</span><span style="color: black;">经过</span>简单的提示词对图像中的某个元素进行修改。<span style="color: black;">例如</span>,将龙变成恐龙,系统会<span style="color: black;">按照</span>新提示生成修改后的图像。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">图像位置编码:Omost<span style="color: black;">经过</span>将图像划分为729个<span style="color: black;">区别</span>的位置来简化图像元素的描述。<span style="color: black;">每一个</span>位置<span style="color: black;">包含</span>预定义的参数,如位置、偏移量和区域,<span style="color: black;">保证</span>图像生成的准确性和细致度。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">子提示系统:所有Omost LLM都经过训练,<span style="color: black;">能够</span><span style="color: black;">供给</span>严格定义的“子提示”,这些子提示<span style="color: black;">能够</span>独立描述事物,并任意组合形成完整的提示。这种设计<span style="color: black;">加强</span>了提示词的灵活性和准确性。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">重视</span>力<span style="color: black;">操作</span>:Omost<span style="color: black;">运用</span><span style="color: black;">重视</span>力分数<span style="color: black;">调节</span>技术来<span style="color: black;">掌控</span>图像生成过程中的区域关注度,实现更精细的图像生成。<span style="color: black;">经过</span><span style="color: black;">调节</span><span style="color: black;">重视</span>力分数,Omost能够生成符合提示词描述的图像元素。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">提示前缀树:Omost引入提示前缀树技术,<span style="color: black;">经过</span>合并子提示来改进提示理解和描述。例如,<span style="color: black;">能够</span>将路径“a cat and a dog. the cat on the sofa”<span style="color: black;">做为</span>提示,从而生成相应图像。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">Omost的实现和<span style="color: black;">运用</span>:</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Omost项目基于Llama3和Phi3变体模型,用户<span style="color: black;">能够</span><span style="color: black;">经过</span><span style="color: black;">供给</span>简单的提示词来生成<span style="color: black;">繁杂</span>的图像。以下是该项目的几个关键组件:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">位置和偏移量:将图像划分为9个位置,<span style="color: black;">每一个</span>位置进一步划分为81个偏移量,共有729个边界框,用于描述图像元素的位置。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">distance_to_viewer和HTML_web_color_name:用于<span style="color: black;">调节</span>图像元素的视觉表现,<span style="color: black;">经过</span>组合这些参数<span style="color: black;">能够</span>生成粗略的图像构图。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">重视</span>力<span style="color: black;">操作</span>:基于<span style="color: black;">重视</span>力分数操作的baseline渲染器,<span style="color: black;">经过</span><span style="color: black;">调节</span><span style="color: black;">重视</span>力分数来<span style="color: black;">掌控</span><span style="color: black;">区别</span>区域的模型关注度。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">应用和前景</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Omost技术的推出,不仅简化了提示词的编写,还<span style="color: black;">加强</span>了图像生成的精确度和灵活性。其应用场景<span style="color: black;">包含</span>但不限于AI绘画、图像设计、<span style="color: black;">宣传</span>创意、教育等<span style="color: black;">行业</span>。用户<span style="color: black;">能够</span><span style="color: black;">经过</span>简单的提示词生成<span style="color: black;">繁杂</span>的图像,为创意设计<span style="color: black;">供给</span>了强大的工具支持。<a style="color: black;"><span style="color: black;">返回<span style="color: black;">外链论坛: http://www.fok120.com</span>,查看<span style="color: black;">更加多</span></span></a></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">责任编辑:网友投稿</span></p>
感谢你的精彩评论,为我的思绪打开了新的窗口。 论坛是一个舞台,让我们在这里尽情的释放自己。
页:
[1]