win10部署NovelAI绘画,Stable Diffusion,Chilloutmix,实现txt2img,img2img(含调参)

这篇具有很好参考价值的文章主要介绍了win10部署NovelAI绘画,Stable Diffusion,Chilloutmix,实现txt2img,img2img(含调参)。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

1、Stable Diffusion是什么

  • Stable Diffusion是2022年发布的深度学习文本到图像生成模型。它主要用于根据文本的描述产生详细图像,尽管它也可以应用于其他任务,如内补绘制、外补绘制,以及在提示词​(英语)指导下产生图生图的翻译。
  • Stable Diffusion是由德国慕尼黑大学机器视觉与学习研究小组和Runway的研究人员基于CVPR2022的一篇论文:《High-Resolution Image Synthesis with Latent Diffusion Models》,并与其他社区团队合作开发的一款开源模型。

2、深度学习环境搭建

  1. Anaconda下载与安装:地址
  2. Pycharm(IDE)下载与安装:地址
  3. CUDA、CuDNN下载与安装:地址

3、Stable Diffusion环境搭建(可跳过)

参考资料:地址

程序下载:地址
模型下载:地址

Github下载项目并打开运行,缺一小部分库。
stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python

打开终端,安装相关库
pytorch_lightning, omegaconf, einops
stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python

或者使用conda创建虚拟环境一键安装依赖
conda env create -f environment.yaml
conda activate ldm
stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python

下载权重
地址
在项目目录models/ldm下手动创建stable-diffusion-v1文件夹,用来存放下载好的权重文件,即需要把下载文件夹里的sd-v1-4.ckpt文件改名为model.ckpt,然后粘贴到手动创建的stable-diffusion-v1文件夹下即可
stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python

遇到报错NameError: name ‘trainer’ is not defined. Did you mean: ‘Trainer’?
根据官方wiki的教程进行修补 地址
stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python

报错2
地址
stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python

4、Stable Diffusion WebUI环境搭建(主要)

Github下载star最多的stable-diffusion-webui项目(自带图形化包)
地址

  • 使用conda创建python.3.10.6虚拟环境
    conda create -n stable-webui python=3.10.6
    stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python

  • 激活虚拟环境
    conda activate stable-webui
    stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python

  • 进入刚刚git clone的目录,运行webui-user.bat
    等待自动安装进度条
    stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python

  • 根据提示增加一些git配置信息
    git config --global --add safe.directory xxx/stable-diffusion-webui/repositories/taming-transformers
    stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python

  • 修改配置文件
    增加—share解决本地localhost权限问题
    stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python

  • 继续执行webui-user.bat,成功启动服务
    stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python

  • 改一下参数,网上复制一段描述性的话,使用默认模型随机生成几张图。
    stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python

5、NovelAI模型的修改与调参

模型可以在网上资源贴中下载合适的模型(.ckpt),放到models\Stable-diffusion里。
比如:地址
stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python

这里我们选择NovelAI泄漏的完整版本,用于二次元绘画
使用刚才的参数直接训练一下
stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python
stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python
stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python

描述词

{anime screenshot}(masterpiece, best quality, illustration, cinematic lighting,CG,wallpaper)
1 girl , beautifully detailed eyes,messy hair,long hair, flipped hair,Hair glows,pov,
blush,White hair,Red eyes,animal ears, looking at viewer,collar,dramatic angle,
(Intense POV) Highly detailed still professional portrait of anime film (a cute kawaii girl) destroyed in a tunic on a balcony in the city (overgrown with stuff), focus on the shoulders from above Pale skin on white marble glow very beautiful blue eyes pupil iris blush soft ambient light lens flare light particles beautiful composition window

stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python
stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python

排除词

