stable-diffusion 3 体验部署流程(ComfyUI)

环境准备

下载及简介

git clone https://huggingface.co/stabilityai/stable-diffusion-3-medium
SD3 checkpoints:

  1. sd3_medium_incl_clips.safetensors (5.5GB)
  2. sd3_medium_incl_clips_t5xxlfp8.safetensors (10.1GB)
  3. sd3_medium.safetensors (4.3GB)

前两个可以像 ComfyUI 中的任何常规checkpoints一样使用。这两个checkpoints之间的区别在于,第一个仅包含 2 个文本编码器:CLIP-L 和 CLIP-G,第二个包含 3 个:CLIP-L、CLIP-G 和 T5XXL。第三个模型不包含文本编码器,必须单独加载它们才能使用该文件。

模型保存

把如下三个模型放在 ComfyUI/models/checkpoints/ 目录中(可以选择其中一个模型体验)

  • sd3_medium_incl_clips.safetensors
  • sd3_medium_incl_clips_t5xxlfp8.safetensors
  • sd3_medium.safetensors
文本编码器保存

从text_encoders目录下载文本编码器,选择其中的一个文件保存到ComfyUI/models/clip/目录中:

  • clip_g.safetensors
  • clip_l.safetensors
  • t5xxl_fp8_e4m3fn.safetensors
  • t5xxl_fp16.safetensors

ComfyUI 测试体验

打开comfyui 界面 导入脚本并执行:

