モデル概要
モデル特徴
モデル能力
使用事例
🚀 PVC v3
このモデルは、Waifu Diffusion v1.5 beta 2をPVCフィギュアの画像でファインチューニングした潜在拡散モデルです。 Danbooruタグを使用して画像を生成することができます。
🚀 クイックスタート
このモデルを使用するには、以下の手順に従ってください。
📦 モデルのダウンロード
良い結果を得るためには、WDのVAEを使用してください!
また、ネガティブプロンプトにbadquality埋め込みを使用することもできます!
💻 ライブラリのインストール
🤗のDiffusersライブラリを使用して、Stable Diffusion 2を簡単かつ効率的に実行することができます。
pip install diffusers transformers accelerate scipy safetensors
pip install --pre xformers
💻 使用例
基本的な使用法
StableDiffusionPipelineを使用する場合:
import torch
from diffusers import StableDiffusionPipeline
model_id = "p1atdev/pvc-v3"
revision = "fp16" # "main" or "fp16"
pipe = StableDiffusionPipeline.from_pretrained(
model_id,
revision=revision,
torch_dtype=torch.float16,
)
pipe = pipe.to("cuda")
pipe.enable_attention_slicing()
pipe.enable_xformers_memory_efficient_attention() # required
prompt = "pvc, masterpiece, best quality, exceptional, 1girl, cat ears, red hair, long hair, hairpin, swept bangs, yellow eyes, black jacket, white shirt, blue tie, white gloves, hand up, upper body, looking at viewer, buildings"
negative_prompt = "nsfw, nude, worst quality, low quality, oldest, bad anatomy"
image = pipe(
prompt,
negative_prompt=negative_prompt,
guidance_scale=7.0,
num_inference_steps=20
).images[0]
# 画像を保存
image.save("pvc_figure.png")
# または表示するだけ
# display(image)
高度な使用法
StableDiffusionLongPromptWeightingPipelineを使用する場合:
import torch
from diffusers import DiffusionPipeline
model_id = "p1atdev/pvc-v3"
revision = "fp16" # "main" or "fp16"
pipe = DiffusionPipeline.from_pretrained(
model_id,
revision=revision,
torch_dtype=torch.float16,
custom_pipeline="lpw_stable_diffusion"
)
pipe = pipe.to("cuda")
pipe.enable_attention_slicing()
pipe.enable_xformers_memory_efficient_attention() # required
prompt = """
pvc, masterpiece, best quality, exceptional, 1girl, cat ears, red hair, long hair, hairpin, swept bangs, yellow eyes, black jacket, white shirt, blue tie, white gloves, hand up, upper body, looking at viewer, buildings
"""
negative_prompt = "nsfw, nude, worst quality, low quality, oldest, bad anatomy"
image = pipe(
prompt,
negative_prompt=negative_prompt,
guidance_scale=7.0,
num_inference_steps=20
).images[0]
# 画像を保存
image.save("pvc_figure_lpw.png")
# または表示するだけ
# display(image)
✨ 主な機能
プロンプトガイド
トリガーワード
pvc
はPVC素材のスタイルを意味しますが、必ずしも必要ではありません。figma
は関節があるフィギュアスタイルで、より商品サムネイル画像に近くなります。doll joints
と一緒に使用すると、より良い関節を得ることができます。nendoroid
はちびフィギュアのスタイルを意味します。chibi
と一緒に使用すると、より良い結果を得ることができます。
ヒント
PVCフィギュアのスタイルは、リアルなスタイルよりもアニメスタイルに近いです。
そのため、時には ポジティブ プロンプトに anime
を、または ネガティブ プロンプトに realistic
を入れると、より良い結果が得られます。
あまりにもリアルな顔を避けたい場合は、これを試してみてください!
📚 詳細ドキュメント
サンプル画像

masterpiece, best quality, pvc, 1girl, cat ears, blue hair, gradient hair, colored inner hair, long hair, floating hair, blue eyes, school uniform, blue shirt, ribbon, short skirt, thighhighs, zettai ryouiki, school bag, from above, cowboy shot, looking at viewer, wind, street, day, Negative prompt: badquality, oldest, chibi, Steps: 28, Sampler: DPM++ SDE Karras, CFG scale: 10, Seed: 744670484, Size: 576x768, Model hash: 0866b17d46, Model: pvc-v3-fp16, Denoising strength: 0.6, Clip skip: 2, Hires upscale: 1.5, Hires upscaler: Latent

masterpiece, best quality, exceptional, pvc, 1girl, bangs, bare shoulders, beret, black hair, black shorts, blue hair, bracelet, breasts, buttons, colored inner hair, double-breasted, eyewear removed, green headwear, green jacket, grey eyes, grey sky, hat, jacket, jewelry, long hair, looking at viewer, multicolored hair, neck ring, o-ring, off shoulder, rain, round eyewear, shorts, sidelocks, small breasts, solo, sunglasses, wavy hair, wet, zipper, Negative prompt: badquality, oldest, chibi, Steps: 28, Sampler: DPM++ SDE Karras, CFG scale: 10, Seed: 2954169314, Size: 576x768, Model hash: 0866b17d46, Model: pvc-v3-fp16, Denoising strength: 0.6, Clip skip: 2, Hires upscale: 1.5, Hires upscaler: Latent

