最新文章:NovelAI 优化版官端部署教程

零.前言

最近NovelAI模型泄露的事可谓是闹得沸沸扬扬,一眨眼我小破站的首页推荐全都是这玩意,但我逛了一圈,却没有找到一个系统的NovelAI部署以及后续使用的教程,便打算写一篇来充充博客门面

一.准备工作

1.Python 3.x (必须)

直接去Python官网下载最新的版本3.x版本即可 别忘了把PIP源改成清华

pip config set global.index-url
https://pypi.tuna.tsinghua.edu.cn/simple

2.NovelAI.leak.Part1 (novelaileak)(必须) (约52.06GiB)

该包中包含了NovelAI的生产模型(大概是10月6日的?),必须下载 这里仅提供磁链(我自己加了好多tracker),网盘分流你可以自己找

magnet:?xt=urn:btih:5bde442da86265b670a3e5ea3163afad2c6f8ecc&dn=novelaileak&tr=http%3a%2f%2ffxtt.ru%3a80%2fannounce&tr=http%3a%2f%2fi-p-v-6.tk%3a6969%2fannounce&tr=http%3a%2f%2fipv6.1337.cx%3a6969%2fannounce&tr=http%3a%2f%2fipv6.govt.hu%3a6969%2fannounce&tr=http%3a%2f%2fjp.moeweb.pw%3a6969%2fannounce&tr=http%3a%2f%2fopen-v6.demonoid.ch%3a6969%2fannounce&tr=udp%3a%2f%2fopen.tracker.ink%3a6969%2fannounce&tr=http%3a%2f%2fshare.camoe.cn%3a8080%2fannounce&tr=http%3a%2f%2ft.nyaatracker.com%3a80%2fannounce&tr=http%3a%2f%2ft.overflow.biz%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.dler.com%3a6969%2fannounce&tr=http%3a%2f%2ftracker.k.vu%3a6969%2fannounce&tr=http%3a%2f%2fvps02.net.orel.ru%3a80%2fannounce&tr=https%3a%2f%2ft1.hloli.org%3a443%2fannounce&tr=https%3a%2f%2ftr.burnabyhighstar.com%3a443%2fannounce&tr=https%3a%2f%2ftr.fuckbitcoin.xyz%3a443%2fannounce&tr=https%3a%2f%2ftracker.expli.top%3a443%2fannounce&tr=https%3a%2f%2ftracker.foreverpirates.co%3a443%2fannounce&tr=https%3a%2f%2ftracker.kuroy.me%3a443%2fannounce&tr=https%3a%2f%2ftracker.lilithraws.org%3a443%2fannounce&tr=https%3a%2f%2ftracker.loligirl.cn%3a443%2fannounce&tr=https%3a%2f%2ftracker.nanoha.org%3a443%2fannounce&tr=https%3a%2f%2ftracker1.520.jp%3a443%2fannounce&tr=http%3a%2f%2f207.241.231.226%3a6969%2fannounce&tr=udp%3a%2f%2f6ahddutb1ucc3cp.ru%3a6969%2fannounce&tr=udp%3a%2f%2f%5b2001%3a470%3a1%3a189%3a0%3a1%3a2%3a3%5d%3a6969%2fannounce&tr=udp%3a%2f%2fipv6.tracker.monitorit4.me%3a6969%2fannounce&tr=udp%3a%2f%2fjutone.com%3a6969%2fannounce&tr=udp%3a%2f%2fmail.zasaonsk.ga%3a6969%2fannounce&tr=udp%3a%2f%2fmirror.aptus.co.tz%3a6969%2fannounce&tr=udp%3a%2f%2fopen.4ever.tk%3a6969%2fannounce&tr=http%3a%2f%2fopen.tracker.ink%3a6969%2fannounce&tr=udp%3a%2f%2frekcart.duckdns.org%3a15480%2fannounce&tr=udp%3a%2f%2fstatic.54.161.216.95.clients.your-server.de%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.blacksparrowmedia.net%3a6969%2fannounce&tr=http%3a%2f%2ftracker.dler.com%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.dler.org%3a6969%2fannounce&tr=udp%3a%2f%2ftracker2.dler.com%3a80%2fannounce&tr=udp%3a%2f%2ftracker2.itzmx.com%3a6961%2fannounce&tr=udp%3a%2f%2ftracker6.lelux.fi%3a6969%2fannounce&tr=udp%3a%2f%2fvibe.sleepyinternetfun.xyz%3a1738%2fannounce&tr=udp%3a%2f%2fwww.torrent.eu.org%3a451%2fannounce&tr=udp%3a%2f%2fapp.icon256.com%3a8000%2fannounce&tr=http%3a%2f%2f1337.abcvg.info%3a80%2fannounce&tr=http%3a%2f%2f207.241.226.111%3a6969%2fannounce&tr=udp%3a%2f%2fuploads.gamecoast.net%3a6969%2fannounce&tr=http%3a%2f%2ftracker.ipv6tracker.ru%3a80%2fannounce&tr=udp%3a%2f%2fsanincode.com%3a6969%2fannounce&tr=http%3a%2f%2ftracker.gbitt.info%3a80%2fannounce&tr=https%3a%2f%2ftracker.gbitt.info%3a443%2fannounce&tr=udp%3a%2f%2fexodus.desync.com%3a6969%2fannounce&tr=udp%3a%2f%2fleefafa.tk%3a6969%2fannounce&tr=udp%3a%2f%2fmovies.zsw.ca%3a6969%2fannounce&tr=udp%3a%2f%2fopen.free-tracker.ga%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.monitorit4.me%3a6969%2fannounce&tr=udp%3a%2f%2ftracker1.bt.moack.co.kr%3a80%2fannounce&tr=udp%3a%2f%2fyahor.ftp.sh%3a6969%2fannounce&tr=udp%3a%2f%2fh85-235-17-132.cust.a3fiber.se%3a6969%2fannounce&tr=udp%3a%2f%2fbananas.space%3a6969%2fannounce&tr=http%3a%2f%2fincine.ru%3a6969%2fannounce&tr=https%3a%2f%2f1337.abcvg.info%3a443%2fannounce&tr=http%3a%2f%2ftracker2.dler.org%3a80%2fannounce&tr=http%3a%2f%2fchouchou.top%3a8080%2fannounce&tr=http%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce&tr=udp%3a%2f%2fmail.artixlinux.org%3a6969%2fannounce&tr=udp%3a%2f%2fadmin.52ywp.com%3a6969%2fannounce&tr=http%3a%2f%2ftracker.srv00.com%3a6969%2fannounce&tr=http%3a%2f%2fwepzone.net%3a6969%2fannounce&tr=http%3a%2f%2ftracker.birkenwald.de%3a6969%2fannounce&tr=http%3a%2f%2f%5b2001%3a1b10%3a1000%3a8101%3a0%3a242%3aac11%3a2%5d%3a6969%2fannounce&tr=udp%3a%2f%2ftorrentclub.space%3a6969%2fannounce&tr=http%3a%2f%2fnyaa.tracker.wf%3a7777%2fannounce&tr=udp%3a%2f%2f94-227-232-84.access.telenet.be%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.torrent.eu.org%3a451%2fannounce&tr=udp%3a%2f%2fbuddyfly.top%3a6969%2fannounce&tr=udp%3a%2f%2fnew-line.net%3a6969%2fannounce&tr=udp%3a%2f%2ftracker2.dler.org%3a80%2fannounce&tr=http%3a%2f%2fopen.acgnxtracker.com%3a80%2fannounce&tr=udp%3a%2f%2fopen.stealth.si%3a80%2fannounce&tr=udp%3a%2f%2fcamera.lei001.com%3a6969%2fannounce&tr=udp%3a%2f%2fv1046920.hosted-by-vdsina.ru%3a6969%2fannounce&tr=udp%3a%2f%2fp4p.arenabg.com%3a1337%2fannounce&tr=http%3a%2f%2ftracker.lelux.fi%3a80%2fannounce&tr=udp%3a%2f%2ffh2.cmp-gaming.com%3a6969%2fannounce&tr=udp%3a%2f%2fchouchou.top%3a8080%2fannounce&tr=udp%3a%2f%2ftracker.lelux.fi%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce&tr=http%3a%2f%2ftorrenttracker.nwc.acsalaska.net%3a6969%2fannounce&tr=udp%3a%2f%2fipv4.tracker.harry.lu%3a80%2fannounce&tr=https%3a%2f%2ftracker.tamersunion.org%3a443%2fannounce&tr=udp%3a%2f%2flaze.cc%3a6969%2fannounce&tr=udp%3a%2f%2felementsbrowser.com%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.joybomb.tw%3a6969%2fannounce&tr=udp%3a%2f%2f%5b2a0f%3ae586%3af%3af%3a%3a220%5d%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.beeimg.com%3a6969%2fannounce&tr=udp%3a%2f%2ftracker-udp.gbitt.info%3a80%2fannounce&tr=udp%3a%2f%2ftracker.cyberia.is%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.tcp.exchange%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.tiny-vps.com%3a6969%2fannounce&tr=http%3a%2f%2ft.acg.rip%3a6699%2fannounce&tr=udp%3a%2f%2ftracker.jonaslsa.com%3a6969%2fannounce&tr=http%3a%2f%2ftracker.mywaifu.best%3a6969%2fannounce&tr=udp%3a%2f%2fretracker.lanta-net.ru%3a2710%2fannounce&tr=udp%3a%2f%2fqtstm32fan.ru%3a6969%2fannounce&tr=udp%3a%2f%2fpublic.publictracker.xyz%3a6969%2fannounce&tr=udp%3a%2f%2f207.241.231.226%3a6969%2fannounce&tr=udp%3a%2f%2faarsen.me%3a6969%2fannounce&tr=udp%3a%2f%2f207.241.226.111%3a6969%2fannounce&tr=udp%3a%2f%2fopentracker.i2p.rocks%3a6969%2fannounce&tr=udp%3a%2f%2f91.216.110.52%3a451%2fannounce&tr=udp%3a%2f%2ftracker.publictracker.xyz%3a6969%2fannounce&tr=udp%3a%2f%2fopen.dstud.io%3a6969%2fannounce&tr=udp%3a%2f%2fpsyco.fr%3a6969%2fannounce&tr=udp%3a%2f%2fcutscloud.duckdns.org%3a6969%2fannounce&tr=udp%3a%2f%2ffe.dealclub.de%3a6969%2fannounce&tr=ws%3a%2f%2fhub.bugout.link%3a80%2fannounce&tr=wss%3a%2f%2ftracker.openwebtorrent.com%3a443%2fannounce&tr=udp%3a%2f%2f%5b2a04%3aac00%3a1%3a3dd8%3a%3a1%3a2710%5d%3a2710%2fannounce&tr=udp%3a%2f%2ftracker1.itzmx.com%3a8080%2fannounce&tr=udp%3a%2f%2f184.105.151.166%3a6969%2fannounce&tr=udp%3a%2f%2fopen.demonii.com%3a1337%2fannounce&tr=udp%3a%2f%2fwepzone.net%3a6969%2fannounce&tr=udp%3a%2f%2ftracker3.itzmx.com%3a6961%2fannounce&tr=udp%3a%2f%2ftracker.0x.tf%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.zemoj.com%3a6969%2fannounce&tr=udp%3a%2f%2fretracker.hotplug.ru%3a2710%2fannounce&tr=udp%3a%2f%2fslicie.icon256.com%3a8000%2fannounce&tr=udp%3a%2f%2f960303.xyz%3a6969%2fannounce&tr=udp%3a%2f%2fbt1.archive.org%3a6969%2fannounce&tr=udp%3a%2f%2fbt2.archive.org%3a6969%2fannounce&tr=udp%3a%2f%2fcutiegirl.ru%3a6969%2fannounce&tr=udp%3a%2f%2fopentor.org%3a2710%2fannounce&tr=udp%3a%2f%2ftr.cili001.com%3a8070%2fannounce&tr=udp%3a%2f%2ftracker.bitsearch.to%3a1337%2fannounce&tr=udp%3a%2f%2ftracker.openbtba.com%3a6969%2fannounce&tr=udp%3a%2f%2ftracker4.itzmx.com%3a2710%2fannounce&tr=udp%3a%2f%2ftr.bangumi.moe%3a6969%2fannounce&tr=udp%3a%2f%2fconcen.org%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.ddunlimited.net%3a6969%2fannounce&tr=udp%3a%2f%2fadmin.videoenpoche.info%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.artixlinux.org%3a6969%2fannounce&tr=http%3a%2f%2f%5b2a04%3aac00%3a1%3a3dd8%3a%3a1%3a2710%5d%3a2710%2fannounce&tr=http%3a%2f%2fretracker.hotplug.ru%3a2710%2fannounce&tr=http%3a%2f%2ftracker.files.fm%3a6969%2fannounce&tr=http%3a%2f%2ftracker.bt4g.com%3a2095%2fannounce&tr=http%3a%2f%2fopen.nyap2p.com%3a8080%2fannounce&tr=http%3a%2f%2ftracker.electro-torrent.pl%3a80%2fannounce&tr=http%3a%2f%2fvps-dd0a0715.vps.ovh.net%3a6969%2fannounce&tr=http%3a%2f%2fwww.wareztorrent.com%3a80%2fannounce&tr=http%3a%2f%2fkamikazee.duckdns.org%3a7777%2fannounce&tr=https%3a%2f%2fxtremex.herokuapp.com%3a443%2fannounce&tr=udp%3a%2f%2ftracker.srv00.com%3a6969%2fannounce&tr=udp%3a%2f%2fben.kerbertools.xyz%3a6969%2fannounce&tr=udp%3a%2f%2fbubu.mapfactor.com%3a6969%2fannounce&tr=udp%3a%2f%2fkeke.re%3a6969%2fannounce&tr=http%3a%2f%2ffe.dealclub.de%3a6969%2fannounce&tr=udp%3a%2f%2fsmtp-relay.odysseylabel.com.au%3a6969%2fannounce&tr=https%3a%2f%2ftracker.srv00.com%3a443%2fannounce&tr=https%3a%2f%2ftrackme.theom.nz%3a443%2fannounce&tr=udp%3a%2f%2ftracker.leech.ie%3a1337%2fannounce&tr=udp%3a%2f%2ftracker.skynetcloud.site%3a6969%2fannounce&tr=udp%3a%2f%2fmoonburrow.club%3a6969%2fannounce&tr=udp%3a%2f%2fopen.publictracker.xyz%3a6969%2fannounce&tr=udp%3a%2f%2frep-art.ynh.fr%3a6969%2fannounce&tr=https%3a%2f%2ftracker.m-team.cc%3a443%2fannounce.php&tr=https%3a%2f%2ftracker.lilithraws.cf%3a443%2fannounce&tr=udp%3a%2f%2ftracker.theoks.net%3a6969%2fannounce&tr=udp%3a%2f%2f%5b2a03%3a7220%3a8083%3acd00%3a%3a1%5d%3a451%2fannounce&tr=udp%3a%2f%2fblack-bird.ynh.fr%3a6969%2fannounce&tr=udp%3a%2f%2fhtz3.noho.st%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.birkenwald.de%3a6969%2fannounce&tr=udp%3a%2f%2f%5b2001%3a1b10%3a1000%3a8101%3a0%3a242%3aac11%3a2%5d%3a6969%2fannounce&tr=udp%3a%2f%2fzecircle.xyz%3a6969%2fannounce&tr=udp%3a%2f%2fepider.me%3a6969%2fannounce&tr=udp%3a%2f%2fthouvenin.cloud%3a6969%2fannounce&tr=udp%3a%2f%2ftamas3.ynh.fr%3a6969%2fannounce&tr=udp%3a%2f%2ff1sh.de%3a6969%2fannounce&tr=http%3a%2f%2ftorrentsmd.com%3a8080%2fannounce&tr=http%3a%2f%2ftrackme.theom.nz%3a80%2fannounce&tr=http%3a%2f%2fwww.all4nothin.net%3a80%2fannounce.php&tr=https%3a%2f%2ftr.abiir.top%3a443%2fannounce&tr=udp%3a%2f%2ftracker.yangxiaoguozi.cn%3a6969%2fannounce&tr=https%3a%2f%2ftr.abir.ga%3a443%2fannounce&tr=http%3a%2f%2ftracker.vrpnet.org%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.altrosky.nl%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.swateam.org.uk%3a2710%2fannounce&tr=udp%3a%2f%2frun.publictracker.xyz%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.moeking.me%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.pomf.se%3a80%2fannounce&tr=udp%3a%2f%2ftorrents.artixlinux.org%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.auctor.tv%3a6969%2fannounce&tr=http%3a%2f%2ftracker1.itzmx.com%3a8080%2fannounce&tr=udp%3a%2f%2fbt.ktrackers.com%3a6666%2fannounce&tr=udp%3a%2f%2ftracker.4.babico.name.tr%3a3131%2fannounce&tr=https%3a%2f%2ftracker.jiesen.life%3a8443%2fannounce&tr=udp%3a%2f%2fu4.trakx.crim.ist%3a1337%2fannounce&tr=udp%3a%2f%2fpublic.tracker.vraphim.com%3a6969%2fannounce&tr=udp%3a%2f%2fmserver.link%3a6969%2fannounce&tr=udp%3a%2f%2f52.58.128.163%3a6969%2fannounce&tr=udp%3a%2f%2fcancela-tu.creditofiscal.mx%3a3074%2fannounce&tr=udp%3a%2f%2ftracker.filemail.com%3a6969%2fannounce&tr=udp%3a%2f%2f9.rarbg.com%3a2810%2fannounce&tr=udp%3a%2f%2ftracker.openbittorrent.com%3a6969%2fannounce&tr=http%3a%2f%2ftracker.openbittorrent.com%3a80%2fannounce&tr=https%3a%2f%2fopentracker.i2p.rocks%3a443%2fannounce

