0


《文末福利:黑神话悟空豪华版》借助Stable Diffusion实现人物自我控制的AI艺术突破

文章目录

引言

在这里插入图片描述

提示词:solo,red eyes,water,male focus,1boy,standing,furry male,colored sclera,outdoors,looking at viewer,furry,reflection,

《黑神话:悟空》在线人数和销量创新高: 游戏上线后,Steam平台的在线人数在短短一小时内突破百万,并在一天内达到了200万的里程碑,这标志着国产游戏首次实现了这样的成就。首日总销量预计超过450万套,首日总销售额超过15亿元,预计在Steam平台上实现超过1200万份的销售佳绩
在这里插入图片描述

今天的主要内容将聚焦于利用Stable Diffusion技术,将游戏中备受瞩目的角色引入,实现更加精细化的操控与呈现。

人物生成

操作过程

首先我们打开好易智算平台,我们选择Stable Diffusion,打开之后
在这里插入图片描述
点击立即创建
在这里插入图片描述
选择Stable Diffusion
在这里插入图片描述
在输入好提示词以及迭代器之后

a woman Sitting cross-legged on a giant spider,spraying webs from his hands,in anime style appearance,wearing a black Hanfu,with a high forehead and a red mark between the eyebrows,Beautiful legs. has a clear face,surrounded by a white halo,perfect composition,clear face of the character,Osmanthus flowers are floating in the airclear outline light,edges light,fantasy,spotlight,8k,<lora:20240824-1724503823069:1>,

sketches,(worst quality:2),(low quality:2),(normal quality:2),lowers,normal quality,((monochrome)),((grayscale)),skin spots,acnes,skin blemishes,bad anatomy,DeepNegative,(fat:1.2),facing away,looking away,tilted head,bad anatomy,bad hands,text,error,missing fingers,extra digit,fewer digits,cropped,worst quality,low quality,normal quality,jpeg artifacts,signature,watermark,username,blurry,bad feet,cropped,poorly drawn hands,poorly drawn face,mutation,deformed,worst quality,low quality,normal quality,jpeg artifacts,signature,watermark,extra fingers,fewer digits,extra limbs,extra arms,extra legs,malformed limbs,fused fingers,too many fingers,long neck,cross-eyed,mutated hands,bad body,bad proportions,gross proportions,text,error,missing fingers,missing arms,missing legs,extra digit,extra arms,extra leg,extra foot,

在这里插入图片描述
生成图像后,我们可以根据需要对图像进行进一步的调整。利用ReActor插件,我们可以对角色的动作和表情进行微调,以达到更加细腻和符合预期的效果。此外,我们还可以通过SDXL Styles和After Detailer插件来进一步优化图像的风格和细节。

图像调整步骤

  • 初步审查:在图像生成后,首先进行初步审查,确定哪些部分需要调整。
  • 使用ReActor插件:详细说明如何使用ReActor插件来调整人物的动作和表情,包括如何选择不同的姿态和表情预设。
  • 风格和细节优化:使用SDXL Styles和After Detailer插件进行风格和细节优化的具体步骤。
  • 迭代和改进:如果图像仍未达到预期效果,可以说明如何进行迭代,即修改提示词后再次生成图像。

点击生成:

在这里插入图片描述

二郎神

以及黑神话中的二郎神:

A serious young man,long black hair,white Hanfu,crown,Chinese costume,hair accessories,weapons emit white light,lightning gathers on weapons,fairyland atmosphere,HD CGI rendering,rich details,complex special effects,<lora:20240824-1724497696062:0.6>,

ng_deepnegative_v1_75t,(badhandv4:1.2),EasyNegative,(worst quality:2),

在同样的配置之后,我们就可以得到这样的效果:
在这里插入图片描述
此外,我们还可以对人物进行其他操作:
例如——换脸
在这里插入图片描述
只需要打开插件——ReActor
在这里插入图片描述
在这里插入图片描述
当然我们也可以通过图生图,局部重绘等操作进行控制,在之前的系列已经有了明确的讲解,就不多介绍了