masterpiece, best quality, exceptional, pvc, 1girl, cat ears, red hair, long hair, hairpin, swept bangs, yellow eyes, black jacket, white shirt, blue tie, white gloves, hand up, upper body, looking at viewer, buildings Negative prompt: badquality, oldest, chibi, realistic Steps: 28, Sampler: DPM++ SDE Karras, CFG scale: 10, Seed: 2320075190, Size: 576x768, Model hash: 0866b17d46, Model: pvc-v3-fp16, Denoising strength: 0.6, Clip skip: 2, Hires upscale: 1.5, Hires upscaler: Latent

masterpiece, best quality, exceptional, pvc, anime, 1boy, grey hair, red eyes, holding gun, handgun, black coat, looking at viewer, dynamic, Negative prompt: badquality, oldest, chibi, Steps: 28, Sampler: DPM++ SDE Karras, CFG scale: 10, Seed: 2543033775, Size: 576x768, Model hash: 0866b17d46, Model: pvc-v3-fp16, Denoising strength: 0.6, Clip skip: 2, Hires upscale: 1.5, Hires upscaler: Latent

masterpiece, best quality, exceptional, figma, 1girl, cat ears, blue hair, high ponytail, parted bangs, white shirt, dress shirt, short sleeves, shorts, looking at viewer, doll joints, Negative prompt: badquality, oldest, chibi Steps: 28, Sampler: DPM++ SDE Karras, CFG scale: 10, Seed: 595390714, Size: 576x768, Model hash: 0866b17d46, Model: pvc-v3-fp16, Denoising strength: 0.6, Clip skip: 2, Hires upscale: 1.5, Hires upscaler: Latent

masterpiece, best quality, exceptional, figma, 1girl, brown hair, bob cut, blunt bangs, expressionless, red track suit, long pants, full body, running, dynamic, looking at viewer, Negative prompt: badquality, oldest, chibi, realistic, Steps: 28, Sampler: DPM++ SDE Karras, CFG scale: 10, Seed: 617339547, Size: 576x768, Model hash: 0866b17d46, Model: pvc-v3-fp16, Denoising strength: 0.6, Clip skip: 2, Hires upscale: 1.5, Hires upscaler: Latent

masterpiece, best quality, exceptional, nendoroid, chibi, masterpiece, best quality, exceptional, 1girl, aqua eyes, baseball cap, blonde hair, closed mouth, earrings, green background, hat, hoop earrings, jewelry, looking at viewer, shirt, short hair, simple background, solo, upper body, yellow shirt, Negative prompt: badquality, oldest, realistic, Steps: 28, Sampler: DPM++ SDE Karras, CFG scale: 10, Seed: 3673139852, Size: 576x768, Model hash: 0866b17d46, Model: pvc-v3-fp16, Denoising strength: 0.6, Clip skip: 2, Hires upscale: 1.5, Hires upscaler: Latent

masterpiece, best quality, exceptional, nendoroid, chibi, masterpiece, best quality, exceptional, 1girl, bare shoulders, baseball cap, black gloves, black headwear, black shirt, blue eyes, blue hair, breasts, coat, crop top, gloves, hand on hip, hat, large breasts, long hair, long sleeves, looking at viewer, mask, midriff, mouth mask, navel, off shoulder, open clothes, open coat, shirt, sleeveless, sleeveless shirt, solo, stomach, upper body, white coat, waifu, Negative prompt: badquality, oldest, realistic, Steps: 28, Sampler: DPM++ SDE Karras, CFG scale: 10, Seed: 3256539262, Size: 576x768, Model hash: 0866b17d46, Model: pvc-v3-fp16, Denoising strength: 0.6, Clip skip: 2, Hires upscale: 1.5, Hires upscaler: Latent

masterpiece, best quality, exceptional, pvc, anime, 1girl, brown hair, school uniform, aqua ribbon, hand up, upper body, looking at viewer, beach, ocean, orange, sky, clouds, sunset, Negative prompt: badquality, oldest, chibi, simple background, bad anatomy, realistic, Steps: 28, Sampler: DPM++ SDE Karras, CFG scale: 8, Seed: 537083103, Size: 768x576, Model hash: 0866b17d46, Model: pvc-v3-fp16, Denoising strength: 0.6, Clip skip: 2, Hires upscale: 1.5, Hires upscaler: Latent

masterpiece, best quality, exceptional, pvc, anime, 1girl, young, light purple hair, short hair, streaked hair, wavy hair, red eyes, queen, crown, white dress, crossed legs, thighhighs, boots, sitting, close-up, looking at viewer, throne, dark curtains, dark atmosphere Negative prompt: badquality, oldest, chibi, simple background, bad anatomy, realistic Steps: 28, Sampler: DPM++ SDE Karras, CFG scale: 8, Seed: 3981672289, Size: 768x576, Model hash: 0866b17d46, Model: pvc-v3-fp16, Denoising strength: 0.6, Clip skip: 2, Hires upscale: 1.5, Hires upscaler: Latent
トレーニング情報
パラメータ | 値 |
---|---|
サービス | Runpod |
GPU | A5000 |
ノートブック | Linaqruf/kohya-trainer |
コスト | 約$2 |
時間 | 約6時間 |
データセット | p1atdev/pvcからの7467枚の画像 |
解像度 | 896 |
エポック数 | 5 |
オプティマイザ | Lion |
学習率 | 4e-7 |
スケジューラ | cosine_with_restarts |
トレーニングバッチサイズ | 1 |
📄 ライセンス
Other