2.NovelAI.leak.Part2 (novelaileakpt2)(可选)(约124.53GiB)

该包中包含了NovelAI的一些额外模型,比较有用的是里面的GPT模型,可惜我们暂时还不会用,可选下载 这里仅提供磁链(我自己加了好多tracker),网盘分流你可以自己找

magnet:?xt=urn:btih:a20087e7807f28476dd7b0b2e0174981709d89cd&dn=novelaileakpt2&tr=udp%3a%2f%2ftracker.openbittorrent.com%3a6969%2fannounce&tr=http%3a%2f%2f1337.abcvg.info%3a80%2fannounce&tr=udp%3a%2f%2f%5b2001%3a1b10%3a1000%3a8101%3a0%3a242%3aac11%3a2%5d%3a6969%2fannounce&tr=http%3a%2f%2ffxtt.ru%3a80%2fannounce&tr=http%3a%2f%2fi-p-v-6.tk%3a6969%2fannounce&tr=http%3a%2f%2fipv6.1337.cx%3a6969%2fannounce&tr=http%3a%2f%2fipv6.govt.hu%3a6969%2fannounce&tr=http%3a%2f%2fjp.moeweb.pw%3a6969%2fannounce&tr=http%3a%2f%2fopen-v6.demonoid.ch%3a6969%2fannounce&tr=udp%3a%2f%2fopen.tracker.ink%3a6969%2fannounce&tr=http%3a%2f%2ft.nyaatracker.com%3a80%2fannounce&tr=http%3a%2f%2ft.overflow.biz%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.birkenwald.de%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.dler.com%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.dler.org%3a6969%2fannounce&tr=http%3a%2f%2ftracker.gbitt.info%3a80%2fannounce&tr=http%3a%2f%2ftracker.ipv6tracker.ru%3a80%2fannounce&tr=http%3a%2f%2ftracker.k.vu%3a6969%2fannounce&tr=http%3a%2f%2fvps02.net.orel.ru%3a80%2fannounce&tr=https%3a%2f%2ftr.burnabyhighstar.com%3a443%2fannounce&tr=https%3a%2f%2ftr.fuckbitcoin.xyz%3a443%2fannounce&tr=https%3a%2f%2ftracker.expli.top%3a443%2fannounce&tr=https%3a%2f%2ftracker.foreverpirates.co%3a443%2fannounce&tr=https%3a%2f%2ftracker.gbitt.info%3a443%2fannounce&tr=https%3a%2f%2ftracker.kuroy.me%3a443%2fannounce&tr=https%3a%2f%2ftracker.lilithraws.org%3a443%2fannounce&tr=https%3a%2f%2ftracker.loligirl.cn%3a443%2fannounce&tr=https%3a%2f%2ftracker.moeblog.cn%3a443%2fannounce&tr=https%3a%2f%2ftracker.tamersunion.org%3a443%2fannounce&tr=https%3a%2f%2ftracker1.520.jp%3a443%2fannounce&tr=https%3a%2f%2ftracker2.ctix.cn%3a443%2fannounce&tr=http%3a%2f%2f207.241.226.111%3a6969%2fannounce&tr=http%3a%2f%2f207.241.231.226%3a6969%2fannounce&tr=udp%3a%2f%2f6ahddutb1ucc3cp.ru%3a6969%2fannounce&tr=udp%3a%2f%2f91.216.110.52%3a451%2fannounce&tr=udp%3a%2f%2f%5b2001%3a470%3a1%3a189%3a0%3a1%3a2%3a3%5d%3a6969%2fannounce&tr=udp%3a%2f%2f%5b2a03%3a7220%3a8083%3acd00%3a%3a1%5d%3a451%2fannounce&tr=udp%3a%2f%2f%5b2a0f%3ae586%3af%3af%3a%3a220%5d%3a6969%2fannounce&tr=udp%3a%2f%2fadmin.52ywp.com%3a6969%2fannounce&tr=udp%3a%2f%2fbananas.space%3a6969%2fannounce&tr=udp%3a%2f%2fblack-bird.ynh.fr%3a6969%2fannounce&tr=udp%3a%2f%2fcamera.lei001.com%3a6969%2fannounce&tr=http%3a%2f%2fchouchou.top%3a8080%2fannounce&tr=udp%3a%2f%2fepider.me%3a6969%2fannounce&tr=udp%3a%2f%2fexodus.desync.com%3a6969%2fannounce&tr=udp%3a%2f%2ff1sh.de%3a6969%2fannounce&tr=udp%3a%2f%2ffe.dealclub.de%3a6969%2fannounce&tr=udp%3a%2f%2fh85-235-17-132.cust.a3fiber.se%3a6969%2fannounce&tr=udp%3a%2f%2fhtz3.noho.st%3a6969%2fannounce&tr=udp%3a%2f%2fipv4.tracker.harry.lu%3a80%2fannounce&tr=udp%3a%2f%2fipv6.tracker.monitorit4.me%3a6969%2fannounce&tr=udp%3a%2f%2fjutone.com%3a6969%2fannounce&tr=udp%3a%2f%2flaze.cc%3a6969%2fannounce&tr=udp%3a%2f%2fmail.artixlinux.org%3a6969%2fannounce&tr=udp%3a%2f%2fmail.zasaonsk.ga%3a6969%2fannounce&tr=udp%3a%2f%2fmirror.aptus.co.tz%3a6969%2fannounce&tr=udp%3a%2f%2fmovies.zsw.ca%3a6969%2fannounce&tr=udp%3a%2f%2fnew-line.net%3a6969%2fannounce&tr=udp%3a%2f%2fopen.4ever.tk%3a6969%2fannounce&tr=udp%3a%2f%2fopen.demonii.com%3a1337%2fannounce&tr=udp%3a%2f%2fopen.free-tracker.ga%3a6969%2fannounce&tr=udp%3a%2f%2fopen.stealth.si%3a80%2fannounce&tr=http%3a%2f%2fopen.tracker.ink%3a6969%2fannounce&tr=udp%3a%2f%2fpsyco.fr%3a6969%2fannounce&tr=udp%3a%2f%2frekcart.duckdns.org%3a15480%2fannounce&tr=udp%3a%2f%2fsanincode.com%3a6969%2fannounce&tr=udp%3a%2f%2fstatic.202.35.76.144.clients.your-server.de%3a6969%2fannounce&tr=udp%3a%2f%2fstatic.54.161.216.95.clients.your-server.de%3a6969%2fannounce&tr=udp%3a%2f%2ftamas3.ynh.fr%3a6969%2fannounce&tr=udp%3a%2f%2fthouvenin.cloud%3a6969%2fannounce&tr=udp%3a%2f%2ftorrentclub.space%3a6969%2fannounce&tr=udp%3a%2f%2ftorrents.artixlinux.org%3a6969%2fannounce&tr=udp%3a%2f%2ftracker-udp.gbitt.info%3a80%2fannounce&tr=udp%3a%2f%2ftracker.altrosky.nl%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.beeimg.com%3a6969%2fannounce&tr=http%3a%2f%2ftracker.birkenwald.de%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.blacksparrowmedia.net%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.cyberia.is%3a6969%2fannounce&tr=http%3a%2f%2ftracker.dler.com%3a6969%2fannounce&tr=http%3a%2f%2ftracker.dler.org%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.moeking.me%3a6969%2fannounce&tr=http%3a%2f%2ftracker.srv00.com%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.torrent.eu.org%3a451%2fannounce&tr=udp%3a%2f%2ftracker2.dler.org%3a80%2fannounce&tr=udp%3a%2f%2ftracker2.itzmx.com%3a6961%2fannounce&tr=udp%3a%2f%2fuploads.gamecoast.net%3a6969%2fannounce&tr=udp%3a%2f%2fvibe.sleepyinternetfun.xyz%3a1738%2fannounce&tr=udp%3a%2f%2fwww.torrent.eu.org%3a451%2fannounce&tr=udp%3a%2f%2fyahor.ftp.sh%3a6969%2fannounce&tr=udp%3a%2f%2fzecircle.xyz%3a6969%2fannounce&tr=http%3a%2f%2f%5b2001%3a1b10%3a1000%3a8101%3a0%3a242%3aac11%3a2%5d%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.theoks.net%3a6969%2fannounce&tr=http%3a%2f%2fwepzone.net%3a6969%2fannounce&tr=http%3a%2f%2fshare.camoe.cn%3a8080%2fannounce&tr=http%3a%2f%2ft.acg.rip%3a6699%2fannounce&tr=http%3a%2f%2fincine.ru%3a6969%2fannounce&tr=https%3a%2f%2f1337.abcvg.info%3a443%2fannounce&tr=udp%3a%2f%2fbuddyfly.top%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.4.babico.name.tr%3a3131%2fannounce&tr=udp%3a%2f%2f52.58.128.163%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.filemail.com%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.swateam.org.uk%3a2710%2fannounce&tr=udp%3a%2f%2ftracker.leech.ie%3a1337%2fannounce&tr=udp%3a%2f%2fleefafa.tk%3a6969%2fannounce&tr=http%3a%2f%2fnyaa.tracker.wf%3a7777%2fannounce&tr=udp%3a%2f%2fpublic.publictracker.xyz%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.tiny-vps.com%3a6969%2fannounce&tr=udp%3a%2f%2ftracker6.lelux.fi%3a6969%2fannounce&tr=udp%3a%2f%2fp4p.arenabg.com%3a1337%2fannounce&tr=http%3a%2f%2ftracker.lelux.fi%3a80%2fannounce&tr=udp%3a%2f%2fcutscloud.duckdns.org%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.jonaslsa.com%3a6969%2fannounce&tr=udp%3a%2f%2faarsen.me%3a6969%2fannounce&tr=http%3a%2f%2fopen.acgnxtracker.com%3a80%2fannounce&tr=udp%3a%2f%2frun.publictracker.xyz%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.lelux.fi%3a6969%2fannounce&tr=http%3a%2f%2ftracker.vrpnet.org%3a6969%2fannounce&tr=udp%3a%2f%2f207.241.226.111%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.joybomb.tw%3a6969%2fannounce&tr=udp%3a%2f%2f207.241.231.226%3a6969%2fannounce&tr=udp%3a%2f%2fcancela-tu.creditofiscal.mx%3a3074%2fannounce&tr=http%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce&tr=udp%3a%2f%2ftracker.pomf.se%3a80%2fannounce&tr=udp%3a%2f%2fbubu.mapfactor.com%3a6969%2fannounce&tr=udp%3a%2f%2f94-227-232-84.access.telenet.be%3a6969%2fannounce&tr=udp%3a%2f%2ftracker1.bt.moack.co.kr%3a80%2fannounce&tr=https%3a%2f%2ft1.hloli.org%3a443%2fannounce&tr=http%3a%2f%2fopen.acgtracker.com%3a1096%2fannounce&tr=udp%3a%2f%2ftracker.srv00.com%3a6969%2fannounce&tr=udp%3a%2f%2fchouchou.top%3a8080%2fannounce&tr=udp%3a%2f%2ftracker2.dler.com%3a80%2fannounce&tr=udp%3a%2f%2ftracker.publictracker.xyz%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.tcp.exchange%3a6969%2fannounce&tr=udp%3a%2f%2frep-art.ynh.fr%3a6969%2fannounce&tr=udp%3a%2f%2fben.kerbertools.xyz%3a6969%2fannounce&tr=udp%3a%2f%2felementsbrowser.com%3a6969%2fannounce&tr=udp%3a%2f%2fopen.dstud.io%3a6969%2fannounce&tr=udp%3a%2f%2fmoonburrow.club%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.yangxiaoguozi.cn%3a6969%2fannounce&tr=ws%3a%2f%2fhub.bugout.link%3a80%2fannounce&tr=wss%3a%2f%2ftracker.openwebtorrent.com%3a443%2fannounce&tr=udp%3a%2f%2fopen.publictracker.xyz%3a6969%2fannounce&tr=udp%3a%2f%2fqtstm32fan.ru%3a6969%2fannounce&tr=udp%3a%2f%2fu4.trakx.crim.ist%3a1337%2fannounce&tr=udp%3a%2f%2fpublic.tracker.vraphim.com%3a6969%2fannounce&tr=udp%3a%2f%2fsmtp-relay.odysseylabel.com.au%3a6969%2fannounce&tr=http%3a%2f%2fwww.wareztorrent.com%3a80%2fannounce&tr=http%3a%2f%2ftorrentsmd.com%3a8080%2fannounce&tr=https%3a%2f%2ftrackme.theom.nz%3a443%2fannounce&tr=http%3a%2f%2ftrackme.theom.nz%3a80%2fannounce&tr=https%3a%2f%2ftracker.lilithraws.cf%3a443%2fannounce&tr=https%3a%2f%2ftr.abiir.top%3a443%2fannounce&tr=http%3a%2f%2fwww.all4nothin.net%3a80%2fannounce.php&tr=https%3a%2f%2ftr.abir.ga%3a443%2fannounce&tr=udp%3a%2f%2f%5b2a04%3aac00%3a1%3a3dd8%3a%3a1%3a2710%5d%3a2710%2fannounce&tr=udp%3a%2f%2ftracker1.itzmx.com%3a8080%2fannounce&tr=udp%3a%2f%2fretracker.hotplug.ru%3a2710%2fannounce&tr=udp%3a%2f%2fslicie.icon256.com%3a8000%2fannounce&tr=udp%3a%2f%2f960303.xyz%3a6969%2fannounce&tr=udp%3a%2f%2fbt1.archive.org%3a6969%2fannounce&tr=udp%3a%2f%2f184.105.151.166%3a6969%2fannounce&tr=udp%3a%2f%2fbt2.archive.org%3a6969%2fannounce&tr=udp%3a%2f%2fcutiegirl.ru%3a6969%2fannounce&tr=udp%3a%2f%2fopentor.org%3a2710%2fannounce&tr=udp%3a%2f%2ftr.cili001.com%3a8070%2fannounce&tr=udp%3a%2f%2ftracker.openbtba.com%3a6969%2fannounce&tr=udp%3a%2f%2ftracker4.itzmx.com%3a2710%2fannounce&tr=udp%3a%2f%2ftr.bangumi.moe%3a6969%2fannounce&tr=udp%3a%2f%2fwepzone.net%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.bitsearch.to%3a1337%2fannounce&tr=udp%3a%2f%2ftracker.ddunlimited.net%3a6969%2fannounce&tr=udp%3a%2f%2fconcen.org%3a6969%2fannounce&tr=udp%3a%2f%2ffh2.cmp-gaming.com%3a6969%2fannounce&tr=udp%3a%2f%2fretracker.lanta-net.ru%3a2710%2fannounce&tr=udp%3a%2f%2fopentracker.i2p.rocks%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.auctor.tv%3a6969%2fannounce&tr=https%3a%2f%2ftracker.srv00.com%3a443%2fannounce&tr=http%3a%2f%2fvps-dd0a0715.vps.ovh.net%3a6969%2fannounce&tr=http%3a%2f%2fretracker.hotplug.ru%3a2710%2fannounce&tr=http%3a%2f%2f%5b2a04%3aac00%3a1%3a3dd8%3a%3a1%3a2710%5d%3a2710%2fannounce&tr=http%3a%2f%2ftracker.files.fm%3a6969%2fannounce&tr=http%3a%2f%2ftracker.bt4g.com%3a2095%2fannounce&tr=http%3a%2f%2ftracker.electro-torrent.pl%3a80%2fannounce&tr=https%3a%2f%2fxtremex.herokuapp.com%3a443%2fannounce&tr=udp%3a%2f%2f9.rarbg.com%3a2810%2fannounce&tr=udp%3a%2f%2ftracker.monitorit4.me%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.skynetcloud.site%3a6969%2fannounce&tr=https%3a%2f%2ftracker.m-team.cc%3a443%2fannounce.php&tr=udp%3a%2f%2fv1046920.hosted-by-vdsina.ru%3a6969%2fannounce&tr=udp%3a%2f%2fbt.ktrackers.com%3a6666%2fannounce&tr=http%3a%2f%2ftracker.mywaifu.best%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.artixlinux.org%3a6969%2fannounce&tr=http%3a%2f%2ftracker1.itzmx.com%3a8080%2fannounce&tr=http%3a%2f%2ftorrenttracker.nwc.acsalaska.net%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce&tr=udp%3a%2f%2fapp.icon256.com%3a8000%2fannounce&tr=udp%3a%2f%2fkeke.re%3a6969%2fannounce&tr=udp%3a%2f%2fmserver.link%3a6969%2fannounce&tr=udp%3a%2f%2ftracker3.itzmx.com%3a6961%2fannounce&tr=https%3a%2f%2fopentracker.i2p.rocks%3a443%2fannounce&tr=udp%3a%2f%2fadmin.videoenpoche.info%3a6969%2fannounce&tr=http%3a%2f%2ftracker.openbittorrent.com%3a80%2fannounce&tr=https%3a%2f%2ftracker.nanoha.org%3a443%2fannounce

