🚀 Canopus-Animaliea-Artism
Canopus-Animaliea-Artism 是一個專注於動物、鳥類和幼崽圖像生成的模型。它基於 Stable Diffusion XL 技術,能夠根據特定提示生成風格多樣的圖像。不過,該模型仍處於訓練階段,可能存在瑕疵。
🚀 快速開始
模型設置
你可以按照以下代碼示例進行模型的設置:
pipe = StableDiffusionXLPipeline.from_pretrained(
"-------------xxxxxxxxx----------",
torch_dtype=torch.float16,
use_safetensors=True,
)
pipe = StableDiffusionXLPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16,
use_safetensors=True,
)
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
pipe.load_lora_weights("prithivMLmods/Canopus-Animaliea-Artism", weight_name=" Canopus-Animaliea-Artism.safetensors", adapter_name="Animaliea")
pipe.set_adapters("Animaliea")
pipe.to("cuda")
觸發提示
以下是一些觸發圖像生成的提示示例:
- A pig is standing in the grass next to a red barn, in the style of playful expressions, light white and pink, candid, close up, motion blur --ar 64:45 --v 6.0 --style raw
- Small calf standing in field at sunset, in the style of y2k aesthetic, baroque animals, rusticcore, beige and amber, flickr, petcore --ar 2:3 --style raw --v 5.1
- Dog walking in the grass near the mountain, in the style of maurizio cattelan, contax t2, strong facial expression, monumental vistas, associated press photo, close-up, frenchy --ar 3:2 --style raw --v 5.1
觸發詞
你可以使用以下觸發詞來觸發圖像生成:
下載模型
該模型的權重以 Safetensors 格式提供。你可以在 Files & versions 標籤頁 下載。
✨ 主要特性
- 多樣化風格:能夠根據不同的提示生成多種風格的動物、鳥類和幼崽圖像。
- 基於 Stable Diffusion XL:利用先進的圖像生成技術,保證圖像質量。
📦 安裝指南
安裝過程主要是通過代碼設置模型,具體代碼如下:
pipe = StableDiffusionXLPipeline.from_pretrained(
"-------------xxxxxxxxx----------",
torch_dtype=torch.float16,
use_safetensors=True,
)
pipe = StableDiffusionXLPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16,
use_safetensors=True,
)
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
pipe.load_lora_weights("prithivMLmods/Canopus-Animaliea-Artism", weight_name=" Canopus-Animaliea-Artism.safetensors", adapter_name="Animaliea")
pipe.set_adapters("Animaliea")
pipe.to("cuda")
💻 使用示例
基礎用法
以下是一個簡單的使用示例,展示如何使用該模型生成圖像:
pipe = StableDiffusionXLPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16,
use_safetensors=True,
)
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
pipe.load_lora_weights("prithivMLmods/Canopus-Animaliea-Artism", weight_name=" Canopus-Animaliea-Artism.safetensors", adapter_name="Animaliea")
pipe.set_adapters("Animaliea")
pipe.to("cuda")
prompt = "A pig is standing in the grass next to a red barn, in the style of playful expressions, light white and pink, candid, close up, motion blur --ar 64:45 --v 6.0 --style raw"
image = pipe(prompt).images[0]
image.save("output.png")
📚 詳細文檔
模型描述
Canopus-Pixar-Art 模型在圖像生成過程中有以下處理參數:
參數 |
值 |
LR Scheduler |
constant |
Noise Offset |
0.03 |
Optimizer |
AdamW |
Multires Noise Discount |
0.1 |
Network Dim |
64 |
Network Alpha |
32 |
Epoch |
13 |
Save Every N Epochs |
1 |
Multires Noise Iterations |
10 |
Repeat |
25 |
觸發參數詳情
參數 |
詳情 |
Prompt |
A pig is standing in the grass next to a red barn, in the style of playful expressions, light white and pink, candid, close up, motion blur --ar 64:45 --v 6.0 --style raw |
Sampler |
euler |
📄 許可證
該模型採用 Apache-2.0 許可證。
⚠️ 重要提示
該模型仍處於訓練階段,這不是最終版本,可能包含瑕疵,在某些情況下性能可能不佳。