🚀 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
作為觸發詞,以獲得更好的圖像生成效果。同時,可以根據需要調整提示詞的描述,以生成符合需求的電子書封面。