3.stable-diffusion-webui (必须)

一个webui,在Github上开源 直接

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

来安装(如果你没有Git,请访问Git官网来安装Git) ++注意!++ 目前stable-diffusion-webui迭代非常快,每天都会有大量更新,因此建议每天都拉取最新代码。

4.官端 (可选)

先说下结论,在经过最后的优化后,官端与webui通过DIMM采样生成的图像质量已经几乎一致,但Eula仍有差距。有人可能会问,为啥要教部署webui而不是官端呢?因为官端想要跑起来需要至少11GB+的显存,想正常运行不容易爆显存就更恐怖了,需要20GB+,这已经不属于家用游戏显卡的范畴了。 如果你还是想部署官端,可以参考这篇文章

5.一块好Nvidia显卡

显存大小很重要,越大越好,但低显存也能跑,只是容易爆,反正我没测试过最低支持多少。 性能也很重要,直接关系到出图时间。 记得安好CUDA驱动

二.部署

1.配置stable-diffusion-webui环境

这里就懒得多讲了,直接用stable-diffusion-webui自带的脚本一把梭。(注意!一定要科学上网,否则你将会痛不欲生!)

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd stable-diffusion-webui
webui-user.bat

这会自动帮你配置好Venv环境以及依赖。

2.复制粘贴

