🚀 EBook-Creative-Cover-Flux-LoRA
本项目是一个用于生成电子书封面的模型,基于特定的基础模型和LoRA技术,可根据输入的提示词生成多样化的电子书封面图片。目前该模型仍处于训练阶段,后续会不断优化。
🚀 快速开始
环境设置
import torch
from pipelines import DiffusionPipeline
base_model = "black-forest-labs/FLUX.1-dev"
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
lora_repo = "prithivMLmods/EBook-Creative-Cover-Flux-LoRA"
trigger_word = "EBook Cover"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
✨ 主要特性
- 多样化封面生成:可根据不同的提示词生成各种风格的电子书封面,如古代遗迹、特写视角等。
- 特定尺寸支持:支持生成1024 x 1024(默认)和768 x 1024尺寸的封面图片。
📦 安装指南
目前文档未提供具体的安装步骤,可参考上述快速开始中的环境设置部分进行操作。
💻 使用示例
基础用法
你可以使用以下提示词触发图像生成:
EBook Cover, An eye-level view of an ancient ruins, with the words "ECHOES OF THE PAST" written in gold in the center of the image. The ruins are made of stone, and the pillars are adorned with intricate carvings. In the background, a mountain can be seen. The sky is a muted yellow, and at the top, the word "By Cesar Blair" is written in a bold black font.
高级用法
以下是一个768 x 1024尺寸的示例提示词及生成效果:
提示词 |
Close-up, eye-level view of a mysterious eBook cover titled "The Lost Path." The background is a worn, dark blue, with faint compass markings across the cover. The title, "The Lost Path," is written in a bold, metallic silver font, slightly distressed. Beneath the title, the author's name, "By Caroline Grey," appears in a smaller, elegant font in white. |

📚 详细文档
模型描述
prithivMLmods/EBook-Creative-Cover-Flux-LoRA
属性 |
详情 |
模型类型 |
基于LoRA技术的图像生成模型 |
基础模型 |
black-forest-labs/FLUX.1-dev |
LR调度器 |
constant |
噪声偏移 |
0.03 |
优化器 |
AdamW |
多分辨率噪声折扣 |
0.1 |
网络维度 |
64 |
多分辨率噪声迭代次数 |
10 |
网络Alpha |
32 |
重复次数和步数 |
23 & 2240 |
训练轮数 |
15 |
每N轮保存一次 |
1 |
标注方式 |
florence2 - en(自然语言 & 英语) |
训练使用的总图像数 |
17 [高分辨率] |
最佳尺寸
- 1024 x 1024(默认)
- 768 x 1024
触发词
你应该使用 EBook Cover
来触发图像生成。
下载模型
该模型的权重以Safetensors格式提供。
点击下载 ,可在“文件与版本”标签中找到。
数据来源
🔧 技术细节
本模型基于 black-forest-labs/FLUX.1-dev
基础模型,使用LoRA(Low-Rank Adaptation)技术进行微调。在训练过程中,使用了特定的图像标注方式 florence2 - en
,并对图像进行了高分辨率处理。通过设置一系列的训练参数,如LR调度器、优化器等,不断优化模型性能。
📄 许可证
本模型使用 creativeml-openrail-m
许可证。
⚠️ 重要提示
该模型仍处于训练阶段,这不是最终版本,可能会包含瑕疵,并且在某些情况下表现不佳。
💡 使用建议
建议使用 EBook Cover
作为触发词,以获得更好的图像生成效果。同时,可以根据需要调整提示词的描述,以生成符合需求的电子书封面。