File size: 692 Bytes
bd67c46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# How to use

This is a cleaned up version of the [Realistic Vision 5.1](https://huggingface.co/SG161222/Realistic_Vision_V5.1_noVAE) model. Generated `fp16` versions and extracted the inpainting model. This can be found under the branch `realistic-vision-5_1-inpainting`.

```
from diffusers import StableDiffusionPipeline, StableDiffusionInpaintPipeline

pipeline = StableDiffusionPipeline.from_pretrained(
    "holwech/realistic-vision-optimized", variant="fp16", torch_dtype=torch.float16
)
# OR
pipeline = StableDiffusionInpaintPipeline.from_pretrained(
    "holwech/realistic-vision-optimized", revision="realistic-vision-5_1-inpainting", variant="fp16", torch_dtype=torch.float16
)
```