去前面你下载的novelaileak\stableckpt 中挑一个你顺眼的模型,这里推荐选择animefull-final-pruned (当然你硬盘足够大的话全复制也没关系),然后把它的model.ckpt 复制到stable-diffusion-webui\models\Stable-diffusion ,并改个容易辨识的名称。

部署教程结束咯

三.使用

1.启动&各分区功能详解

直接运行webui.bat即可,正常的话它最后会输出*Running on local URL: http://127.0.0.1:XXXX*(如果你二-1没出问题的话) ,直接访问这个链接即可 一般来说你会看到以下界面 https://tva1.sinaimg.cn/large/008hp4d0gy1h700knuj51j31gp0prk0l.jpg

  • txt2img 根据 Prompt 和 Negative Prompt 以及相关参数来生成图像,其实就是把文字转换成图像

  • img2img 根据你所提供的图像和 Prompt 与 Negative Prompt 以及相关参数来生成图像,基本上是在你所提供的图像的基础上根据 Prompt 与 Negative Prompt 以及相关参数来修改,一般被用于对txt2img中生成的比较满意的图像进行细节修改

  • Extras 通过超分辨率算法来对图像进行放大。因为低显存显卡无法直接在txt2img中生成高分辨率图片,因此就需要用到 Extras 来进行放大

  • PNG Info 可以查看由 stable-diffusion-webui 所所处理过的图片所使用的参数,包括 Prompt , Negative Prompt , Steps , Sampler , CFG scale , Seed , Face restoration , Size , Model hash 等等

  • Checkpoint Merger 用于混合2个模型,混合后的模型会兼有2个模型的风格,至于偏向哪个模型就看你设置的混合比例了

  • Textual inversion 拿来训练的。一般人用不着,用得着的也不用我教

  • Settings 基本上没啥好调的。你可以在Settings-Stable Diffusion-Stable Diffusion checkpoint 选择你想要的模型。记得点Apply settings

