最近ChatGPT非常火,以对话的形式回答你的大部分问题,大家用它写脚本、稿件,修改代码等等。用的我心惊胆战,一不小心那天就会失业。自己也偷偷问了些自己难搞的问题。 是一种机器学习模型,它经过训练可以逐步对随机高斯噪声进行去噪以获得感兴趣的样本,例如生成图像。扩散模型有一个主要的缺点就是去噪过程的时间和内存消耗都非常昂贵。这会使进程变慢,并消耗大量内存。主要原因是它们在像素空间中运行,特别是在生成高分辨率图像时。 其实人工智能AI画图现在也很厉害,这几天看到stablediffusionAI画图非常厉害,水平相当高。先看几张图。 这东西这么厉害,自己应该拿来试试,研究几天,我的电脑可以安装。安装过程比较复杂,安装加调试用了一天多时间。 StableDiffusion是基于python开发的,有人开发了用户界面,就是StableDiffusionwebUI版。安装过程按这个软件包跑代码就可以。官方给的教程只有下面这些:InstallPython3。10。6,checkingAddPythontoPATHInstallgit。Downloadthestablediffusionwebuirepository,forexamplebyrunninggitclonehttps:github。comAUTOMATIC1111stablediffusionwebui。git。Runwebuiuser。batfromWindowsExplorerasnormal,nonadministrator,user。 关于安装,最好机器有显卡,而且是N卡,AMD的显卡也可以,比较麻烦。安装需要python3。10。6,安装过程经常出错,可能是网络环境因素。安装过程中会安装六七个调用的python库,那几个库可以单独安装,检测通过就可以跳过。 涉及的包有这些,这些都可以看说明自己安装,再最后打开安装。StableDiffusionhttps:github。comCompVisstablediffusion,https:github。comCompVistamingtransformerskdiffusionhttps:github。comcrowsonkbkdiffusion。gitGFPGANhttps:github。comTencentARCGFPGAN。gitCodeFormerhttps:github。comsczhouCodeFormerESRGANhttps:github。comxinntaoESRGANSwinIRhttps:github。comJingyunLiangSwinIRSwin2SRhttps:github。commvlabswin2srLDSRhttps:github。comHafiidzlatentdiffusionMiDaShttps:github。comislorgMiDaSIdeasforoptimizationshttps:github。combasujindalstablediffusionCrossAttentionlayeroptimizationDoggettxhttps:github。comDoggettxstablediffusion,originalideaforpromptediting。CrossAttentionlayeroptimizationInvokeAI,lsteinhttps:github。cominvokeaiInvokeAI(originallyhttp:github。comlsteinstablediffusion)SubquadraticCrossAttentionlayeroptimizationAlexBirch(https:github。comBirchsandiffuserspull1),AminRezaei(https:github。comAminRezaei0x443memoryefficientattention)TextualInversionRinonGalhttps:github。comrinongaltextualinversion(werenotusinghiscode,butweareusinghisideas)。IdeaforSDupscalehttps:github。comjquesnelletxt2imghdNoisegenerationforoutpaintingmk2https:github。comparlancezzgdiffuserbotCLIPinterrogatorideaandborrowingsomecodehttps:github。compharmapsychoticclipinterrogatorIdeaforComposableDiffusionhttps:github。comenergybasedmodelCompositionalVisualGenerationwithComposableDiffusionModelsPyTorchxformershttps:github。comfacebookresearchxformersDeepDanbooruinterrogatorforanimediffusershttps:github。comKichangKimDeepDanbooruSamplinginfloat32precisionfromafloat16UNetmaruninefortheidea,BirchsanfortheexampleDiffusersimplementation(https:github。comBirchsandiffusersplaytree92feee6)Instructpix2pixTimBrooks(star),AleksanderHolynski(star),AlexeiA。Efros(nostar)https:github。comtimothybrooksinstructpix2pixSecurityadviceRyotaKInitialGradioscriptpostedon4chanbyanAnonymoususer。ThankyouAnonymoususer。 安装好,有一个网页页面可以开始画图。输入prompt,就可以绘图。 先生成几张公众号封面。