NovelAI本地部署webui版CPU启动
1.之前查了一下别人的方案,太麻烦了,需要注释掉GPU,才能启动,而且每次软件更新,都要来一遍。
链接https://www.bilibili.com/video/BV1d14y1L7kC/
链接https://github.com/1EM0NS/Stable-Diffusion-cpu-method
2.于是自己鼓捣了几天,发现了这个精简方案(应该是全网首个)
直接修改启动项(原版修改webui-user.bat,整合包修改你的启动.bat),不用修改其它
set CUDA_VISIBLE_DEVICES=1
(0-9,数字是切换的显卡,目的是屏蔽GPU显卡,无GPU显卡可忽略)
(此项多显卡用户,也可以根据自身需要设置切换不同GPU显卡运行)
set COMMANDLINE_ARGS=--precision full --no-half --use-cpu all sd interrogate gfpgan bsrgan esrgan scunet codeformer
(此命令即为调用CPU运行参数)
3.数据测试
正面tag:
((masterpiece)), (((best quality))),((ultra-detailed)), ((illustration)), ((disheveled hair)),flame,fireflower,{{ruin}},{{blood on face}},{{1girl}},dark background,red moon,floatinghair,white hair,red eyes,colorful,{{looking_at_viewer}},beautiful detailedeyes,{{{{{blood on hair}}}}},cute face,messy_hair,extremelydetailed CG unity 8k wallpaper,blood
负面tag:
longbody, lowres, bad anatomy, bad hands,missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality,low quality,bad neck,long neck,blood on mouth,blood on eyes
Steps27 CFG11 采样Euler a
GPU
MX350 2G显存 20G内存
参数--lowvram --always-batch-cond-uncond --opt-split-attention --force-enable-xformers --precision full --no-half --deepdanbooru
WEBUI
512X512 2分10秒

704X704 3分40秒

960X960 7分40秒

CPU
11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz 20G内存 99节能模式
参数 --precision full --no-half --use-cpu all sd interrogate gfpgan bsrgan esrgan scunet codeformer --deepdanbooru
256X256 2分10秒

384X384 5分钟

512X512 11分钟

640X640 大概半个小时
忘记截图了
4.其它(福利)
Webui仿naifu化设置
4.1更换相同模型,名字改为原模型名字
4.2界面设置中Stop At last layers of CLIP model(在CLIP模型的最后几层停止)设置为2,文字生图或图生图中seed种子设置为31337
4.3生图的操作一致(Steps步数,CFG强度,采样方式,分辨率等)
4.4Tags标签
正:masterpiece, best quality
反:lowres, 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
PS:此模式应该也适用于A卡用户CPU硬跑,没测试,不知道
CPU厉害的,应该能有和4G以下显存的GPU用户一样的体验
画面实时同步不要轻易打开,不然很容易爆显存