2.参数详解

Prompt webui 会根据此参数来生成图像,会尽可能包含Prompt中描述的元素。目前仅支持英文(和极少的几个颜文字),Prompt 是决定图像质量的最重要的参数之一

附上一张群友的https://zcyzcy88.github.io/TagTable/A/Sheet1.html

Negative Prompt webui 会根据此参数来生成图像,会避免出现Negative Prompt中描述的元素。目前仅支持英文,Negative Prompt 同样是是决定图像质量的最重要的参数之一

下面的解释来自TG群友

Step: 迭代多少次, 取值和 sampling method 有关, DDIM 收敛较快, 见https://www.reddit.com/r/StableDiffusion/comments/wwm2at/sampler_vs_steps_comparison_low_to_mid_step_counts我用 DDIM 取 20 够了. Batch count/batch size: 决定生成的图片数量, 显存够就加 batch size, 不够就 batch count, 得到的图片数量是两者之积 (小显存还是只动 count 就好) Sampling method: 我无脑 DDIM, Eula 也挺好用? (带 a 的是 ancient 的意思, step 增长出图不稳定) Cfg scale: 符合 prompt 的程度, 值越高越会字面看待 prompt, 低则给模型较大的发挥空间, 但是实际模型表现上来看 cfg scale 低 (6-8) 饱和度低, 偏线稿, 偏杂乱, 高 (18-22) 则饱和度偏高, 偏 CG 风格. Denoise Strength: img2img 专属参数, 从 0 到 1 取值, 值越高 AI 对原图的参考程度就越低 (同时增加迭代次数), 我个人喜欢低 cfg 高 denoise 重绘图, 高 cfg 低 denoise 改细节.