{"last_node_id": 272,"last_link_id": 599,"nodes": [{"id": 11,"type": "TripleCLIPLoader","pos": [-1885,-49],"size": {"0": 315,"1": 106},"flags": {},"order": 0,"mode": 0,"outputs": [{"name": "CLIP","type": "CLIP","links": [5,94],"shape": 3,"slot_index": 0}],"properties": {"Node name for S&R": "TripleCLIPLoader"},"widgets_values": ["clip_g.safetensors","clip_l.safetensors","t5xxl_fp8_e4m3fn.safetensors"]},{"id": 71,"type": "CLIPTextEncode","pos": [-1869.2871546875003,560.071803930664],"size": {"0": 380.4615783691406,"1": 102.07693481445312},"flags": {},"order": 6,"mode": 0,"inputs": [{"name": "clip","type": "CLIP","link": 94}],"outputs": [{"name": "CONDITIONING","type": "CONDITIONING","links": [93,580],"shape": 3,"slot_index": 0}],"title": "CLIP Text Encode (Negative Prompt)","properties": {"Node name for S&R": "CLIPTextEncode"},"widgets_values": ["bad quality, poor quality, doll, disfigured, jpg, toy, bad anatomy, missing limbs, missing fingers, 3d, cgi"],"color": "#322","bgcolor": "#533"},{"id": 68,"type": "ConditioningSetTimestepRange","pos": [-1010,167],"size": {"0": 317.4000244140625,"1": 82},"flags": {},"order": 10,"mode": 0,"inputs": [{"name": "conditioning","type": "CONDITIONING","link": 90}],"outputs": [{"name": "CONDITIONING","type": "CONDITIONING","links": [91],"shape": 3,"slot_index": 0}],"properties": {"Node name for S&R": "ConditioningSetTimestepRange"},"widgets_values": [0.1,1]},{"id": 70,"type": "ConditioningSetTimestepRange","pos": [-1006,314],"size": {"0": 317.4000244140625,"1": 82},"flags": {},"order": 8,"mode": 0,"inputs": [{"name": "conditioning","type": "CONDITIONING","link": 93,"slot_index": 0}],"outputs": [{"name": "CONDITIONING","type": "CONDITIONING","links": [92],"shape": 3,"slot_index": 0}],"properties": {"Node name for S&R": "ConditioningSetTimestepRange"},"widgets_values": [0,0.1]},{"id": 67,"type": "ConditioningZeroOut","pos": [-1370,337],"size": {"0": 211.60000610351562,"1": 26},"flags": {},"order": 9,"mode": 0,"inputs": [{"name": "conditioning","type": "CONDITIONING","link": 580}],"outputs": [{"name": "CONDITIONING","type": "CONDITIONING","links": [90],"shape": 3,"slot_index": 0}],"properties": {"Node name for S&R": "ConditioningZeroOut"}},{"id": 266,"type": "Note","pos": [-2352,576],"size": {"0": 308.061279296875,"1": 102.86902618408203},"flags": {},"order": 1,"mode": 0,"properties": {"text": ""},"widgets_values": ["Resolution should be around 1 megapixel and width/height must be multiple of 64"],"color": "#432","bgcolor": "#653"},{"id": 13,"type": "ModelSamplingSD3","pos": [-974,-220],"size": {"0": 315,"1": 58},"flags": {"collapsed": false},"order": 7,"mode": 0,"inputs": [{"name": "model","type": "MODEL","link": 565}],"outputs": [{"name": "MODEL","type": "MODEL","links": [591],"shape": 3,"slot_index": 0}],"properties": {"Node name for S&R": "ModelSamplingSD3"},"widgets_values": [3]},{"id": 69,"type": "ConditioningCombine","pos": [-662,165],"size": {"0": 228.39999389648438,"1": 46},"flags": {},"order": 11,"mode": 0,"inputs": [{"name": "conditioning_1","type": "CONDITIONING","link": 91},{"name": "conditioning_2","type": "CONDITIONING","link": 92}],"outputs": [{"name": "CONDITIONING","type": "CONDITIONING","links": [592],"shape": 3,"slot_index": 0}],"properties": {"Node name for S&R": "ConditioningCombine"}},{"id": 233,"type": "PreviewImage","pos": [535.1143750722272,-147.92548481673106],"size": {"0": 604.7489624023438,"1": 592.15576171875},"flags": {},"order": 14,"mode": 0,"inputs": [{"name": "images","type": "IMAGE","link": 599}],"properties": {"Node name for S&R": "PreviewImage"}},{"id": 231,"type": "VAEDecode","pos": [141,-177],"size": {"0": 210,"1": 46},"flags": {},"order": 13,"mode": 0,"inputs": [{"name": "samples","type": "LATENT","link": 596},{"name": "vae","type": "VAE","link": 557}],"outputs": [{"name": "IMAGE","type": "IMAGE","links": [599],"shape": 3,"slot_index": 0}],"properties": {"Node name for S&R": "VAEDecode"}},{"id": 252,"type": "CheckpointLoaderSimple","pos": [-2314,-203],"size": {"0": 746.7357788085938,"1": 98},"flags": {},"order": 2,"mode": 0,"outputs": [{"name": "MODEL","type": "MODEL","links": [565],"shape": 3,"slot_index": 0},{"name": "CLIP","type": "CLIP","links": [],"shape": 3,"slot_index": 1},{"name": "VAE","type": "VAE","links": [557],"shape": 3,"slot_index": 2}],"properties": {"Node name for S&R": "CheckpointLoaderSimple"},"widgets_values": ["sdv3/2b_1024/sd3_medium.safetensors"]},{"id": 271,"type": "KSampler","pos": [-269,-179],"size": {"0": 315,"1": 446},"flags": {},"order": 12,"mode": 0,"inputs": [{"name": "model","type": "MODEL","link": 591},{"name": "positive","type": "CONDITIONING","link": 595},{"name": "negative","type": "CONDITIONING","link": 592},{"name": "latent_image","type": "LATENT","link": 593},{"name": "seed","type": "INT","link": 597,"widget": {"name": "seed"},"slot_index": 4}],"outputs": [{"name": "LATENT","type": "LATENT","links": [596],"shape": 3,"slot_index": 0}],"properties": {"Node name for S&R": "KSampler"},"widgets_values": [945512652412924,"fixed",28,4.5,"dpmpp_2m","sgm_uniform",1]},{"id": 135,"type": "EmptySD3LatentImage","pos": [-2352,438],"size": {"0": 315,"1": 106},"flags": {},"order": 3,"mode": 0,"inputs": [],"outputs": [{"name": "LATENT","type": "LATENT","links": [593],"shape": 3,"slot_index": 0}],"properties": {"Node name for S&R": "EmptySD3LatentImage"},"widgets_values": [1024,1024,1]},{"id": 6,"type": "CLIPTextEncode","pos": [-1876.2871546875003,284.0718039306641],"size": {"0": 389.06927490234375,"1": 207.84902954101562},"flags": {},"order": 5,"mode": 0,"inputs": [{"name": "clip","type": "CLIP","link": 5}],"outputs": [{"name": "CONDITIONING","type": "CONDITIONING","links": [595],"shape": 3,"slot_index": 0}],"properties": {"Node name for S&R": "CLIPTextEncode"},"widgets_values": ["a female character with long, flowing hair that appears to be made of ethereal, swirling patterns resembling the Northern Lights or Aurora Borealis. The background is dominated by deep blues and purples, creating a mysterious and dramatic atmosphere. The character's face is serene, with pale skin and striking features. She wears a dark-colored outfit with subtle patterns. The overall style of the artwork is reminiscent of fantasy or supernatural genres"],"color": "#232","bgcolor": "#353"},{"id": 272,"type": "PrimitiveNode","pos": [-2342,278],"size": {"0": 210,"1": 82},"flags": {},"order": 4,"mode": 0,"outputs": [{"name": "INT","type": "INT","links": [597],"slot_index": 0,"widget": {"name": "seed"}}],"title": "Seed","properties": {"Run widget replace on values": false},"widgets_values": [945512652412924,"fixed"]}],"links": [[5,11,0,6,0,"CLIP"],[90,67,0,68,0,"CONDITIONING"],[91,68,0,69,0,"CONDITIONING"],[92,70,0,69,1,"CONDITIONING"],[93,71,0,70,0,"CONDITIONING"],[94,11,0,71,0,"CLIP"],[557,252,2,231,1,"VAE"],[565,252,0,13,0,"MODEL"],[580,71,0,67,0,"CONDITIONING"],[591,13,0,271,0,"MODEL"],[592,69,0,271,2,"CONDITIONING"],[593,135,0,271,3,"LATENT"],[595,6,0,271,1,"CONDITIONING"],[596,271,0,231,0,"LATENT"],[597,272,0,271,4,"INT"],[599,231,0,233,0,"IMAGE"]],"groups": [{"title": "Load Models","bounding": [-2410,-339,969,488],"color": "#3f789e","font_size": 24},{"title": "Input","bounding": [-2409,181,972,523],"color": "#3f789e","font_size": 24},{"title": "Output","bounding": [464,-273,741,814],"color": "#3f789e","font_size": 24}],"config": {},"extra": {},"version": 0.4
}