multiple breasts, (mutated hands and fingers:1.5 ), (long body :1.3), (mutation, poorly drawn :1.2) , black-white, bad anatomy, liquid body, liquid tongue, disfigured, malformed, mutated, anatomical nonsense, text font ui, error, malformed hands, long neck, blurred, lowers, lowres, bad anatomy, bad proportions, bad shadow, uncoordinated body, unnatural body, fused breasts, bad breasts, huge breasts, poorly drawn breasts, extra breasts, liquid breasts, heavy breasts, missing breasts, huge haunch, huge thighs, huge calf, bad hands, fused hand, missing hand, disappearing arms, disappearing thigh, disappearing calf, disappearing legs, fused ears, bad ears, poorly drawn ears, extra ears, liquid ears, heavy ears, missing ears, fused animal ears, bad animal ears, poorly drawn animal ears, extra animal ears, liquid animal ears, heavy animal ears, missing animal ears, text, ui, error, missing fingers, missing limb, fused fingers, one hand with more than 5 fingers, one hand with less than 5 fingers, one hand with more than 5 digit, one hand with less than 5 digit, extra digit, fewer digits, fused digit, missing digit, bad digit, liquid digit, colorful tongue, black tongue, cropped, watermark, username, blurry, JPEG artifacts, signature, 3D, 3D game, 3D game scene, 3D character, malformed feet, extra feet, bad feet, poorly drawn feet, fused feet, missing feet, extra shoes, bad shoes, fused shoes, more than two shoes, poorly drawn shoes, bad gloves, poorly drawn gloves, fused gloves, bad cum, poorly drawn cum, fused cum, bad hairs, poorly drawn hairs, fused hairs, big muscles, ugly, bad face, fused face, poorly drawn face, cloned face, big face, long face, bad eyes, fused eyes poorly drawn eyes, extra eyes, malformed limbs, more than 2 nipples, missing nipples, different nipples, fused nipples, bad nipples, poorly drawn nipples, black nipples, colorful nipples, gross proportions. short arm, (((missing arms))), missing thighs, missing calf, missing legs, mutation, duplicate, morbid, mutilated, poorly drawn hands, more than 1 left hand, more than 1 right hand, deformed, (blurry), disfigured, missing legs, extra arms, extra thighs, more than 2 thighs, extra calf, fused calf, extra legs, bad knee, extra knee, more than 2 legs, bad tails, bad mouth, fused mouth, poorly drawn mouth, bad tongue, tongue within mouth, too long tongue, black tongue, big mouth, cracked mouth, bad mouth, dirty face, dirty teeth, dirty pantie, fused pantie, poorly drawn pantie, fused cloth, poorly drawn cloth, bad pantie, yellow teeth, thick lips, bad cameltoe, colorful cameltoe, bad asshole, poorly drawn asshole, fused asshole, missing asshole, bad anus, bad pussy, bad crotch, bad crotch seam, fused anus, fused pussy, fused anus, fused crotch, poorly drawn crotch, fused seam, poorly drawn anus, poorly drawn pussy, poorly drawn crotch, poorly drawn crotch seam, bad thigh gap, missing thigh gap, fused thigh gap, liquid thigh gap, poorly drawn thigh gap, poorly drawn anus, bad collarbone, fused collarbone, missing collarbone, liquid collarbone, strong girl, obesity, worst quality, low quality, normal quality, liquid tentacles, bad tentacles, poorly drawn tentacles, split tentacles, fused tentacles, missing clit, bad clit, fused clit, colorful clit, black clit, liquid clit, QR code, bar code, censored, safety panties, safety knickers, beard, furry ,pony, pubic hair, mosaic, excrement, faeces, shit
  • 然后是img2img,我们增加结果与原图的不同程度,得到如下
    stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python

6、Chilloutmix-Ni模型

模型寻找攻略:1
2

  • 然后我们再换用常用的3D模型生成一些图
    stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python
    stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python

  • 最后我们使用真人模型Chilloutmix-Ni进行训练
    stable diffusion chilloutmix,# 机器学习,AI作画,stable diffusion,python

    文章来源地址https://www.toymoban.com/news/detail-800733.html

