🚀 漫画风格LoRA模型:ComicStrips_flux_lora_v1_fp16
本项目是基于Flux模型微调得到的模型,采用LoRA(低秩自适应)技术进行训练,专门用于生成《卡尔文与霍布斯》风格的漫画。该模型借助 Ostris的AI工具包 进行训练,让你能够利用卡尔文和霍布斯这两个经典角色,创作出有趣且引人入胜的漫画场景。
🚀 快速开始
触发词
你需要使用 Calvin and Hobbs
来触发图像生成。
下载模型并在ComfyUI、AUTOMATIC1111、SD.Next、Invoke AI等中使用
该模型的权重以Safetensors格式提供。你可以在 文件与版本 选项卡中下载。
使用 🧨 diffusers 库
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('zhreyu/ComicStrips-Lora-Fluxdev', weight_name='ComicStrips_flux_lora_v1_fp16.safetensors')
image = pipeline('Calvin and Hobbs swimming in the pool chatting about drinking lemonade').images[0]
image.save("my_image.png")
更多详细信息,包括LoRA的加权、合并和融合,请查看 diffusers中加载LoRA的文档。
💻 使用示例
基础用法
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('zhreyu/ComicStrips-Lora-Fluxdev', weight_name='ComicStrips_flux_lora_v1_fp16.safetensors')
image = pipeline('Calvin and Hobbs swimming in the pool chatting').images[0]
image.save("basic_example.png")
高级用法
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('zhreyu/ComicStrips-Lora-Fluxdev', weight_name='ComicStrips_flux_lora_v1_fp16.safetensors')
image = pipeline('Calvin and Hobbs in their signature cartoon style -- Calvin, the spiky - haired 6 - year - old boy, and Hobbes, his anthropomorphized tiger best friend, both styled in Nike streetwear. Calvin wearing a black Nike high - top sneakers with large white tick marks (✓) prominently displayed on both sides of each shoe, matching black Nike tracksuit with white tick marks (✓) on the jacket chest and pants leg. Hobbes sporting a scaled - up version of the same outfit - black Nike high - tops with bold white tick symbols (✓) on the sides, and a Nike tracksuit fitted for his tiger proportions with identical tick marks (✓) on chest and pants. Both characters maintaining their classic Bill Watterson - style expressions and poses, each piece of clothing and shoe featuring the iconic Nike tick mark (✓) design. The artwork preserving the original comic\'s playful energy while showcasing the Nike tick symbol aesthetic throughout their outfits').images[0]
image.save("advanced_example.png")
📄 许可证
本模型使用 flux-1-dev-non-commercial-license
许可证,详情请见 许可证链接。
📦 模型信息
属性 |
详情 |
基础模型 |
black-forest-labs/FLUX.1-dev |
实例提示词 |
Calvin and Hobbs |
许可证 |
other |
许可证名称 |
flux-1-dev-non-commercial-license |
许可证链接 |
https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md |
🎨 示例展示
以下是一些使用该模型生成的示例图像:
输入文本 |
输出图像 |
Calvin and Hobbs swimming in the pool chatting |
示例1 |
Calvin and Hobbs climbing tree and talking |
示例2 |
Calvin and Hobbs talking about quitting school |
示例3 |
Calvin and Hobbs eat dinner |
示例4 |
Calvin and Hobbs go to shopping |
示例5 |
Calvin and Hobbs in Mountain |
示例6 |
Calvin and Hobbs with spiderman skating in park |
示例7 |
Calvin and Hobbs in their signature cartoon style -- Calvin, the spiky-haired 6-year-old boy, and Hobbes, his anthropomorphized tiger best friend, both styled in Nike streetwear... |
示例8 |