萌の领域

【软件分享】个人打包的AI绘画整合包,已更新至最新版本(截止至2022-10-27,提交版本 737eb28)

技术教程, 野生技术协会 judgeou - 8
拔了网线都可以直接解压运行的AI绘画整合包 最后审核由 龙姐 UID:1

整合包里面包含的内容:

  • stable-diffusion-webui 本体
  • 启动所依赖的子项目:BLIP,CodeFormer, k-diffusion, stable-diffusion, taming-transformers
  • 扩展 images-browser, 用于查看曾经生成过的图像
  • novel-ai 泄露的模型权重文件 [925997e9]。
  • 一些其他常用的 model,比如 SwinIR,可以对图像进行高质量放大。
  • 插件 deepdanbooru,用于从图像中分析 tag
  • 插件 xformers,可以大幅提升图像生成速度
  • 附带的一些 embeddings,从网上收集而来,可以使用特定词语影响生成风格,比如 klee 可以生成原神中的可莉风格的人物,diana 可以生成嘉然风格的人物,其他可以的 emb 可以参见 embeddings 目录
  • 保存了我个人使用的默认设置,比如我用 webp 格式代替 png 保存图片,并且开启生成过程每步预览。
  • 附带了我本人对 webui 的一点小修改,详情见 https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/3642 (估计作者不会合并)

推荐配置:

因为没有那么多测试环境,所以照着我的配置写的,各位都可以勇于尝试。

  • CPU:i7-9700k
  • 显卡:必须是N卡,10系以上。A卡用户请自行折腾,核显用户可以凑热闹,支持纯CPU推理,就是极慢。。。
  • GPU:RTX 2060 6G显存。显存非常重要,不够的话大分辨率的图出不来,或者极大幅度降低生成速度
  • 内存:16GB。启动阶段需要8~9GB内存,随后运行时需要3~4GB内存
  • 操作系统:Windows 11、Windows 10,必须64位。其他的未测试过。

安装说明:

很遗憾,即使是整合包,也没办法无脑使用,还是要做一些操作,并且过程中很可能会遇到各种问题,可以在评论区反映,我见过的就回答一下,没见过的。。。。那我也没办法啦哈哈。

  1. 安装 CUDA 11,尽量到官网下载:https://developer.nvidia.com/cuda-downloads  如果实在下不到,那就用我网盘里面的 cuda_11.8.0_522.06_windows.exe 
  2. 下载 stable-diffusion-webui.7z 并解压到任意目录,不要有中文路径
  3. 进入刚刚解压的 stable-diffusion-webui 目录,里面有个 启动.bat 双击他就行了
  4. 一切顺利的话会出现 cmd 窗口,这里需要等待一段时间。中途会下载一些内容,如果你没有网络,那么请参照后面的 手动安装 huggingface 模型  环节
  5. 当看到窗口输出 Running on local URL:  http://127.0.0.1:7860 的字样后,访问 http://127.0.0.1:7860 即可开始使用

关于如何使用,B站好多教程,推荐自行搜索。 推荐一个相关的网站:https://draw.dianas.cyou/

手动安装 huggingface 模型:

把网盘里面的 huggingface.zip 下载下来,里面有个 transformers 文件夹,把他放进 如图所示的文件夹:

(没有文件夹就创建,%userprofile%是你的用户文件夹,不知道的话,直接到资源管理器的地址栏输入 %userprofile% 你就懂了),然后重新启动程序即可。

调整启动参数:

启动.bat 拖进记事本,或者你喜欢的编辑器,可以进行编辑。我默认添加了 –deepdanbooru 参数,用来启动 Interrogate DeepBooru 功能,你们可以自行添加需要的,多个参数用英文空格分隔。下面列出我常用的参数:

–port  修改访问端口,默认是7860
–listen 修改监听地址,默认是127.0.0.1
–xformers 启用 xformers,强烈推荐使用,大幅增加图片生成速度
–no-half 禁用半精度推理
–medvram 降低显存占用,降低生成速度
–lowvram 大幅降低显存占用,也大幅降低生成速度
–deepdanbooru 启动 Interrogate DeepBooru 功能

完整的参数见:https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Command-Line-Arguments-and-Settings

常见的问题:

一般出现在刚刚装好操作系统的时期,就是缺了VC运行库,到指定的链接下载即可。

  • Warning: caught exception 'Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx', memory monitor disabled

你不是N卡,或者你驱动没安装好,或者没安装 CUDA。

  • RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'

你的N卡太落后了,或者你强行启用了CPU推理,添加 --no-half 参数可以解决,但是速度会变慢

  • RuntimeError: CUDA out of memory. Tried to allocate xxx。。。。