四.优化

其实这才是重头戏

1.添加vae模型

细心地你可能已经发现了,无论是novelaileak还是novelaileakpt2,它的模型目录下都有一个叫animevae.pt的文件,这就是vae模型(它应该适用于所有NovelAI泄露模型),里面包含一些NovelAI官方的调优参数,直接把它复制丢到stable-diffusion-webui\models\Stable-diffusion下,并改名成模型名称.vae.pt(假如你在二-2中将模型重命名为了NovelAI-final-pruned.ckpt,那vae模型就该叫NovelAI-final-pruned.vae.pt)

启动时你如果能看到Loading VAE weights from:XXXX就说明你vae配置成功了

2.添加config

细心地你可能同样发现了,每个单独的模型文件夹中除了model.ckpt还有一个config.yaml,你用的是哪个模型就把它对应的config.yaml丢到stable-diffusion-webui\models\Stable-diffusion下,并改名成模型名称.yaml(假如你在二-2中将模型重命名为了NovelAI-final-pruned.ckpt,那config就该叫NovelAI-final-pruned.yaml)

3.添加hypernetworks模型

直接将novelaileak\stableckpt\modules\modules下所有文件复制到stable-diffusion-webui\models\hypernetworks下,简单粗暴

你可以在Settings-Stable Diffusion-Stable Diffusion finetune hypernetwork选择你想要的hypernetwork模型

