readme: ---
  license: creativeml-openrail-m
  thumbnail: https://huggingface.co/p1atdev/pvc/resolve/main/samples/v2-eyecatch.png
  datasets:
  - p1atdev/pvc
  language:
  - en
  tags:
  - stable-diffusion
  - text-to-image
  - safetensors
  widget:
  - text: masterpiece, best quality, high quality, 1girl, cat ears, silver, blue, frills, bow, looking at viewer, ultra detailed
    example_title: A girl with cat ears
  - text: masterpiece, best quality, 1girl, green hair, sweater, beanie, turtleneck, looking at viewer, night
    example_title: A beanie girl
  - text: masterpiece, best quality, high quality, 1girl, bob cut, cape, belt, gloves, looking at viewer, ultra detailed
    example_title: An adventurer girl
  ---
  
  # PVC v2
  
  ![v2 eyecatch](https://huggingface.co/p1atdev/pvc/resolve/main/samples/v2-eyecatch.png)
  
  
  ```
  masterpiece, best quality, high quality, 1girl, cat ears, silver, blue, frills, bow, looking at viewer, ultra detailed
  Negative prompt: nsfw, worst quality, low quality, medium quality, deleted, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, jpeg artifacts, signature, watermark, username, blurry
  Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7
  ```
  
  This model is a latent diffusion model finetuned on [Waifu Diffusion v1.4 epoch 2](https://huggingface.co/hakurei/waifu-diffusion-v1-4) with [PVC figure images](https://huggingface.co/datasets/p1atdev/pvc) using LoRA method.
  You can use Danbooru tags to generate images.
  
  
  ## Model links
  
  - [**pvc-v2.safetensors**](https://huggingface.co/p1atdev/pvc/resolve/main/pvc-v2.safetensors)
  - [**pvc-v2.ckpt**](https://huggingface.co/p1atdev/pvc/resolve/main/pvc-v2.ckpt)
  - [pvc-v2.yaml](https://huggingface.co/p1atdev/pvc/blob/main/pvc-v2.yaml) (needed if you want to use the model in AUTOMATIC1111's Web UI)
  - [pvc-v2-lora.pt](https://huggingface.co/p1atdev/pvc/resolve/main/pvc-v2-lora.pt) (maybe only works with kohya's [sd-scripts](https://huggingface.co/p1atdev/pvc/resolve/main/pvc-v1-lora.pt) or [webui extension](https://github.com/kohya-ss/sd-webui-additional-networks))
  - [Waifu Diffusion 1.4 VAE](https://huggingface.co/hakurei/waifu-diffusion-v1-4/blob/main/vae/kl-f8-anime2.ckpt) (Recommended)
  
  ## Prompt guide
  
  It is recommended to add the quality tags **"masterpiece, best quality"** at the beginning of the prompt when using this model, which is a derivative of the WD.
  
  **Recommended negative prompt**
  ```
  nsfw, worst quality, low quality, medium quality, deleted, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digits, fewer digits, cropped, jpeg artifacts, signature, watermark, username, blurry
  ```
  
  ## Samples
  
  ![v2 sample1](https://huggingface.co/p1atdev/pvc/resolve/main/samples/v2-sample1.png)
  
  
  ```
  masterpiece, best quality, 1girl, green hair, sweater, beanie, turtleneck, looking at viewer, night,
  Negative prompt: nsfw, worst quality, low quality, medium quality, deleted, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, jpeg artifacts, signature, watermark, username, blurry
  Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7
  ```
  
  ---
  
  ![v2 sample2](https://huggingface.co/p1atdev/pvc/resolve/main/samples/v2-sample2.png)
  
  ```
  masterpiece, best quality, high quality, 1girl, bob cut, cape, belt, gloves, looking at viewer, ultra detailed
  Negative prompt: nsfw, worst quality, low quality, medium quality, deleted, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, jpeg artifacts, signature, watermark, username, blurry
  Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7
  ```
  
  ---
  
  ![v2 sample3](https://huggingface.co/p1atdev/pvc/resolve/main/samples/v2-sample3.png)
  
  ```
  masterpiece, best quality, 1girl, annoyed, black hair, floating hair, gothic lolita, scythe, looking at viewer,
  Negative prompt: nsfw, worst quality, low quality, medium quality, deleted, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, jpeg artifacts, signature, watermark, username, blurry
  Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7
  ```
  
  ## Training information
  
  ```
  --train_batch_size 1 --resolution 768,768 --learning_rate 1e-4 --max_train_steps 21100 --use_8bit_adam --xformers --mixed_precision fp16 --save_every_n_epochs 1 --network_module networks.lora --v2 --enable_bucket --max_token_length 225 --network_dim 32 --text_encoder_lr 5e-5 --lr_scheduler cosine_with_restarts --lr_warmup_steps 200
  ```
  
  # PVC v1
  
  ![eyecatch](https://huggingface.co/p1atdev/pvc/resolve/main/samples/miku.png)
  
  This model is a latent diffusion model finetuned on [Waifu Diffusion v1.4 epoch 2](https://huggingface.co/hakurei/waifu-diffusion-v1-4) with [PVC figure images](https://huggingface.co/datasets/p1atdev/pvc) using LoRA method.
  You can use Danbooru tags to generate images.
  
  ## Model links
  
  - [**pvc-v1.safetensors**](https://huggingface.co/p1atdev/pvc/resolve/main/pvc-v1.safetensors)
  - [**pvc-v1.ckpt**](https://huggingface.co/p1atdev/pvc/resolve