ForgeUI中使用SD3.5大模型

1 引言

Stability AI 发布了SD3.0的后续版本,即SD3.5大模型。ComfyUI已支持该模型,ForgeUI还需等待后续更新。本人在某管(传送门:SD3.5 EN FORGE WEBUI,博主是西班牙的Academia SD,有上网条件的朋友可以直接观看他的视频,如果能订阅点赞最好啦)找到一种在当前ForgeUI抢鲜体验SD3.5的方法,在这里也分享给大家。

CK参数大小备注
SD3.020亿\只能说差强人意
SD3.5 Large80亿15G

商用友好

听说不错  准备试试

估计效果会在Flux schnel和FP8之间

SD3.5Large Turbo80亿15G
Flux.1(FP8)120亿11G

dev商用不友好

Flux schnel效果打折扣

B站发布了大量Flux与SD3.5的对比测评,这里推荐几个(如果可以,请给各位UP一键三连哦)

1.SD3.5深度评测 全方位对比FLUX模型

2. 重磅更新!SD3.5!真正的开源可商用dit模型

3.SD3深度评测 对比Midjourney

 2 在ForgeUI中使用SD3.5

话不多说,直接上干货。

2.1 准备工作

(0) 更新ForgeUI

  • 使用原生UI的读者,请运行update.bat文件(不推荐,更新后也可能不能成功使用SD3.5)
  • 使用秋叶启动的读者(非常推荐),请更新到2024.10.02发布的开发版本(其他版本可能不能成功使用SD3.5)