测试结果展示
image.png
image.png
image.png
image.png
image.png
image.png


【Qinghub Studio 】更适合开发人员的低代码开源开发平台
QingHub企业级应用统一部署
QingHub企业级应用开发管理
QingHub演示
https://qingplus.cn

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/bicheng/26598.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

SAP OB52 财务账期月结月底月初开关

公告:周一至周五每日一更,周六日存稿,请您点“关注”和“在看”,后续推送的时候不至于看不到每日更新内容,感谢。 这是一条刮刮乐,按住全部选中:点关注的人最帅最美,欢迎&#xff1…

vuInhub靶场实战系列--Kioptrix Level #4

免责声明 本文档仅供学习和研究使用,请勿使用文中的技术源码用于非法用途,任何人造成的任何负面影响,与本人无关。 目录 免责声明前言一、环境配置1.1 靶场信息1.2 靶场配置 二、信息收集2.1 主机发现2.1.1 netdiscover2.1.2 arp-scan主机扫描 2.2 端口扫描2.3 指纹识别2.4 目…

nodejs——原型链污染

一、引用类型皆为对象 原型和原型链都是来源于对象而服务于对象的概念,所以我们要先明确一点: JavaScript中一切引用类型都是对象,对象就是属性的集合。 Array类型、Function类型、Object类型、Date类型、RegExp类型等都是引用类型。 也就…

Vue22-v-model收集表单数据

一、效果图 二、代码 2-1、HTML代码 2-2、vue代码 1、v-model单选框的收集信息 v-model:默认收集的就是元素中的value值。 单选框添加默认值: 2、v-model多选框的收集信息 ①、多个选择的多选 注意: 此处的hobby要是数组!&…

【深度学习基础】激活函数:Tanh、Sigmoid 和 Softmax

激活函数是深度学习模型中不可或缺的一部分,它们赋予神经网络强大的非线性变换能力,使其能够拟合复杂的函数关系。在这篇博文中,我们将探讨三种常见的激活函数:Tanh、Sigmoid 和 Softmax,并提供一些记忆它们的技巧。 1…

C++基础知识(八:STL标准库 deque )

deque在C的STL(Standard Template Library)中是一个非常强大的容器,它的全称是“Double-Ended Queue”,即双端队列。deque结合了数组和链表的优点,提供了在两端进行高效插入和删除操作的能力,同时保持了随机访问的特性。 双端队列…

#慧眼识模每日PK[话题]##用五种语言说爸爸我爱你[话题]#

#慧眼识模每日PK #用五种语言说爸爸我爱你 你觉得哪个模型回答得更好?欢迎留言 A.蓝 B.紫 更多问题,扫码体验吧~ by 国家(杭州)新型交换中心

养猫发现猫毛过敏?宠物空气净化器真的能拯救猫毛过敏吗?

