🚀 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 许可证。
⚠️ 重要提示
该模型仍处于训练阶段,这不是最终版本,可能包含瑕疵,在某些情况下性能可能不佳。