注意! 这一参数更多的是影响图像画风而不是图像质量,每张图以及每个人(个人口味)所适用的hypernetwork模型都是不同的!

4.修改Ignore last layers of CLIP model

这是NovelAI官方搞的小动作之一,如果将该选项保持默认会和官端有很大差距。 将Settings-Stable Siffusion-Ignore last layers of CLIP model改成2即可

注意! 该参数仅适用于NovelAI泄露模型,别的模型请调回0!

5.使用Xformers

Xformers在某些设备上能显著提高图像生成速度。目前没有它的二进制包提供,因此需要手动从源码安装。

git clone https://github.com/facebookresearch/xformers.git
cd xformers
git submodule update --init --recursive
#↓把这个路径补充完整
"stable-diffusion-webui\venv\Scripts\pip.exe" install -r requirements.txt
"stable-diffusion-webui\venv\Scripts\pip.exe" install -e .

喝杯茶,大概要花20多分钟。

报错?报错那就不用呗

如果最后Successfully installed Xformers啥的,就说明你安装成功了。接下来我们要启用Xformers 用文本编辑软件打开webui-user.bat,在COMMANDLINE_ARGS=后添加--xformers --force-enable-xformers 然后你那一行就应该长得像这样

set COMMANDLINE_ARGS=--xformers --force-enable-xformers

