tonyassi commited on
Commit
37a030e
1 Parent(s): 83c1f3f

Upload 2 files

Browse files
Files changed (2) hide show
  1. README.md +86 -0
  2. pytorch_lora_weights.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - stable-diffusion-xl
5
+ - stable-diffusion-xl-diffusers
6
+ - text-to-image
7
+ - diffusers
8
+ - lora
9
+ - template:sd-lora
10
+
11
+ base_model: stabilityai/stable-diffusion-xl-base-1.0
12
+ instance_prompt: Margiela SS24 style
13
+ license: openrail++
14
+ ---
15
+
16
+ # SDXL LoRA DreamBooth - tonyassi/mgm
17
+
18
+ by [Tony Assi](https://www.tonyassi.com/)
19
+
20
+ Dreambooth style based on classic MGM Films. Try the [demo](https://huggingface.co/spaces/tonyassi/MGM-Film-Diffusion).
21
+
22
+ ## Trigger words
23
+ Use **mgm film** in the prompt to trigger the MGM style.
24
+
25
+ ## How to use
26
+ ```bash
27
+ pip install diffusers
28
+ ```
29
+
30
+ ```python
31
+ import torch
32
+ from diffusers import DiffusionPipeline, AutoencoderKL
33
+
34
+ # Load the pipeline
35
+ vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
36
+ pipe = DiffusionPipeline.from_pretrained(
37
+ "stabilityai/stable-diffusion-xl-base-1.0",
38
+ vae=vae,
39
+ torch_dtype=torch.float16,
40
+ variant="fp16",
41
+ use_safetensors=True
42
+ )
43
+ pipe.load_lora_weights("tonyassi/mgm")
44
+ pipe.to("cuda")
45
+
46
+ # Generate image
47
+ prompt = "mgm film megan fox pinup girl"
48
+ image = pipe(prompt=prompt,
49
+ height=1024,
50
+ width=1024,
51
+ num_inference_steps=50,
52
+ negative_prompt="ugly, deformed face, deformed body").images[0]
53
+ image
54
+
55
+ ```
56
+
57
+ ## Examples
58
+ ![mgm film bettie page outside a mansion with two poodle](https://cdn.discordapp.com/attachments/1120417968032063538/1182003731013836810/mgm_film_bettie_page_outside_a_mansion_with_two_poodles.png?ex=65831dc2&is=6570a8c2&hm=07cdb13d371f45b7f7ceb7a4b89c6daa775707804e901df23eb7b01093e877d3&)
59
+ **mgm film bettie page outside a mansion with two poodles**
60
+
61
+ ![](https://cdn.discordapp.com/attachments/1120417968032063538/1182032335168880750/mgm_film_asap_rocky_eating_in_a_fancy_restaurant_1950s2.png?ex=65833865&is=6570c365&hm=877cb16f69dc9be79ab15354152682c91a54b78bb34263de42a963c90180ca67&)
62
+ **mgm film asap rocky eating in a fancy restaurant, 1950s**
63
+
64
+ ![](https://cdn.discordapp.com/attachments/1120417968032063538/1183845119489736807/mgm_film_megan_fox_pinup_girl.png?ex=6589d0af&is=65775baf&hm=e1816f74a1f06fc949eea207cbd2b8489175deeb3b8498d13d240f3ce33e0129&)
65
+ **mgm film megan fox pinup girl**
66
+
67
+ ![](https://cdn.discordapp.com/attachments/1120417968032063538/1182033560966799510/mgm_film_lady_gaga_in_a_limo_neon_lights_pet_snake.png?ex=6583398a&is=6570c48a&hm=ac551e7c9265b0e5a5544f62038d3c83d0348c1c8cb85c2d42eba8047391257a&)
68
+ **mgm film lady gaga in a limo, neon lights, pet snake**
69
+
70
+ ![](https://cdn.discordapp.com/attachments/1120417968032063538/1182033723735150662/mgm_film_asap_rocky_in_the_wizard_of_oz3.png?ex=658339b0&is=6570c4b0&hm=ad749536364009daaa0f7426b9ca6bc68036cab7b6202ed3ee356760baf24593&)
71
+ **mgm film asap rocky in the wizard of oz**
72
+
73
+ ## Model description
74
+ These are tonyassi/mgm LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0.
75
+
76
+ The weights were trained using [DreamBooth](https://dreambooth.github.io/).
77
+
78
+ LoRA for the text encoder was enabled: False.
79
+
80
+ Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
81
+
82
+ ## Download model
83
+ Weights for this model are available in Safetensors format.
84
+
85
+ [Download](https://huggingface.co/tonyassi/mgm/tree/main) them in the Files & versions tab.
86
+
pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3022c448c69ad9473b270fc8e66d082365660afadb3221c5cd7029dd639e7a5
3
+ size 170539828