广东省 猫咪是许多人梦寐以求的伴侣,但对于轻度猫毛过敏和鼻炎患者来说,养猫似乎是个遥不可及的梦想。我常在社交媒体上羡慕地观看朋友们的吸猫日常,却因过敏无法亲自养猫。这种遗憾驱使我寻找解决方案,从研究低过敏猫种到尝试空气…

2024/06/13--代码随想录算法3/17|01背包问题 二维、01背包问题 一维、416. 分割等和子集

01背包问题 二维 卡码网链接 动态规划5步曲 确定dp数组(dp table)以及下标的含义:dp[i][j] :从下标为[0,i-1]个物品中任取,放进容量为j的背包,价值总和最大为多少。确定递推公式, 有两个方向可…

算法专题总结链接地址

刷力扣的时候会遇到一些总结类型的题解,在此记录,方便自己以后找 前缀和 前缀和https://leetcode.cn/problems/unique-substrings-in-wraparound-string/solutions/432752/xi-fa-dai-ni-xue-suan-fa-yi-ci-gao-ding-qian-zhui-/ 单调栈 单调栈https:…

Javaweb04-Servlet技术2(HttpServletResponse, HttpServletRequest)

Servlet技术基础 HttpServletResponse对象 HttpServletResponce对象是继承ServletResponse接口,专门用于封装Http请求 HttpServletResponce有关响应行的方法 方法说明功能描述void setStatus(int stauts)用于设置HTTP响应消息的状态码,并生成响应状态…

第17章通信系统架构设计理论与实践

常见的5种常用的网络架构和构建网络的相关技术,以及网络构建的分析和设计方法。 17.1通信系统概述 通信技术和网络技术的发展,通信网络发生很大变化,入网的形式变化,传输的速率的提高、接入网络的方式多样化、网络结构的更为复杂…

~$开头的临时文件是什么?可以删除吗?

(2023.12.4) 在进行Word文档编辑的时候,都会产生一个以~$开头的临时文件,它会自动备份文档编辑内容,若是正常关闭程序,这个文档就会自动消失;而在非正常情况下关闭word文档,如断电&…

考研计组chap2数据的表示和运算(补充)

一、进位计数制 1.r进制 第i位表示r进制的权为i 2.进制转换 (1)r->10 对应位置数*权值 (2)2 -> 16 or 8 每三位2进制数可表示1位16进制 每四位2进制数可表示1位16进制 so 分开之后转为16进制即可 eg:11…

JDK8新特性【接口新特征、lambda语法、Supplier、Consumer、Function、Predicate】

目录 一、关于接口的新特性1.1 jdk1.8之前的接口重要特性1.2 JDK8以后代码演示 1.3 总结通过代码演示发现作用 二、Lambda表达式[重点]2.1 将匿名内部类写法改写为lambda写法2.2 语法特点能够写成lambda形式的的前提语法特征代码演示深入理解lambda 2.3 总结 三、函数式接口3.1…

ISO17025认证是什么?怎么做?

ISO17025认证是一种国际通用的实验室质量管理体系认证,其目标是确保实验室的技术能力、管理水平以及测试结果的可靠性和准确性达到国际认可的标准。该认证由国际标准化组织(ISO)和国际电工委员会(IEC)联合发布&#xf…

pytorch神经网络训练(AlexNet)

导包 import osimport torchimport torch.nn as nnimport torch.optim as optimfrom torch.utils.data import Dataset, DataLoaderfrom PIL import Imagefrom torchvision import models, transforms 定义自定义图像数据集 class CustomImageDataset(Dataset): 定义一个自…

美丽的拉萨,神奇的布达拉宫

原文链接:美丽的拉萨,神奇的布达拉宫 2022年11月30日,可能将成为一个改变人类历史的日子——美国人工智能开发机构OpenAI推出了聊天机器人ChatGPT-3.5,将人工智能的发展推向了一个新的高度。2023年11月7日,OpenAI首届…

TcpClient 服务器、客户端连接

TcpClient 服务器 TcpListener 搭建tcp服务器的类,基于socket套接字通信的 1 创建服务器对象 TcpListener server new TcpListener(IPAddress.Parse("127.0.0.1"), 3000); 2 开启服务器 设置最大连接数 server.Start(1000); 3 接收客户端的链接,只能…

Android帧绘制流程深度解析 (二)

书接上回:Android帧绘制流程深度解析 (一) 5、 dispatchVsync: 在请求Vsync以后,choreographer会等待Vsync的到来,在Vsync信号到来后,会触发dispatchVsync函数,从而调用onVsync方法…