🚀 漫畫風格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 |