Pony Diffusion V6 XL
简介
核心亮点
- 极强的自然语言理解力,无需复杂 Tag 堆砌
- 动漫与二次元风格顶尖,角色还原度极高
- 基于 SDXL 架构,兼容主流 WebUI 插件
- 精准控制人物姿态与复杂场景构图
使用方法
# 安装 Hugging Face transformers
pip install transformers torch
# 使用 transformers 加载模型
from transformers import AutoModel, AutoTokenizer
model = AutoModel.from_pretrained("LyliaEngine/Pony_Diffusion_V6_XL")
tokenizer = AutoTokenizer.from_pretrained("LyliaEngine/Pony_Diffusion_V6_XL")
Hugging Face 下载
我们推荐使用命令行或者 Hugging Face Hub SDK 来进行模型的下载。
操作指引:在下载前,请先通过如下命令安装 huggingface_hub:
pip install -U huggingface_hub
命令行下载
下载完整模型库
huggingface-cli download LyliaEngine/Pony_Diffusion_V6_XL
下载单个文件到指定本地文件夹(以下载 config.json 到当前路径下 ./dir 目录为例)
huggingface-cli download LyliaEngine/Pony_Diffusion_V6_XL config.json --local-dir ./dir
SDK 下载
# 模型下载
from huggingface_hub import snapshot_download
model_dir = snapshot_download('LyliaEngine/Pony_Diffusion_V6_XL')
Git 下载
请确保 lfs 已经被正确安装
git lfs install
git clone https://huggingface.co/LyliaEngine/Pony_Diffusion_V6_XL
如果您希望跳过 lfs 大文件下载,可以使用如下命令
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/LyliaEngine/Pony_Diffusion_V6_XL
模型文件托管在 Hugging Face Hub,使用 HF CLI / SDK / Git 直接下载,不经过本站。
PyTorch / Transformers 使用
安装 Transformers
pip install -U transformers torch
模型加载和推理
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained('LyliaEngine/Pony_Diffusion_V6_XL')
tokenizer = AutoTokenizer.from_pretrained('LyliaEngine/Pony_Diffusion_V6_XL')
完整文档
---
tags:
- text-to-image
- stable-diffusion
- lora
- diffusers
- template:sd-lora
widget:
- text: >-
score_9, score_8_up, score_7_up, score_6_up, score_5_up, score_4_up,
source_furry, beautiful female anthro shark portrait, dramatic lighting,
dark background
output:
url: images/00056-4212032008 (1).jpeg
base_model: Bakanayatsu/Pony-Diffusion-V6-XL-for-Anime
instance_prompt: None
license: cdla-permissive-2.0
---
Pony_Diffusion_V6_XL
<Gallery />
Model description
!tmpwcaemsmp.png
!ponydiffwall2.png
Pony Diffusion V6 is a versatile SDXL finetune capable of producing stunning SFW and NSFW visuals of various anthro, feral, or humanoids species and their interactions based on simple natural language prompts.
CHECK "ABOUT THIS VERSION" ON THE RIGHT IF YOU ARE NOT ON "V6" FOR IMPORTANT INFORMATION.
Please join our Discord Server to support development of new versions of this model and get access to free SD bot and check out more examples of this model capabilities on our prompt sharing website or follow the author on Twitter.
Important information
Make sure you load this model with clip skip 2 (or -2 in some software), otherwise you will be getting low quality blobs.
This model supports a wide array of styles and aesthetics but provides an opinionated default prompt template that allows generation of high quality samples with no negative prompt and otherwise default settings
score_9, score_8_up, score_7_up, score_6_up, score_5_up, score_4_up, just describe what you want, tag1, tag2
(previous Pony Diffusion models used a simpler score_9 quality modifier, the longer version of V6 XL version is a training issue that was too late to correct during training, you can still use score_9 but it has a much weaker effect compared to full string. You can learn more about these tags here).
The model is designed to not need negative prompts in most cases and does not need other quality modifiers like "hd", "masterpiece", etc...
Other special data selection tags include, 'source_pony', 'source_furry', 'source_cartoon' and 'source_anime' and ratings of 'rating_safe', 'rating_questionable' and 'rating_explicit'.
This model is capable of recognizing many popular and obscure characters and series.
If you are looking specifically for pony style, I recommend using one of the two following templates `anthro/feral pony, rest of the prompt` or `source_pony, rest of the prompt`.
This model is trained on combination of natural language prompts and tags and is capable of understanding both, so describing intended result using normal language works in most cases, although you can add some tags after the main prompt to boost them.
Using Euler a with 25 steps and resolution of 1024px is recommended although model generally can do most supported SDXL resolution.
This model will sometimes generate pseudo signatures that are hard to remove even with negative prompts, this is unfortunately a training issue that would be corrected in future models. If that's an issue for you I suggest trying V5.5 or inpainting.
Special thanks
Iceman for helping to procure necessary training resources
Haru for assistance with captioning efforts
Cookie for technical expertise in training
PSAI Server Subscribers for supporting the project costs
PSAI Server Moderators for being vigilant and managing the community
Technical details
The model has been trained on ~2.6M images aesthetically ranked based on authors personal preferences, with roughly 1:1 ratio between anime/cartoon/furry/pony datasets and 1:1 ratio between safe/questionable/explicit ratings. About 50% of all images has been captioned with high quality detailed captions, which results in very strong natural language capabilities.
All images has been trained with both captions (when available) and tags, artists' names have been removed and source data has been filtered based on our Opt-in/Opt-out program. Any explicit content involving underage characters has been filtered out.
License
This model is licensed under a modified Fair AI Public License 1.0-SD (https://freedevproject.org/faipl-1.0-sd/) license.
The following modifications have been added to Fair AI Public License:
You are not permitted to run inference of this model on websites or applications allowing any form of monetization (paid inference, faster tiers, etc.). This applies to any derivative models or model merges.
If you want to use this model commercially, please reach us at [email protected].
Explicit permission for commercial inference has been granted to CivitAi and Hugging Face.
Source
https://civitai.com/models/257749
Credit
https://civitai.com/user/PurpleSmartAI
Trigger words
You should use None to trigger the image generation.
Download model
Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.