🚀 SDXL LoRA DreamBooth - LinoyTsaban/3diconz
本項目是針對Stable Diffusion XL的LoRA DreamBooth模型,可用於生成特定風格的圖像,為圖像創作帶來更多可能性。
🚀 快速開始
觸發詞
若要觸發已訓練概念的圖像生成,需在提示詞中用新插入的標記替換每個概念標識符。
例如,要觸發概念 TOK
,可在提示詞中使用 <s0><s1>
。
使用 🧨 diffusers 庫
from diffusers import AutoPipelineForText2Image
import torch
from huggingface_hub import hf_hub_download
from safetensors.torch import load_file
pipeline = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=torch.float16).to('cuda')
pipeline.load_lora_weights('LinoyTsaban/3diconz', weight_name='pytorch_lora_weights.safetensors')
embedding_path = hf_hub_download(repo_id='LinoyTsaban/3diconz', filename="embeddings.safetensors", repo_type="model")
state_dict = load_file(embedding_path)
pipeline.load_textual_inversion(state_dict["clip_l"], token=["<s0>", "<s1>"], text_encoder=pipe.text_encoder, tokenizer=pipe.tokenizer)
pipeline.load_textual_inversion(state_dict["clip_g"], token=["<s0>", "<s1>"], text_encoder=pipe.text_encoder_2, tokenizer=pipe.tokenizer_2)
image = pipeline('in the style of <s0><s1>').images[0]
更多詳細信息,包括LoRA的加權、合併和融合,請查看 diffusers 中加載 LoRA 的文檔。
下載模型
可在以下用戶界面(UI)中使用該模型,如 AUTOMATIC1111、Comfy UI、SD.Next、Invoke。
- 點擊 此處 下載 LoRA 的 *.safetensors 文件,重命名後將其放置在 LoRA 文件夾中。
- 點擊 此處 下載文本嵌入的 *.safetensors 文件,重命名後將其放置在嵌入文件夾中。
所有 文件與版本 均可在此查看。
✨ 主要特性
這些是 LinoyTsaban/3diconz 的 LoRA 適配權重,適用於 stabilityai/stable-diffusion-xl-base-1.0 基礎模型。
🔧 技術細節
📄 許可證
本模型採用 openrail++ 許可證。
📦 模型信息
屬性 |
詳情 |
基礎模型 |
stabilityai/stable-diffusion-xl-base-1.0 |
實例提示詞 |
in the style of |
許可證 |
openrail++ |
標籤 |
stable-diffusion-xl、stable-diffusion-xl-diffusers、text-to-image、diffusers、lora、template:sd-lora |