style2paints测评——简单实用的人工智能上色
额……朋友们好啊,我是图吧老AI人,垃圾王。今天简单给各位介绍一下一款本地可用的AI上色软件,style2paints(需要N卡才能运行GPU模式)
其实人工智能上色咱以前已经玩过了,在垃圾佬还在用X60的时代就已经有在线网站提供这类服务了,只不过当时咱没想到自己家也能搞这个,当时咱家里最好的显卡好像是AMD 8750M吧,GCN一代,我爸倒是有GTX750没有TI但是咱不敢用。当年咱就是用这种方法给PIXIV上的小本子上色的,当时作者好像还挺高兴接受了作品响应,我记得很清楚是金刚光和太平的,共8P,咱上色光是操作就弄了两三小时,现在原作已经没了,不过咱的上色版倒是还在。在线上色当时和现在都有好几家呢,都是机器训练神经网络加持下的不同引擎提供的同一定位的产品,而这次我们给各位展示的就是简单易上手本地离线可用的这个项目,非常适合咱这种网络环境欠佳但是手上有还不错的算力的环境使用。
有时间,没网,很多事不好办,这篇文章很多图片直接上传是不行的,还得经过ACFUN,我都不知道我的图贴会不会被ACFUN夹。
之所以想起这个还是因为咱之前有个别的文章提到了章鱼大佬汉化的《罪与罚》,然后搜集素材的适合直接看到了大佬当年汉化后记的时候测试的这个效果,当时大佬甚至还直接把软件名都贴图上了。所以想起咱自己还有一份自购图源还没做虽然大佬已经完成汉化了但是咱有自购图源理论上就可以做,为了不撞车简单的进行重复劳动所以咱觉得至少先上色,然后再考虑用点别的操作(比如WAIFU2X放大、手工嵌字之类的),让咱的图源做的有价值些。
项目地址:
style2paints
/lllyasviel/style2paints/
在线地址:链接
这里我们简单的用项目介绍页提供的QQ群渠道下载软件本体,这是我们可用的里面最快的了。也许有空应该和群主安利一下超星网盘,这东西简直太好用了,隔壁Waifu2x-Extension-GUI可早用上超星网盘和各种不限速网盘花式放源了。
一开始软件会问你用的是什么显卡,这里只支持N卡,虽然不需要手动安装CUDA和CUDNN,但是还是会需要N卡,因为它仍然基于CUDA,我这里是GTX670 2G所以选的第一个,从PERFORMANCE来看这里GTX680和670不在一个档位上
这个界面一开始我没截,但是后来再启动还会再问,所以即使换显卡了也没问题?
这里我们发现软件好像有一阵子没更新了,现在最新的3090-3060乃至以后可能出现的各种TI SUPER ULTRA都有了,然而这个软件却好像仍然像是没预备的样子,哪怕做个选项9:future也行啊,这么看这个软件是从开普勒架构开始支持到图灵了,对于垃圾佬来说足够了,垃圾佬直到现在也不过是最新有一个GTX960而已,开普勒2架构,家里还有750没有TI和后来换的670两张,之前玩过的最好的卡是GTS450——之前一年都是在50包邮以下的价位卡,什么9800GT 9600GSO GT240 GTS250之类的,如今看来除了能打GTA5以外没啥价值,不支持视频编码,没有新版本的CUDA,对于现代世界所需的显卡特性可以说是一无所有,而GTX670就不一样,好歹这类需要人工智能AI的软件或多或少就可以支持了,虽然理论上GTX590好像科学运算性能也不弱的样子,但是很遗憾不支持就是不支持,没什么好说的。
软件倒是把GTX680和1663 1050 860 960 760 770 780归为一类了,好像并不太严谨嗷,要知道760是670基础上从680砍两个核心之后再极限超频的产品,相比670只砍一个核心还有7个可是又少了一个,怎么看670都比760好用,当年售价都是200的时候朋友们都建议咱买670,很多超公版魔改的就是直接装大散热拉高频率当680用的,和680散热之类的全一个规格,连板子都是一个板型。
总之这个软件确实就像项目页面说的一样,不需要安装什么CUDA CUDNN PYTHON,直接双击打开就能用,所以这个软件咱是最满意的了,要知道Waifu2x-Extension-GUI咱现在都不知道怎么弄能把这个CUDA和CUDNN调动起来,现在还是在用vulkan,比waifu2x converter快很多效率也高,咱已经满足了,但是咱还是想有空去求教作者,到底怎么才能调动CUDA模式。而这个软件是没有这个问题的我必须给十二个好评
然后就能看到界面了,本地界面其实还是感觉挺简单的,相比PS和之前玩的在线版来说
这里可以看到软件本身还提供了教程(ac21646573),不过很遗憾,并没有看见什么外语版教程,外文教程图片全崩了,看来完全面向为汉语用户的
然而它并不支持拖动输入
手动右键返回打开图片吧
在双击打开图片之前咱果然还是把图片先拖到WAIFU2X放大了4X爽一爽
好不容易有了可携带的强力的显卡算力(把30多CM长的GTX670装进30CM的MATX机箱可是费了咱不少功夫)不搞一下可惜了,这卡单论性能不考虑功耗可是比960厉害,和1050TI相当
所以直接对同一张图跑两套AI,双倍快乐
打开之后,软件会要求你裁剪图片,选定范围要尽可能小,图片留白比例低,这样软件才能准确识别
软件界面其实还是有点简单
左边手动选风格,右边可以选人工干预颜色,然后打开图片保存图片都能实现,抓手工具和橡皮以及最近使用颜色切换在下面,右上角还有进度存取可以保存读取进度,而且本软件还有自动保存只不过咱不知道怎么用,有进阶教程可以提供
还有这个软件是可以全自动的,效果比我想象中的还要好,各位可以看一眼结果:
一次渲染就能出好多种结果各异的图,是不是很棒啊,咱简单挑选了其中几个效果挺好的图给各位看看效果。
而且还有很多种色调风格可以选,显然的是根据不同的训练模型实现的不同色调的上色方案
这里我们简单的用人工干预的方式在图上定义关键点
方法很简单,用按住ALT的方法使用短管工具,然后在鼠标左键就可以放置该颜色下的关键点了,选色也可以通过色板和色盘。
开始渲染(上色)
看得出来GPU跑的并不多,也就是说其实我们一开始选择模式的时候可以再激进一点,至少选个GTX680,咱这张卡是超公版的,超频之后吊锤680,所以那么选也没毛病
然后简单的看一眼结果
发现结果有一对数字组成的坐标,这就是所有人工干预点的位置,这个软件是可以分享干预点的参数的,也就是支持进度修改与分享
效果不错
软件能无视摩尔纹,这是让咱最满意的,因为咱的自购图源有扫描问题,虽然当时已经尽可能拜托图源大佬扫图开最高扫描画质,但是最后还是出现了各种各样的扫描问题。
这里我们简单的对照一下作者上色,发现不太对劲,瞳色不对,发色也不太合适,这里优先照顾瞳色,因为这个作者的所有作品都是一个画风,脸盲不看瞳色发饰根本看不出来画的是谁
这里我们简单换一个上色的逻辑,选择绿色
好多了
这里最后一张直接图片的风格都变了,不过咱害感觉挺不错,就存下来放出来了
额……又看了一眼,衣服的颜色不对,换
这回看着好多了
如果能有机会精细修改的话,我建议各位是精修一下的
这样最后效果会很好
进度:
[[0.4781523951748037,0.6253667367596423,249,249,249],[0.5244746787796369,0.6203825263528534,249,249,249],[0.5566429312829936,0.6125501957136141,249,249,249],[0.4820125854752064,0.6410313980381208,249,249,249],[0.7882543493071608,0.5797968130404317,249,249,249],[0.7625197473044754,0.7186426743724009,249,249,249],[0.46078913393575205,0.8379609180285765,173,255,47],[0.6177634100895393,0.8396981961564499,173,255,47],[0.6613958914907315,0.7943197837847799,253,240,182],[0.5411066701698029,0.7931114988942858,253,240,182],[0.5149107593772219,0.8229416830042895,253,240,182],[0.5777219028045947,0.8192830069213172,253,240,182],[0.5512751055720166,0.7580001825315333,253,240,182],[0.440529142160596,0.8732484791451566,253,240,182],[0.5876394517668114,0.8860538454355592,253,240,182],[0.48853786631476337,0.5664061913245585,253,240,182],[0.5164575710525338,0.5545916703057813,253,240,182],[0.46882983944104284,0.5009719210667156,253,240,182],[0.4803261884507132,0.5336890561956371,253,240,182],[0.4934648730331934,0.4764340697200246,253,240,182],[0.4491218125673226,0.4464433625185133,253,240,182],[0.4737568461594729,0.4264495577175058,253,240,182],[0.44583714142170244,0.3991852784434046,253,240,182],[0.4441948058488922,0.3755562364058503,253,240,182],[0.46882983944104284,0.3428391012769289,253,240,182],[0.5115305643341037,0.3364774361129719,253,240,182],[0.5410926046446844,0.3464743385134757,253,240,182],[0.5049612220428634,0.3664681433144832,253,240,182],[0.8416400144689206,0.40736456222563494,253,240,182],[0.8219319875952,0.4346288414997362,253,240,182],[0.8022239607214797,0.4764340697200246,253,240,182],[0.774304255983709,0.5173304886311764,253,240,182],[0.774304255983709,0.5500476237600977,253,240,182],[0.7463845512459386,0.5600445261606015,253,240,182],[0.4343407924120321,0.1329041508663498,253,240,182],[0.4934648730331934,0.1301777229389397,253,240,182],[0.4212089508944386,0.0693001215782962,253,240,182],[0.49018704495245996,0.07584354860408048,253,240,182],[0.4566833992671354,0.0943832585104693,253,240,182],[0.46062500464187955,0.043126413475159074,253,240,182],[0.6616468787538275,0.03876412879130289,253,240,182],[0.734566578186593,0.035492415278410724,253,240,182],[0.7089461432507564,0.08347754680082878,253,240,182],[0.7247125647497328,0.1271003936393907,253,240,182],[0.6852965110022922,0.12819096481035472,253,240,182],[0.7404789862487091,0.0027752801494893235,249,249,249],[0.4724498207661117,0.001684708978525277,249,249,249],[0.42909216164392694,0.0027752801494893235,249,249,249],[0.5316817271280533,0.6696125251070373,249,249,249],[0.4835655986671296,0.6808233592870422,249,249,249],[0.5114223046181907,0.7046463819195529,249,249,249],[0.4683710317847328,0.7123538304183062,249,249,249],[0.4367156841130725,0.6976396105570497,249,249,249],[0.4677024574169015,0.6882653077547995,249,249,249],[0.6630989689249528,0.20962616699175557,25,25,112],[0.5034325450175138,0.2481633946607003,25,25,112],[0.1518266966255997,0.30925899950171026,25,25,112],[0.11615653809308664,0.23406440892815955,25,25,112],[0.19089401311359022,0.22372515272429636,25,25,112],[0.10766364320439317,0.26226238039324107,25,25,112],[0.2622343301786162,0.1964671136413842,25,25,112],[0.2707272250673098,0.2951600137691695,25,25,112],[0.29790448871112923,0.37599419863573647,25,25,112],[0.3658476478206778,0.4201710205976975,25,25,112],[0.2894115938224356,0.42393075012637504,25,25,112],[0.591758651859927,0.4596481806488116,25,25,112],[0.5951558098154043,0.5320229740758541,25,25,112],[0.6698932848359078,0.55364141886575,25,25,112],[0.7055634433684209,0.5846591874773396,25,25,112],[0.608744441637314,0.5893588493881865,25,25,112],[0.710659180301637,0.5179239883433134,25,25,112],[0.7446307598564111,0.4709273692348442,25,25,112],[0.6478117581253046,0.46434784255965855,25,25,112],[0.7089606013238984,0.3844535900752609,25,25,112],[0.7463293388341501,0.40889183201166496,25,25,112],[0.7972867081663114,0.38351365769309154,25,25,112],[0.7412336019009339,0.33087744429160604,25,25,112],[0.8890099729642019,0.3064392023552021,25,25,112],[0.900900025808373,0.3271177147629285,25,25,112],[0.900900025808373,0.28670062232964505,25,25,112],[0.8261625507878697,0.26320231277541045,25,25,112],[0.9365701843408861,0.23500434131032893,25,25,112],[0.8193682348769148,0.24346373274985342,25,25,112],[0.7055634433684209,0.2190254908134494,25,25,112],[0.7412336019009339,0.17202887170498024,25,25,112],[0.5934572308376657,0.16074968311894763,25,25,112],[0.6070458626595754,0.2538029889537166,25,25,112],[0.45077659670761344,0.25756271848239415,25,25,112],[0.5051311239952523,0.2030466403165699,25,25,112],[0.5374041245722881,0.2707217718327655,25,25,112],[0.42699649101927156,0.29328014900483074,25,25,112],[0.34886185804329073,0.24534359751419219,25,25,112],[0.39132633248675847,0.21150603175609434,25,25,112],[0.3896277535090199,0.31959825570557343,25,25,112],[0.42359933306379405,0.3412167004954693,25,25,112],[0.3998192273754521,0.4380297358589158,25,25,112],[0.335273226221381,0.36753480719621207,25,25,112],[0.2843158568892195,0.23406440892815955,25,25,112],[0.3777377006648488,0.16168961550111705,25,25,112],[0.5645813882161076,0.1391312383290518,25,25,112],[0.9688431849179217,0.242523800367684,25,25,112],[0.5937101099416202,0.8527280066205061,249,249,249],[0.5906386963006521,0.779644793737984,253,250,191],[0.5752816280958118,0.8467793730137889,253,250,191],[0.5772842694047451,0.9135949943485843,253,250,191],[0.6187566548727758,0.8214450398591735,255,230,200],[0.65244838245841,0.8365376298621512,252,252,252],[0.7503148292547758,0.5311346321548358,253,242,181],[0.7262493095507513,0.8223328392711132,253,242,181],[0.44636234870949676,0.808271415733305,253,242,181],[0.42895655313578995,0.8540221802134512,253,242,181],[0.4478128316739725,0.8363639904140966,249,249,249],[0.44830933094827913,0.8271515219397324,249,249,249],[0.449787086823492,0.8467772060192971,249,249,249]]
然后我们说这个新的一张图
拿到手是这个样子的
最后经过一顿操作变成了这样
对比效果展示
坐标分享:[[0.678653194364174,0.1375491517609654,248,222,178],[0.45678854009209374,0.1592289551171194,248,222,178],[0.10976946546140394,0.30737427805083845,248,222,178],[0.5148146804401763,0.3242363473278472,248,222,178],[0.5239168201026206,0.2242683651855814,248,222,178],[0.6479334730034245,0.3001476769321205,248,222,178],[0.5705652858726479,0.2760590065363938,211,96,96],[0.5785296580772865,0.42661319650968554,152,251,152],[0.550085471632148,0.47719940434071145,62,62,62],[0.6081116119802306,0.48442600545942954,62,62,62],[0.5819429604507032,0.4880393060187885,62,62,62],[0.2280972810731802,0.8517782289942614,232,232,232],[0.30205216583054034,0.8963422692263557,232,232,232],[0.32253198007104,0.8060097552423805,232,232,232],[0.36349160855203944,0.7216994088573372,232,232,232],[0.6877553340266184,0.785534385406013,232,232,232],[0.8880024066003936,0.6361846289525076,232,232,232],[0.931237569997004,0.7036329060605422,232,232,232],[0.9653705937311702,0.7771033507675085,232,232,232],[0.8914157089738102,0.7734900502081495,232,232,232],[0.11204500037701508,0.5627141842455412,232,232,232],[0.13935141936434803,0.6241402937546442,232,232,232],[0.2019286295436527,0.5928250222401996,232,232,232],[0.24971486277148544,0.5265811786519512,232,232,232],[0.6035605421490086,0.4543151674647712,232,232,232],[0.5694275184148422,0.3940934914754545,232,232,232],[0.5432588668853149,0.42299989595032655,232,232,232],[0.4658906797545381,0.3146008791695565,232,232,232],[0.7321282648810346,0.16404668919626475,232,232,232],[0.2792968166744295,0.20258856182942747,249,249,249],[0.2645058397229575,0.12670925008288844,249,249,249],[0.2895367237946793,0.1291181171224611,249,249,249],[0.2827101190478461,0.16043338863690576,249,249,249],[0.3134298404085957,0.6397979295118665,255,79,80],[0.37600705058790046,0.6578644323086615,255,20,147],[0.4761305868747879,0.7120639406990465,255,20,147],[0.2770212817588184,0.24113043446259014,249,249,249],[0.488646028910649,0.12430038304331577,252,217,180],[0.577391890619481,0.19054422663156415,252,217,180],[0.5591876112945924,0.20981516294814542,105,105,105],[0.6149382167270638,0.2134284635075045,105,105,105],[0.6616992455392766,0.4367519124473568,105,105,105],[0.6196438126235827,0.5386523724278918,105,105,105],[0.4598331675439461,0.5069939770941333,105,105,105],[0.34114339020409895,0.5277697990319123,105,105,105],[0.4131049087487307,0.6148303861997481,105,105,105],[0.5046922959873529,0.6375848578458869,105,105,105],[0.528990990560865,0.6029584879495886,105,105,105],[0.6037562046332096,0.655392705221126,105,105,105],[0.6785214187055543,0.6435208069709666,105,105,105],[0.7598285890092291,0.5643748186365705,105,105,105],[0.7373990247875257,0.48819680486471423,105,105,105],[0.7159040257417265,0.4238906893430174,105,105,105],[0.6794559838814587,0.35166997498788094,105,105,105],[0.4473138882083947,0.04657593058175853,249,249,249],[0.3598385877437514,0.0038370968811846343,249,249,249],[0.16470137901493181,0.568939453588773,249,249,249],[0.265634418012597,0.568939453588773,249,249,249],[0.5415180579395489,0.7719489136664991,199,21,133],[0.746748570568135,0.669850588715128,199,21,133],[0.47647232169660897,0.38848660018634984,251,216,179],[0.7927291772226271,0.22702878398418178,100,149,237],[0.8106728285999898,0.12493045903281073,100,149,237],[0.8274950017662672,0.04063998145667885,105,105,105],[0.9508576049856361,0.012147425656296252,105,105,105],[0.8947836944313775,0.15579739448322522,105,105,105],[0.8073083939667342,0.3279399191105368,105,105,105],[0.50223637423396,0.5336017099539812,240,208,169],[0.5498271288227197,0.45500039179828333,249,249,249],[0.5728712037909129,0.3386504668276997,252,221,181],[0.6029147320877891,0.2551652522097687,253,224,183],[0.5766266448280225,0.24005840385033356,253,224,183],[0.5999103792581014,0.2981005054418475,236,99,88],[0.5961549382209919,0.27583778154373256,236,99,88],[0.5653603217166938,0.2559603494918442,236,99,88],[0.543394930083833,0.4970969561855285,241,228,184],[0.6543982487867733,0.033646960648752916,135,206,235],[0.6158042702096659,0.05747924494587951,135,206,235],[0.7197936013757611,0.033646960648752916,135,206,235],[0.7658919646761952,0.017758771117335162,135,206,235],[0.49359000471549197,0.020028512478966268,135,206,235],[0.5161031588854714,0.04045618473364623,135,206,235],[0.5386163130554508,0.1573478648576483,135,206,235],[0.5364722031345004,0.18571963187803714,220,20,60],[0.646893864063447,0.0064100643091796255,220,20,60],[0.6833437327196041,0.004140322947548519,220,20,60],[0.714379730584607,0.0017380484853514399,220,20,60],[0.7042309460774042,0.8542113212164615,249,249,249],[0.7288592356075172,0.9183033982504746,249,249,249],[0.6549743670171781,0.9302527685449516,249,249,249],[0.24759259072191486,0.45158744346598595,249,249,249],[0.2750747382834034,0.4321924903692062,249,249,249],[0.3038202203923009,0.4349210594804674,249,249,249],[0.24844838858723847,0.4284081400277018,249,249,249],[0.24776478572544758,0.4124876702542748,249,249,249],[0.26143684296126546,0.4428812943671808,249,249,249],[0.5623466517612665,0.03927429173568428,254,228,179],[0.5910364168031451,0.029848869195659784,254,228,179],[0.571250371946677,0.1638993230982307,254,228,179],[0.6058759504454962,0.16913566895379986,254,228,179],[0.6563303648294897,0.18275016817827971,0,191,255],[0.6140156145460092,0.4065488158740888,249,249,249],[0.672236301787883,0.24371337285176056,105,105,105]]
如果让咱说对这个软件有什么建议,那就是:最好优化调色盘,不能只靠滴管,RGB定义颜色和YUV定义颜色最好也能支持,还有就是优化下硬件支持和软件发布模式,多用一些永久免费不限速的网盘,就这些。
现在我们对于这种漫画的上色有两种方案,一种是用彩铅笔给打印件上色,还有就是利用这套AI,咱自己是不会数字上色的。
以下是官方教程全文原文,张大妈以外的所有平台都会随本文附送
本软件完全免费,我们并未授权其他店铺销售软件拷贝,如果您在淘宝等某些店铺付费购买了软件,请立即退款并1星差评! Style2Paints V45 教程
最重要的事情!
请在导入图片后进行合理的裁剪。保证图片没有太多的留白区域。
请尽可能少的放置提示点。
请在放置提示点之前尽可能多的测试不同的颜色风格(在软件的左侧)。
如果你不是很专业的颜色艺术家,请使用取色器来获取人工智能输出的颜色,而不是用调色板自己调色。
自己试一试! Style2Paints V45 非常的简单易用!你能够在几分钟内学会! 首先你需要下载一张线稿:
*CC-BY-NC-SA-4.0 (c) Various artist of style2paints team, 2018. Refer this page for ACM/IEEE publication use. 你可以右键保存这一张图片:
然后点击这里导入:
等待五到十秒之后,你会看见界面变成类似这样:
然后,选择一个合适的配色方案:
然后,选择合适的上色模式:
这样就得到了初步的上色结果:
用鼠标滚动放大画布,然后【按住】键盘上的【Alt键】调出取色器,鼠标移动到皮肤颜色比较正确的部位,放开【Alt键】取出皮肤的颜色:
通过鼠标左键点击来在皮肤的部位增加提示点:
最后,点击这里重新上色:
保存和读取进度! 你可以通过下面两个按钮来保存和读取你的当前进度:
当你点击“保存”后,你会得到类似下面的一大串代码,这些代码是你的所有提示点。
你可以复制这些代码,然后随便你存在哪里。比如你可以桌面上新建一个记事本,然后存在记事本里面。或者word也可以。你甚至可以QQ或者微信把这个代码发送给别人。 当你点击上传的时候,你可以粘贴这些代码,就像这样。然后你就可以把你的提示点全部恢复到你保存的时候的状态了!