🚀 FLUX.1-dev-LoRA-AutumnSpringTrees
本项目是一个针对 FLUX.1 [dev] 的 LoRA 微调模型,专注于生成以秋季风景、树叶和自然环境为特色的季节性景观。它借助 Fluxgym 进行训练,使用了作者亲手收集的秋季/春季植物照片数据集。
🚀 快速开始
本 LoRA 增强了 FLUX.1 [dev] 生成详细秋季景观的能力,能呈现丰富鲜艳的秋色、细节丰富的树木和季节性元素。使用触发词 autumnProxy
来激活特定的秋季生成功能。
✨ 主要特性
- 此 LoRA 专门用于生成季节性景观,尤其擅长秋季风景、树叶和自然环境的生成。
- 增强了 FLUX.1 [dev] 生成详细秋季景观的能力,具有丰富、鲜艳的秋色、细节丰富的树木和季节性元素。
- 使用触发词
autumnProxy
可激活特定的秋季生成功能。
- 具有增强的秋季调色板(红色、橙色、黄色、绿色)、详细的树木和树叶结构、自然的季节性光照效果、大气元素(如雾和薄雾)以及逼真的落叶地面覆盖效果。
📦 安装指南
首先,确保你已经安装了 FLUX.1 [dev]:
pip install -U diffusers
import torch
from diffusers import FluxPipeline
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
pipe.enable_model_cpu_offload()
pipe.load_lora_weights("Borcherding/FLUX.1-dev-LoRA-AutumnSpringTrees")
prompt = "autumnProxy A majestic maple tree with vibrant red and orange leaves, golden afternoon light"
image = pipe(
prompt,
height=1024,
width=1024,
guidance_scale=3.5,
num_inference_steps=50,
max_sequence_length=512,
generator=torch.Generator("cpu").manual_seed(0)
).images[0]
image.save("autumn-scene.png")
pipe.unload_lora_weights()
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
pipe.load_lora_weights("Borcherding/FLUX.1-dev-LoRA-AutumnSpringTrees")
pipe.merge_lora_weights()
pipe.save_pretrained("FLUX.1-dev-LoRA-AutumnSpringTrees-merged")
💻 使用示例
基础用法
在提示词中使用 autumnProxy
来触发图像生成,将触发词放在提示词的开头可获得最佳效果。
"autumnProxy A peaceful forest path covered in fallen maple leaves, morning mist rising"
"autumnProxy Ancient oak trees with twisted branches, leaves turning golden and red"
"autumnProxy Scenic mountain valley with autumn colors, warm sunset light"
高级用法
本模型具有一些专业特性,如增强的秋季调色板(红色、橙色、黄色、绿色)、详细的树木和树叶结构、自然的季节性光照效果、大气元素(如雾和薄雾)以及逼真的落叶地面覆盖效果。你可以在提示词中结合这些特性来生成更丰富的图像。
"autumnProxy A forest with red, orange and yellow trees, a small stream flowing through, and fog in the air"
📚 详细文档
触发词
你应该使用 autumnProxy
来触发图像生成。
下载模型
此模型的权重以 Safetensors 格式提供。
点击下载,在“Files & versions”标签中获取。
📄 许可证
此 LoRA 遵循与 FLUX.1 [dev] 相同的许可条款。请参考基础模型的许可证以了解使用条款。
致谢
- 基础模型:由 Black Forest Labs 开发的 FLUX.1 [dev]
- LoRA 训练和开发:[Borcherding at BorchInk]