🚀 Canopus-LoRA-Flux-Anime
Canopus-LoRA-Flux-Anime 是一個專注於動漫風格圖像生成的模型。它基於特定的基礎模型進行訓練,能根據不同的提示詞生成多樣化的動漫圖像,適用於動漫創作、圖像設計等領域。
🚀 快速開始
環境設置
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/Canopus-Anime-Art-Flux-LoRA"
trigger_word = "Anime"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
觸發詞使用
你應該使用 Anime
來觸發圖像生成。
觸發提示詞示例
- Anime ((masterpiece,best quality, detailed)), outdoor,wind_lift, souryuu asuka langley, interface headset, red bodysuit, (realistic:1.3)
- An anime girl in a blue dress and straw hat, with long black hair and flowing curly bangs, in the style of anime, against a background of a coastal street by the sea, on a bright sunny day, with flowers on a windowsill, with a cheerful expression, with detailed design, with a watercolor painting effect, and vibrant colors, Hayao Miyazakis manga, with high resolution and clear details --ar 1:2 --stylize 750 --v 6.1
- Anime theme masterpiece,best quality,1girl,solo,looking at viewer, fur (clothing), black hair, black legwear,(electric guitar:1.4), reflection, splash, droplets, rust, sparks, asphalt, ground vehicle, sports car, super car, mechanical,burning, playing instrument, livestream.
觸發參數
參數 |
值 |
提示詞 |
Anime ((masterpiece,best quality, detailed)), outdoor,wind_lift, souryuu asuka langley, interface headset, red bodysuit, (realistic:1.3) |
採樣器 |
euler |
✨ 主要特性
- 專注於動漫風格圖像生成,可生成高質量、細節豐富的動漫圖像。
- 基於特定的基礎模型和 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/Canopus-Anime-Art-Flux-LoRA"
trigger_word = "Anime"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
💻 使用示例
基礎用法
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/Canopus-Anime-Art-Flux-LoRA"
trigger_word = "Anime"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
prompt = "Anime ((masterpiece,best quality, detailed)), outdoor,wind_lift, souryuu asuka langley, interface headset, red bodysuit, (realistic:1.3)"
image = pipe(prompt).images[0]
image.save("generated_image.png")
📚 詳細文檔
模型描述
prithivMLmods/Canopus-LoRA-Flux-Anime
圖像處理參數
參數 |
值 |
參數 |
值 |
學習率調度器 |
constant |
噪聲偏移 |
0.03 |
優化器 |
AdamW8bit |
多分辨率噪聲折扣 |
0.1 |
網絡維度 |
64 |
多分辨率噪聲迭代次數 |
10 |
網絡阿爾法 |
32 |
重複次數與步數 |
27 & 3.5K+ |
訓練輪數 |
17 |
每 N 輪保存一次 |
1 |
標註:florence2-en(自然語言 & 英語)
用於訓練的總圖像數:220+ [高分辨率]
圖像來源
請確保在項目中使用這些圖像時遵循每個來源的許可條款。
應用文件結構
/project-root/
├── .gitattributes
├── README.md
├── app.py
├── pythonproject.py
模型下載
該模型的權重以 Safetensors 格式提供。
點擊下載,在文件與版本選項卡中獲取。
🔧 技術細節
模型仍處於訓練階段,這不是最終版本,可能會包含瑕疵,在某些情況下表現不佳。
📄 許可證
本模型使用的許可證為 creativeml-openrail-m。
圖像示例
提示詞 |
生成圖像 |
Anime ((masterpiece,best quality, detailed)), outdoor,wind_lift, souryuu asuka langley, interface headset, red bodysuit, (realistic:1.3) |
 |
An anime girl in a blue dress and straw hat, with long black hair and flowing curly bangs, in the style of anime, against a background of a coastal street by the sea, on a bright sunny day, with flowers on a windowsill, with a cheerful expression, with detailed design, with a watercolor painting effect, and vibrant colors, Hayao Miyazakis manga, with high resolution and clear details --ar 1:2 --stylize 750 --v 6.1 |
 |
Anime theme masterpiece,best quality,1girl,solo,looking at viewer, fur (clothing), black hair, black legwear,(electric guitar:1.4), reflection, splash, droplets, rust, sparks, asphalt, ground vehicle, sports car, super car, mechanical,burning, playing instrument, livestream. |
 |
Anime girl, swimsuit, red eyes, brown hair |
 |
Well-fitting man equipped with hoodie and cap hiding upper face in anime manga style |
 |
Pretty cyborg lady, lots of details, sakura flowers, fine art, futuristic setting |
 |
更多示例
⚠️ 重要提示
模型仍處於訓練階段,這不是最終版本,可能會包含瑕疵,在某些情況下表現不佳。
💡 使用建議
使用時請確保遵循各圖像來源的許可條款,同時可根據不同的提示詞和參數組合,生成多樣化的動漫圖像。