到了这里,关于win10部署NovelAI绘画,Stable Diffusion,Chilloutmix,实现txt2img,img2img(含调参)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • AIGC:腾讯云服务器快速部署stable-diffusion环境,使用ChilloutMix模型进行画图

    前两天在某公众号的软文刷到了AI绘画领域最新的ChilloutMix模型。大概是下面这张图的效果: 激动的心颤抖的手,学了这么多年计算机,就是为了走在时代前沿,事到如今终于可以活学活用了。然而自己的电脑配置完全不够用,咋整?开台GPU云服务器吧。踩了无数坑之后,终

    2024年02月16日
    浏览(33)
  • 在win10电脑上搭建python环境下的本地AI绘画工具Stable Diffusion(我的电脑AI作品欣赏)

     宁静的午后 孪生姐妹   美女 街景   印象大师  

    2024年02月15日
    浏览(31)
  • stable-diffusion-webui(1.2.1版本) win10系统本地电脑部署

    在安装stable-diffusion-webui(1.2.1版本)之前需要确认win10本地电脑具有的环境 1.显卡类型:NVIDIA(英伟达) 建议显存高于4G以上,这样512*512的还是可以运行的 2.python(版本必须最好是3.10.6)和 git最新版 正式安装 找到stable-diffusion-webui 这里找到1.2.1版本下载压缩包后来安装(固定版本

    2024年02月09日
    浏览(45)
  • Win 10部署stable-diffusion-webui时github报错的解决方法

    这篇博客就是简单记录一下。有很多文章已经详细介绍了怎么在Windows上部署stable-diffusion-webui了,例如: 本地部署Stable Diffusion教程,详细教学,已安装成功 - 知乎 (zhihu.com) 五千字长文:Stable Diffusion 保姆级教程,附带免费绘画小程序 - 哔哩哔哩 (bilibili.com) 一份保姆级的Stab

    2024年02月03日
    浏览(38)
  • Stable Diffusion 模型分享:ChilloutMix(真实、亚洲面孔)chilloutmix_NiPrunedFp32Fix

    本文收录于《AI绘画从入门到精通》专栏,专栏总目录:点这里,订阅后可阅读专栏内所有文章。 相信近来吸引大家想一试 Stable Diffusion 图像生成,都是因为网上流传大量仿如真人的东方美女照片。原来这些美女照片不少都是由一个名为 ChilloutMix 的模型生成的,不过由于训练

    2024年04月26日
    浏览(27)
  • 如何本地部署基于stable-diffusion的AI绘画(jupyter,python实现,详细,附代码)

    自从Stable Diffusion 1.0模型发布以来,“AI文本图片生成”真正的变成普通人也能使用的技术。同时各种国内外AI绘图软件,也不断频繁更新,AI绘画的关注度也越来越高。 以下是本人自己生成出来的一些AI绘图(夹带私货木木枭^ ^) 对应的提示语prompt为: 那么如果我们想要 本

    2023年04月22日
    浏览(50)
  • 安装 NovelAI 原版后端(stable diffusion)

    详见此教程: NovelAI 原版网页UI+后端部署教程 一台拥有一张至少有 11G 显存的 NVIDIA GPU 的 Linux 系统的 x86 设备。 建议显存低于 24G 不要尝试使用官方版本前后端。 NVIDIA CUDA 驱动 (CUDA Toolkit 11.6) Docker 19+ nvidia-container-toolkit 安装 Docker# bash 驱动相关# 安装显卡驱动 使用  nvidia-smi

    2024年02月09日
    浏览(23)
  • Stable Diffusion AI绘画学习指南【本地环境搭建win+mac】

    一、硬件配配置要求 系统:windows 10  / Mac os 硬盘:C 盘预留 15GB 以上,其他盘 50GB 以上,Stable Ddiffusion的很多大模型都是以 GB 起步。 显卡:4GB 以上,建议 8GB, 效率高,能玩大尺寸的图 CPU:i5 CPU 以上 内存:16GB 以上 二、windows 环境搭建 python下载:https://www.python.org/downloads/  

    2024年02月14日
    浏览(38)
  • AIGC绘画:kaggle部署stable diffusion项目绘画

    kaggle介绍 Kaggle 成立于2010年,是一个进行数据发掘和预测竞赛的在线平台。从公司的角度来讲,可以提供一些数据,进而提出一个实际需要解决的问题;从参赛者的角度来讲,他们将组队参与项目,针对其中一个问题提出解决方案,最终由公司选出的最佳方案可以获得5K-10K美

    2024年02月12日
    浏览(29)
  • stable-diffusion、stable-diffusion-webui、novelai、naifu区别介绍

    Stable Diffusion 是一个基于 Latent Diffusion Models (潜在扩散模型,LDMs)的文图生成(text-to-image)模型。它由 CompVis 、 Stability AI 和 LAION 共同开发,通过 LAION-5B 子集大量的 512x512 图文模型进行训练。我们只要简单的输入一段文本, Stable Diffusion 就可以迅速将其转换为图像,同样我

    2024年02月09日
    浏览(26)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包