你的显存不够了,添加 –medvram 或者 –lowvram 参数可以解决,但是速度会变慢

这个整合包有什么缺点

最大的问题就是可能用不了,因为 python 安装依赖可能会根据你不同的环境去下载不同的包,而我把这些包都固定打包进来了,但并不一定适合你们。 还有我忘了把 git 分支切回 master 了,如果要从仓库更新就需要使用命令 git pull origin master 现在 stable-diffusion-webui 这个项目几乎是天天都有更新,推荐有条件的小伙伴们(魔法科学上网),使用正统方法安装,随时可以拉取更新。

最后随便放点图:

masterpiece, bset quality, highly detailed, high resolution, game_cg,    sharp hq rendering, concept art, painterly, 1girl, bangs, bare_shoulders, blue_bow, blue_eyes, blurry, blurry_background, blush, bokeh, bow, bracelet, braid, breasts, brown_hair, closed_mouth, depth_of_field, dress, eyebrows_visible_through_hair, hair_bow, head_rest, jewelry, lens_flare, long_hair, looking_at_viewer, medium_breasts, off-shoulder_dress, off_shoulder, short_sleeves, smile, solo, watch, wristwatch, (blonde hair, princess), Negative prompt: ((((ugly)))),(((duplicate))), ((morbid)), ((mutilated)), (((tranny))), (((trans))), (((trannsexual))), (hermaphrodite), (out of frame), extra fingers, mutated hands, ((three breasts), ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), blurry, ((bad anatomy)), (((bad proportions))), ((extra limbs)), cloned face, (((disfigured))).(((more than 2 nipples))), out of frame, ugly, extra limbs, (bad anatomy), gross proportions, (malformed limbs), ((missing arms)),((missing legs)), (((extra arms))), (((extra legs))), ((three legs)), mutated hands,(fused fingers), (too many fingers),(((long neck))) 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,text font ui,malformed hands,long neck,missing limb,Sleeveles,bad anatomy disfigured malformed mutated, (mutated hands and fingers :1.5),(long body :1.3), (mutation ,poorly drawn :1.2),bad anatomy disfigured malformed mutated,multiple breasts,bad feet,futa,yaoi, Semen, ((three hands)), ((two pantys)), ((four legs)) Steps: 40, Sampler: Euler a, CFG scale: 7, Seed: 2128638734, Size: 960×576, Model hash: 925997e9, Batch size: 2, Batch pos: 0

masterpiece,best qualtry,illustration, cinematic lighting, 1girl, animal, ass, bare_shoulders, barefoot, blue_butterfly, braid, breasts, bug, butterfly, butterfly_hair_ornament, butterfly_on_hand, choker, curtains, dress, eyebrows_visible_through_hair, flower, glowing_butterfly, hair_between_eyes, holding, long_hair, looking_at_viewer, pink_flower, purple_flower, sitting, solo, tail, wariza, white_butterfly, white_dress, wisteria, yellow_butterfly, yellow_eyes Negative prompt: ((((ugly)))),(((duplicate))), ((morbid)), ((mutilated)), (((tranny))), (((trans))), (((trannsexual))), (hermaphrodite), (out of frame), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), blurry, ((bad anatomy)), (((bad proportions))), ((extra limbs)), cloned face, (((disfigured))).(((more than 2 nipples))), out of frame, ugly, extra limbs, (bad anatomy), gross proportions, (malformed limbs), ((missing arms)),((missing legs)), (((extra arms))), (((extra legs))), mutated hands,(fused fingers), (too many fingers),(((long neck))) 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,text font ui,malformed hands,long neck,missing limb,Sleeveles,bad anatomy disfigured malformed mutated, (mutated hands and fingers :1.5),(long body :1.3), (mutation ,poorly drawn :1.2),bad anatomy disfigured malformed mutated,multiple breasts,bad feet,futa,yaoi Steps: 35, Sampler: Euler a, CFG scale: 7, Seed: 3968557696, Size: 640×960, Model hash: 925997e9