我们也可以对黑神话中的悟空进行绘画:‘

孙悟空

{"last_node_id":87,"last_link_id":162,"nodes":[{"id":65,"type":"Anything Everywhere","pos":[-360,342],"size":{"0":144,"1":27},"flags":{"collapsed":true},"order":5,"mode":0,"inputs":[{"name":"VAE","type":"*","link":105,"label":"输入","color_on":"#FF6E6E"}],"properties":{"Node name for S&R":"Anything Everywhere","group_restricted":0,"color_restricted":0},"widgets_values":[]},{"id":70,"type":"SDXLEmptyLatentSizePicker+","pos":[-360,432],"size":{"0":423,"1":171},"flags":{},"order":0,"mode":0,"outputs":[{"name":"LATENT","type":"LATENT","links":[153],"slot_index":0,"shape":3,"label":"Latent"},{"name":"width","type":"INT","links":[122],"slot_index":1,"shape":3,"label":"宽度"},{"name":"height","type":"INT","links":[123],"slot_index":2,"shape":3,"label":"高度"}],"properties":{"Node name for S&R":"SDXLEmptyLatentSizePicker+"},"widgets_values":["960x1024 (0.94)",1,680,1024]},{"id":59,"type":"CLIPTextEncode","pos":[-360,162],"size":{"0":252,"1":99},"flags":{"collapsed":false},"order":3,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":99,"label":"CLIP"}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[152,159],"slot_index":0,"shape":3,"label":"条件"}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["NSFW, cleavage",true],"color":"#232","bgcolor":"#353"},{"id":46,"type":"UpscaleModelLoader","pos":[-324,1017],"size":{"0":390,"1":90},"flags":{},"order":1,"mode":0,"outputs":[{"name":"UPSCALE_MODEL","type":"UPSCALE_MODEL","links":[75],"shape":3,"label":"放大模型"}],"properties":{"Node name for S&R":"UpscaleModelLoader"},"widgets_values":["4x_NMKD-Siax_200k.pth"]},{"id":80,"type":"PreviewImage","pos":[522,1017],"size":{"0":480,"1":760},"flags":{},"order":12,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":132,"label":"图像"}],"properties":{"Node name for S&R":"PreviewImage"}},{"id":54,"type":"Image Comparer (rgthree)","pos":{"0":1179,"1":108,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"size":{"0":1150,"1":1810},"flags":{},"order":11,"mode":0,"inputs":[{"name":"image_a","type":"IMAGE","link":88,"dir":3,"label":"图像_A"},{"name":"image_b","type":"IMAGE","link":89,"dir":3,"label":"图像_B"}],"outputs":[],"properties":{"comparer_mode":"Slide"},"widgets_values":[[{"name":"A","selected":true,"url":"/api/view?filename=rgthree.compare._temp_hojyf_00072_.png&type=temp&subfolder=&rand=0.17417015452068374"}]]},{"id":8,"type":"VAEDecode","pos":[-360,675],"size":{"0":225,"1":54},"flags":{},"order":8,"mode":0,"inputs":[{"name":"samples","type":"LATENT","link":154,"label":"Latent"},{"name":"vae","type":"VAE","link":null,"label":"VAE"}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[70,88,131],"slot_index":0,"label":"图像"}],"properties":{"Node name for S&R":"VAEDecode"}},{"id":30,"type":"CheckpointLoaderSimple","pos":[-830,230],"size":{"0":432,"1":108},"flags":{},"order":2,"mode":0,"outputs":[{"name":"MODEL","type":"MODEL","links":[145],"slot_index":0,"shape":3,"label":"模型"},{"name":"CLIP","type":"CLIP","links":[99,146],"slot_index":1,"shape":3,"label":"CLIP"},{"name":"VAE","type":"VAE","links":[105],"slot_index":2,"shape":3,"label":"VAE"}],"properties":{"Node name for S&R":"CheckpointLoaderSimple"},"widgets_values":["Flux.1\\FLUX.1-schnell-dev-merged-fp8-4step.safetensors"]},{"id":78,"type":"PreviewImage","pos":[576,108],"size":{"0":459,"1":630},"flags":{},"order":10,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":131,"label":"图像"}],"properties":{"Node name for S&R":"PreviewImage"}},{"id":82,"type":"LoraLoader","pos":[-837,396],"size":{"0":315,"1":126},"flags":{},"order":4,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":145,"label":"模型"},{"name":"clip","type":"CLIP","link":146,"label":"CLIP"}],"outputs":[{"name":"MODEL","type":"MODEL","links":[155,158],"slot_index":0,"shape":3,"label":"模型"},{"name":"CLIP","type":"CLIP","links":[147],"slot_index":1,"shape":3,"label":"CLIP"}],"properties":{"Node name for S&R":"LoraLoader"},"widgets_values":["temp\\BlackMyth-000027.safetensors",0.6900000000000001,1]},{"id":45,"type":"UltimateSDUpscale","pos":[99,1026],"size":{"0":387,"1":819},"flags":{},"order":9,"mode":0,"inputs":[{"name":"image","type":"IMAGE","link":70,"label":"图像"},{"name":"model","type":"MODEL","link":158,"label":"模型"},{"name":"positive","type":"CONDITIONING","link":160,"label":"正面条件"},{"name":"negative","type":"CONDITIONING","link":159,"label":"负面条件"},{"name":"vae","type":"VAE","link":null,"label":"VAE"},{"name":"upscale_model","type":"UPSCALE_MODEL","link":75,"slot_index":5,"label":"放大模型"},{"name":"tile_height","type":"INT","link":123,"widget":{"name":"tile_height"},"label":"分块高度"},{"name":"tile_width","type":"INT","link":122,"widget":{"name":"tile_width"},"label":"分块宽度"}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[89,132],"slot_index":0,"shape":3,"label":"图像"}],"properties":{"Node name for S&R":"UltimateSDUpscale"},"widgets_values":[2,448688069061812,"randomize",9,1,"euler","simple",0.3,"Linear",1024,1024,6,64,"None",1,64,8,16,true,false]},{"id":6,"type":"CLIPTextEncode","pos":[-837,594],"size":[441,306],"flags":{},"order":6,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":147,"label":"CLIP"}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[156,160],"slot_index":0,"label":"条件"}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["black myth, \nlow angle shot of wukong standing on a cliff, Raise a large staff, Combat posture, surrounded by the misty landscape of mountains, the clouds sky is grey, providing contrast to the giant in the distance, the colors are mostly earth tones, with the exception of the blue sky and greenery in the background, the composition is balanced with the man centrally positioned on the cliff, surrounded by the rocky landscape below him, the lighting appears to be natural, with shadows cast by the mountains and rocks around the scene",true],"color":"#232","bgcolor":"#353"},{"id":83,"type":"KSampler","pos":[207,108],"size":[324,630],"flags":{},"order":7,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":155,"label":"模型"},{"name":"positive","type":"CONDITIONING","link":156,"label":"正面条件"},{"name":"negative","type":"CONDITIONING","link":152,"label":"负面条件"},{"name":"latent_image","type":"LATENT","link":153,"label":"Latent"}],"outputs":[{"name":"LATENT","type":"LATENT","links":[154],"shape":3,"label":"Latent"}],"properties":{"Node name for S&R":"KSampler"},"widgets_values":[20,"fixed",9,1,"euler","normal",1]}],"links":[[70,8,0,45,0,"IMAGE"],[75,46,0,45,5,"UPSCALE_MODEL"],[88,8,0,54,0,"IMAGE"],[89,45,0,54,1,"IMAGE"],[99,30,1,59,0,"CLIP"],[105,30,2,65,0,"VAE"],[122,70,1,45,7,"INT"],[123,70,2,45,6,"INT"],[131,8,0,78,0,"IMAGE"],[132,45,0,80,0,"IMAGE"],[145,30,0,82,0,"MODEL"],[146,30,1,82,1,"CLIP"],[147,82,1,6,0,"CLIP"],[152,59,0,83,2,"CONDITIONING"],[153,70,0,83,3,"LATENT"],[154,83,0,8,0,"LATENT"],[155,82,0,83,0,"MODEL"],[156,6,0,83,1,"CONDITIONING"],[158,82,0,45,1,"MODEL"],[159,59,0,45,3,"CONDITIONING"],[160,6,0,45,2,"CONDITIONING"],[161,30,2,8,1,"VAE"],[162,30,2,45,4,"VAE"]],"groups":[{"title":"第四步:放大","bounding":[-360,918,1395,990],"color":"#A88","font_size":24,"locked":false}],"config":{},"extra":{"ds":{"scale":0.9646149645000115,"offset":[226.50769102689185,-913.1746990942536]}},"version":0.4,"widget_idx_map":{"45":{"seed":1,"sampler_name":5,"scheduler":6},"83":{"seed":0,"sampler_name":4,"scheduler":5}},"seed_widgets":{"45":1,"83":0}}

在这里插入图片描述
以及:
prompt:

Sun Wukong was wearing traditional Chinese armor and dancing a gold-banded cudgel in his hand. realistic,cinematic,high detail,high resolution,sharp focus,full body shot,

ng_deepnegative_v1_75t,(badhandv4:1.2),EasyNegative,(worst quality:2),

在这里插入代码片

八戒

bajie,Ink and wash,solo,animal,no humans,red eyes,navel,furry,robe,male focus,sky,solo,closed eyes,outdoors,cloud,sitting,smile,day,open mouth,grass,blue sky,facing viewer,

EasyNegative,(((pubic))),((((pubic_hair)))),sketch,duplicate,ugly,huge eyes,text,logo,monochrome,worst face,(bad and mutated hands:1.3),(worst quality:2),(low quality:2),(blur:2),geometry,(bad hands),(missing, bs fingers),multiple limlimit,bad anatomy,(interlocked fingers:1.2),Ugly Fingers,(extra digits and hands and fingers and legs and arms:1.4),crown braid,((2girl)),(deformed fingers:1.2),(long fingers:1.2),succubus wings,horn,succubus shorn,two taps,succubus hairstyle,two bags,identical head,Bags under the eyes,

在这里插入图片描述

场景渲染

除此之外,我们还可以使用Stable Diffusion,进行场景输出:
例如:

cinematic photo misty mountain range, foggy landscape, pine trees, mysterious atmosphere, dense fog, shadowy cliffs, majestic peaks, nature scenery, muted colors, ethereal light, early morning, atmospheric perspective, tranquil scene, natural park, serene environment. . 35mm photograph, film, bokeh, professional, 4k, highly detailed

drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly, dirt,bad color matching,graying,wrong perspective,distorted person,Twisted Car,NSFW,(worst quality:2),(low quality:2),(normal quality:2),lowres,blurry,signature,drawing,sketch,text,word,logo,cropped,out of frame,

在这里插入图片描述

cinematic photo burning pagoda,night scene,fire,intense flames,ancient architecture,trees,smoke,dramatic lighting,dark sky,eerie atmosphere,shadow effects,historical setting,destruction,landscape chaos,Japanese style elements,cultural structure,fiery ambiance,nature interaction,crisis scene, . 35mm photograph, film, bokeh, professional, 4k, highly detailed

drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly, dirt,bad color matching,graying,wrong perspective,distorted person,Twisted Car,NSFW,(worst quality:2),(low quality:2),(normal quality:2),lowres,blurry,signature,drawing,sketch,text,word,logo,cropped,out of frame,

在这里插入图片描述

技术原理:

Stable Diffusion技术的工作原理

  1. 数据收集与预处理:Stable Diffusion技术首先需要一个庞大的数据集,这些数据集包含了多种风格的图像,从现实世界的照片到艺术作品,不一而足。这些图像在输入神经网络之前需要经过预处理,包括调整大小、裁剪、色彩校正等步骤,以确保图像数据的质量和多样性。
  2. 神经网络架构:神经网络是Stable Diffusion技术的核心。它由多个卷积层、全连接层和激活函数组成,这些层共同工作,逐步提取图像的底层特征和高级语义信息。这种架构使得神经网络能够捕捉到图像的复杂细节和结构,从而生成逼真的图像。
  3. 训练与优化:在神经网络的训练过程中,通过迭代地调整网络的权重,使其能够更好地拟合训练数据。这个过程涉及到损失函数的计算,以衡量生成的图像与真实图像之间的差异。通过不断优化,网络能够生成越来越逼真的图像,直到达到满意的效果。
  4. 扩散过程:生成图像时,Stable Diffusion使用一个被称为扩散过程的算法。这个算法从一个随机噪声开始,逐渐将噪声转化为具有详细特征的图像。这个过程是通过一系列的迭代步骤来实现的,每个步骤都会添加一些额外的细节,直到生成最终的结果。这种扩散过程使得生成图像的过程更加可控和灵活。
  5. 控制与调节:通过调整训练参数、优化损失函数和调整扩散过程中的迭代次数,可以控制生成图像的风格、细节和质量。这种控制能力使得Stable Diffusion技术能够灵活地适应不同的创作需求,无论是追求现实主义还是艺术风格,都能够得到满足。
  6. 实时生成:随着技术的成熟,Stable Diffusion技术已经能够实现实时生成图像。这对于游戏开发和设计来说尤为重要,因为它允许设计师在短时间内创建出多样化的角色和场景,大大提高了创作效率。这种实时生成的能力使得设计师能够更加灵活地进行创意实验和设计迭代,从而创造出更加丰富和有趣的游戏体验。

在这里插入图片描述

好易智算平台

好易智算平台无疑是现代技术革新的一个重要里程碑,它以其卓越的便捷性和高效性,为用户提供了前所未有的AI应用体验。该平台以用户为中心的设计理念,让即使是技术新手也能迅速上手,启动各类AI应用,充分体现了“应用即达,AI轻启”的服务宗旨。
平台的界面直观友好,操作简便,用户只需轻点几下,就能迅速找到并启动所需的AI应用程序。这种易用性不仅节省了用户的时间,也极大地降低了技术门槛,使得更多人能够享受到AI技术带来的便利。
更值得一提的是,好易智算平台不仅提供了一系列成熟的AI应用,而且还在不断更新和扩展其功能,以满足用户不断变化的需求。这种持续的创新和优化,确保了用户始终能够接触到最前沿的AI技术。
平台的集成度高,用户无需担心技术细节,只需专注于自己的创意和需求,即可轻松实现从概念到成果的转变。这种高效的集成,使得获取和使用前沿AI技术变得异常便捷和迅速,极大地提升了工作效率和生产力。
在这里插入图片描述
我们可以直接启动,内置丰富的插件,模型,大大降低了新人的门槛,能够更快地使用AI进行制图
最后,好易智算推出了一个免费活动:欢迎大家参与,即可获得黑神话悟空豪华版
在这里插入图片描述

标签: stable diffusion

本文转载自: https://blog.csdn.net/Why_does_it_work/article/details/141600733
版权归原作者 雪碧有白泡泡 所有, 如有侵权,请联系我们删除。

“《文末福利:黑神话悟空豪华版》借助Stable Diffusion实现人物自我控制的AI艺术突破”的评论:

还没有评论