File size: 2,602 Bytes
f7b60d2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98383a6
 
 
875f419
f7b60d2
1d64983
af36081
f7b60d2
08ff77c
40fced7
3485805
40fced7
 
09881dc
 
 
 
40fced7
09881dc
 
 
 
 
 
 
 
 
 
 
40fced7
09881dc
 
 
 
 
 
 
 
 
 
08ff77c
fed443e
e58e65e
1d64983
fed443e
943cd94
 
fed443e
8b727e9
 
fed443e
0d936ed
943cd94
fed443e
0d936ed
943cd94
1d64983
f7b60d2
 
 
 
 
 
 
 
 
 
 
b8de78a
f7b60d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87

---
tags:
- stable-diffusion-xl
- stable-diffusion-xl-diffusers
- text-to-image
- diffusers
- lora
- template:sd-lora

base_model: stabilityai/stable-diffusion-xl-base-1.0
instance_prompt: mgm film
license: openrail++
---
    
# SDXL LoRA DreamBooth - tonyassi/mgm

by [Tony Assi](https://www.tonyassi.com/)

Dreambooth style based on classic MGM Films. Try the [demo](https://huggingface.co/spaces/tonyassi/MGM-Film-Diffusion).

## Trigger words
Use **mgm film** in the prompt to trigger the MGM style.

## How to use
```bash
pip install diffusers accelerate
```

```python
import torch
from diffusers import DiffusionPipeline, AutoencoderKL

# Load the pipeline
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
pipe = DiffusionPipeline.from_pretrained(
    "stabilityai/stable-diffusion-xl-base-1.0",
    vae=vae,
    torch_dtype=torch.float16,
    variant="fp16",
    use_safetensors=True
)
pipe.load_lora_weights("tonyassi/mgm")
pipe.to("cuda")

# Generate image
prompt = "mgm film megan fox pinup girl"
image = pipe(prompt=prompt,
             height=1024, 
             width=1024,
             num_inference_steps=50,
             negative_prompt="ugly, deformed face, deformed body").images[0]
image

```

## Examples
![image/png](https://cdn-uploads.huggingface.co/production/uploads/648a824a8ca6cf9857d1349c/wIOrSpg1A3EGGxyeHxUJP.png)
**mgm film bettie page outside a mansion with two poodles**

![image/png](https://cdn-uploads.huggingface.co/production/uploads/648a824a8ca6cf9857d1349c/zWFdlerT_WVBTwHWFZVa5.png)
**mgm film asap rocky eating in a fancy restaurant, 1950s**

![image/png](https://cdn-uploads.huggingface.co/production/uploads/648a824a8ca6cf9857d1349c/cbZ-wYXU-2y_BkZWFiw9P.png)
**mgm film megan fox pinup girl**

![image/png](https://cdn-uploads.huggingface.co/production/uploads/648a824a8ca6cf9857d1349c/WQTf4lsKq83Depv2Uag6_.png)
**mgm film lady gaga in a limo, neon lights, pet snake**

![image/png](https://cdn-uploads.huggingface.co/production/uploads/648a824a8ca6cf9857d1349c/qZFcvpxZZyx46D0aMgN5M.png)
**mgm film asap rocky in the wizard of oz**

## Model description
These are tonyassi/mgm LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0.

The weights were trained  using [DreamBooth](https://dreambooth.github.io/).

LoRA for the text encoder was enabled: False.

Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.

## Download model
Weights for this model are available in Safetensors format.

[Download](https://huggingface.co/tonyassi/mgm/tree/main) them in the Files & versions tab.