(1)下载SD3.5模型

  • Liblib(推荐,速度很快)或者Hugging Face(需上网技巧)下载sd3.5_large_turbo.safetensors(4步快速出图版本,推荐)或者sd3.5_large.safetensors文件(ForgeUI使用这个模型效果不佳,没搞懂为什么,欢迎评论区交流
  • 将sd3.5模型放到ForgeUI目录的\models\Stable-diffusion文件夹下

(2)下载编码文件

  • 可在Hugging Face(需上网技巧)下载clip_g.safetensorsclip_l.safetensorst5xxl_fp8_e4m3fn.safetensors(也可下载t5xxl_fp16.safetensors,看自己配置自行决定就好)三个文件
  • 将上述文件放置到ForgeUI目录的\models\text_encoder文件夹下

   提示

  • 一般来说,若之前使用过Flux大模型,这几个文件不需重复下载
  • clip_l.safetensors,t5xxl_fp8_e4m3fn.safetensors也可在Liblib下载,clip_g.safetensors(大小1.3G)真的没找到不需上网技巧和网盘的方法,请大家克服一下网盘限速或者直接在报脸下载,1.3G要不了太久。

(3) 下载SD3.5的ForgeUI适配文件

  • 下载由博主Academia SD提供的SD35_ForgeV2.zip文件(需上网技巧)
  • 将上述压缩文件解压后得到backend、modules、repositories三个文件夹;然后将上述文件夹复制到forgeUI根目录(就是原本就含有backend、modules、repositories的位置,点击替换文件就ok)

(4)整合文件

若读者没有上网技巧或魔法值不足,也可下载我的百度盘整理包。网盘里面包含了sd3.5模型、编码文件,SD3.5适配文件,但编码文件没有t5xxl_fp16.safetensors,若确有需要,建议去报脸下载。

PS:这里就不提供ForgeUI的安装方式了哦,网上有很多教程,需要的小伙伴可自行寻找。

2.2 SD3.5使用教程 

2.2.1 设置

完成上一节所有准备后,请参照以下设置:

  • UI选择all,checkpoint选择SD_3.5_L_Turbo.safetensors,VAE / Text Encoder选择clip_g.safetensors,clip_l.safetensors,t5xxl_fp8_e4m3fn.safetensors采样器选择Euler/DPM++2M,调度器选择SGM Uniform(个人感觉采样/调度器选择这个搭配比较好),也可以选择Euler+beta
  • CFG scale设置为1(重要),不需要负面提示词
  • Distilled CFG Scale可设置为4(按需设置)
  • 图片尺寸:按需设置
  • 迭代步数:只需4步

2.2.2 一个例子

如果希望复刻我的图片,请按照以下设置:

  • 正面提示词
A cute and charming girl wears a soft and fluffy Cat's ears (Steamed cat-ear shaped bread) headdress on her head. The inside of the cat ear is light pink,and the tip of the ear is white. Her face is delicate and small,her skin is fair and rosy,her eyes are deep and clear like lake water,and her eyelashes are long and curly. Her black and shiny hair draped over her shoulders,with a few strands resting on her cheeks. She was wearing a loose white sweater with a slightly open neckline revealing a slender neck. The sweater had snowflake like patterns and was paired with a light blue short skirt with lace trim. Her lips were like rose petals,slightly pouting with a smile,and she had silver earrings hanging from her ears.,
A blurred light gray space with subtle light and shadow transitions,resembling a simple indoor scene,but without many specific furniture or decorative elements,mainly to highlight the main characters.,
The overall color tone is mainly soft and elegant. The white sweater and light blue skirt of the main character laid the foundation of the light color system,and the light pink and white of the Cat's ears (Steamed cat-ear shaped bread) headdress were also soft colors. The light gray color tone of the background echoes the subject and does not grab their attention,creating a fresh,cute,and slightly dreamy color atmosphere throughout the entire picture.,
  • 负面提示词:不填
  • UI选择all,checkpoint选择SD_3.5_L_Turbo.safetensors
  • 迭代步数:4
  • VAE / Text Encoder选择clip_g,clip_l,t5xxl_fp8_e4m3fn
  • 采样器选择Euler,调度器选择SGM Uniform
  • CFG scale设置1,Distilled CFG Scale设置4
  • 图片尺寸:1024*1536
  • 随机种:118341057987932
  • 其他设置:默认
  • 图片效果:

A cute and charming girl wears a soft and fluffy Cat's ears (Steamed cat-ear shaped bread) headdress on her head. The inside of the cat ear is light pink,and the tip of the ear is white. Her face is delicate and small,her skin is fair and rosy,her eyes are deep and clear like lake water,and her eyelashes are long and curly. Her black and shiny hair draped over her shoulders,with a few strands resting on her cheeks. She was wearing a loose white sweater with a slightly open neckline revealing a slender neck. The sweater had snowflake like patterns and was paired with a light blue short skirt with lace trim. Her lips were like rose petals,slightly pouting with a smile,and she had silver earrings hanging from her ears.,
A blurred light gray space with subtle light and shadow transitions,resembling a simple indoor scene,but without many specific furniture or decorative elements,mainly to highlight the main characters.,
The overall color tone is mainly soft and elegant. The white sweater and light blue skirt of the main character laid the foundation of the light color system,and the light pink and white of the Cat's ears (Steamed cat-ear shaped bread) headdress were also soft colors. The light gray color tone of the background echoes the subject and does not grab their attention,creating a fresh,cute,and slightly dreamy color atmosphere throughout the entire picture.,
Steps: 4, Sampler: Euler, Schedule type: SGM Uniform, CFG scale: 1, Seed: 118341057987932, Size: 1024x1536, Model hash: 6b6a0d8eb2, Model: SD_3.5_L_Turbo, Conditional mask weight: 1, Version: f2.0.1v1.10.1-previous-546-gf4d5e8ca, Module 1: clip_g, Module 2: clip_l, Module 3: t5xxl_fp8_e4m3fn

OK啦 hope you all enjoy SD3.5 in ForgeUI.

### 解决 IntelliJ IDEA 中 `@Autowired` 注解导致的红色波浪线错误 在使用 Spring 框架时,如果遇到 `@Autowired` 注解下的依赖注入对象显示为红色波浪线错误或者黄色警告的情况,通常是由以下几个原因引起的: #### 1. **Spring 插件未启用** 如果 Spring 支持插件未被激活,则可能导致 IDE 无法识别 `@Autowired` 或其他 Spring 特定的功能。可以通过以下方式解决问题: - 打开设置菜单:`File -> Settings -> Plugins`。 - 确认已安装并启用了名为 “Spring Framework Support” 的官方插件[^1]。 #### 2. **项目配置文件缺失或不正确** Spring 需要通过 XML 文件、Java Config 类或其他形式来定义 Bean 定义。如果没有正确加载这些配置文件,可能会导致 `@Autowired` 报错。 - 确保项目的 `applicationContext.xml` 或者基于 Java 的配置类(带有 `@Configuration` 和 `@Bean` 注解)已被正确定义和引入。 - 对于 Spring Boot 项目,确认是否存在 `spring.factories` 文件以及是否包含了必要的组件扫描路径[^3]。 #### 3. **模块依赖关系问题** 当前模块可能缺少对 Spring Core 或 Context 组件库的有效引用。这可能是由于 Maven/Gradle 构建工具中的依赖项声明不足造成的。 - 检查 `pom.xml` (Maven) 或 `build.gradle` (Gradle),确保包含如下核心依赖之一: ```xml <!-- For Maven --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>${spring.version}</version> </dependency> ``` ```gradle // For Gradle implementation &#39;org.springframework:spring-context:${springVersion}&#39; ``` - 更新项目依赖树以应用更改:右键点击项目根目录 -> `Maven -> Reload Project` 或运行命令 `./gradlew build --refresh-dependencies`。 #### 4. **IDE 缓存损坏** Intellij IDEA 的缓存机制有时会因各种因素而失效,从而引发误报错误。清除缓存可以有效缓解此类情况。 - 使用快捷组合键 `Ctrl + Alt + Shift + S` 进入项目结构对话框;也可以尝试执行操作序列:`File -> Invalidate Caches / Restart... -> Invalidate and Restart`. #### 5. **启动异常影响正常解析** 若之前存在类似 `com.intellij.diagnostic.PluginException` 的严重初始化失败日志记录,则表明某些关键服务未能成功加载,进而干扰到后续功能表现[^2]。建议重新下载最新稳定版本的 IDEA 并按照标准流程完成初次部署工作。 ```java // 示例代码片段展示如何正确运用 @Autowired 注解实现自动装配 @Service public class StudentService { private final Repository repository; public StudentService(@Qualifier("specificRepository") Repository repo){ this.repository = repo; } } @Component class SpecificComponent{ @Autowired private transient StudentService studentService; // 此处应无任何编译期告警现象发生 } ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

syphomn

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值