运行webui,尝试出张图,如果没报错就成了

报错?报错那就把 --xformers --force-enable-xformers删了呗

五.FAQ

1.16系显卡生成黑色/绿色图

模仿四-5,在启动参数加 --precision full --no-half

2.显存不够

模仿四-5,在启动参数加 --medvram 或 --lowvram

3.目录结构

./models
├── Codeformer
├── ESRGAN
├── GFPGAN
├── hypernetworks
│   ├── aini.pt
│   ├── anime_2.pt
│   ├── anime_3.pt
│   ├── anime.pt
│   ├── furry_2.pt
│   ├── furry_3.pt
│   ├── furry_kemono.pt
│   ├── furry_protogen.pt
│   ├── furry.pt
│   ├── furry_scalie.pt
│   ├── furry_transformation.pt
│   └── pony.pt
├── LDSR
├── Stable-diffusion
│   ├── NovelAI-final-pruned.ckpt -> novelai 的 model.ckpt (pruned)
│   ├── NovelAI-final-pruned.vae.pt -> novelai 的 animevae.pt
│   └── NovelAI-final-pruned.yaml -> novelai 的 model.ckpt (pruned) 的 config.yaml
└── SwinIR

4.高分辨率下出怪图

来自https://gist.github.com/crosstyan/f912612f4c26e298feec4a2924c41d99

我原本以为是低显存触发 split attention 会这样, 不过似乎不管显存高低高分辨率都容易出怪东西.

群友的修复方法 (source)

1.使用 —medvram 或者 —lowvram 参数启动webui 2.正常输入 prompt,选择较小分辨率生成图片。记住你生成图片的分辨率。生成完毕之后,复制图片的Seed。 3.重点来了!生成完毕后,先查看图片是否满意。如果效果满意,直接将图片扔进Img2img。可点击“Send to img2img”。 4.在img2img界面底部,有一 Script 选项。将 Script 选为 SD Upscale,里面的 Tile overlap 尽量调小。 5.一般地,扔进Img2img的图,会继承原txt2img的所有prompt和negative prompt。如果你发现prompt有变动,回到txt2img,复制prompt到img2img。 6.选择合适的Sampling Steps和Sampling method。 7.确认你的 Width 和 Height 与原图一致。这一步非常重要!这里的 Width 和 Height 是超分时 img2img 的图片分割大小,如果不合适会导致出现重叠问题。 8.将第 2 步复制的 Seed 填入img2img的 Seed 里。 9.Generate!

或者用 highres-fix

By default, txt2img makes horrible images at very high resolutions, and this makes it possible to avoid using the small picture's composition.

5.我还是不会啊?

NovelAI官网请,25刀解决一切问题

六.最后的碎碎念

其实都是群友研究出来的,我就是整理了下,群里还有更多资料→https://t.me/StableDiffusion_CN

最后修改:2022 年 10 月 10 日 原文章地址: https://blog.xcwosjw.com/archives/3/

个性签名就是没有个性签名