masterpiece,best qualtry,illustration, cinematic lighting, beautiful detailed eyes, 1girl, apron, ascot, black_dress, bookshelf, bow, braid, building, cake, city, cup, dress, drinking_glass, eyebrows_visible_through_hair, flower, food, green_eyes, hair_flower, hair_ornament, holding_tray, looking_at_viewer, maid, maid_apron, maid_headdress, noelle_(genshin_impact), open_mouth, pantyhose, plate, potted_plant, red_ascot, red_bow, red_ribbon, saucer, short_hair, smile, table, tea, teacup, teapot, tiered_tray, tray, waitress, white_headwear, white_legwear Negative prompt: ((((ugly)))),(((duplicate))), ((morbid)), ((mutilated)), (((tranny))), (((trans))), (((trannsexual))), (hermaphrodite), (out of frame), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), blurry, ((bad anatomy)), (((bad proportions))), ((extra limbs)), cloned face, (((disfigured))).(((more than 2 nipples))), out of frame, ugly, extra limbs, (bad anatomy), gross proportions, (malformed limbs), ((missing arms)),((missing legs)), (((extra arms))), (((extra legs))), mutated hands,(fused fingers), (too many fingers),(((long neck))) 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,text font ui,malformed hands,long neck,missing limb,Sleeveles,bad anatomy disfigured malformed mutated, (mutated hands and fingers :1.5),(long body :1.3), (mutation ,poorly drawn :1.2),bad anatomy disfigured malformed mutated,multiple breasts,bad feet,futa,yaoi Steps: 35, Sampler: Euler a, CFG scale: 7, Seed: 1887624393, Size: 640×960, Model hash: 925997e9

masterpiece,best qualtry,illustration, cinematic lighting, beautiful detailed eyes, 1girl, armpits, bamboo, black_hair, black_skirt, blinds, blue_skirt, blush, breasts, brick_wall, building, city, collared_shirt, day, fence, flower, frills, leaf, long_hair, looking_at_viewer, mouth_hold, neck_ribbon, outdoors, pink_ribbon, plant, potted_plant, rain, red_ribbon, ribbon, shirt, short_sleeves, skirt, sleeveless, solo, tying_hair, wet, wet_clothes, wet_shirt, white_shirt Negative prompt: ((((ugly)))),(((duplicate))), ((morbid)), ((mutilated)), (((tranny))), (((trans))), (((trannsexual))), (hermaphrodite), (out of frame), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), blurry, ((bad anatomy)), (((bad proportions))), ((extra limbs)), cloned face, (((disfigured))).(((more than 2 nipples))), out of frame, ugly, extra limbs, (bad anatomy), gross proportions, (malformed limbs), ((missing arms)),((missing legs)), (((extra arms))), (((extra legs))), mutated hands,(fused fingers), (too many fingers),(((long neck))) 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,text font ui,malformed hands,long neck,missing limb,Sleeveles,bad anatomy disfigured malformed mutated, (mutated hands and fingers :1.5),(long body :1.3), (mutation ,poorly drawn :1.2),bad anatomy disfigured malformed mutated,multiple breasts,bad feet,futa,yaoi Steps: 35, Sampler: Euler a, CFG scale: 7, Seed: 578241859, Size: 640×960, Model hash: 925997e9, Batch size: 2, Batch pos: 0

extremely detailed CG,HD wallpaper,((masterpiece)), best quality, illustration, 1 girl,loli, cat ear,beautiful detailed eyes,beautiful detailed sky, beautiful detailed water, cinematic lighting, dramatic angle, sailor dress, wet clothes,maidoutfit Negative prompt: ((((ugly)))),(((duplicate))), ((morbid)), ((mutilated)), (((tranny))), (((trans))), (((trannsexual))), (hermaphrodite), (out of frame), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), blurry, ((bad anatomy)), (((bad proportions))), ((extra limbs)), cloned face, (((disfigured))).(((more than 2 nipples))), out of frame, ugly, extra limbs, (bad anatomy), gross proportions, (malformed limbs), ((missing arms)),((missing legs)), (((extra arms))), (((extra legs))), mutated hands,(fused fingers), (too many fingers),(((long neck))) 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,text font ui,malformed hands,long neck,missing limb,Sleeveles,bad anatomy disfigured malformed mutated, (mutated hands and fingers :1.5),(long body :1.3), (mutation ,poorly drawn :1.2),bad anatomy disfigured malformed mutated,multiple breasts,bad feet,futa,yaoi Steps: 35, Sampler: Euler a, CFG scale: 8, Seed: 1227386117, Size: 640×960, Model hash: 925997e9, Batch size: 2, Batch pos: 0

  • 萌の领域是一个和谐有爱的ACG文化交流圈,这里是众多二次元文化爱好者的集结地。
  • 本文章是由 萌の领域 会员 judgeou 的创作作品。
  • 转载文章时请保留原出处,资源请重新打包!并且附上完整的地址:https://www.moezone.org/411180.html
  • 如资源链接失效,请先查看是否是两个星期之前的资源,超过时间默认不补档,请考虑是否要点击下载。其他情况请点击上方举报,等待管理员处理。
  • 下载之前请查看评论区,如果有人提示资源已失效请不要点击下载浪费萌币,也不要说作者骗币,下载消耗的萌币是被服务器回收了。

© 2019 - 2023 💝 MoeZone.Org