🚀 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 |
 |
更多示例
⚠️ 重要提示
模型仍处于训练阶段,这不是最终版本,可能会包含瑕疵,在某些情况下表现不佳。
💡 使用建议
使用时请确保遵循各图像来源的许可条款,同时可根据不同的提示词和参数组合,生成多样化的动漫图像。