ezlee258258 commited on
Commit
4acf8cb
·
verified ·
1 Parent(s): de71dd4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +74 -3
README.md CHANGED
@@ -1,3 +1,74 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: stabilityai/stable-diffusion-xl-base-1.0
4
+ tags:
5
+ - stable-diffusion-xl
6
+ - stable-diffusion
7
+ - diffusers
8
+ - text-to-image
9
+ - inversion
10
+ - dpo
11
+ - fine-tuned
12
+ library_name: diffusers
13
+ ---
14
+
15
+ # Inversion-DPO
16
+
17
+ Official Inversion-DPO weights fine-tuned from Stable Diffusion XL. Only the trained UNet module is provided.
18
+
19
+ ## Model Description
20
+
21
+ This repository contains the fine-tuned UNet weights from the Inversion-DPO method, built upon Stable Diffusion XL. The model has been trained using Direct Preference Optimization (DPO) techniques combined with inversion methods to improve generation quality and alignment.
22
+
23
+ **Code Repository:** https://github.com/MIGHTYEZ/Inversion-DPO
24
+
25
+ ## Quick Start
26
+
27
+ ```python
28
+ from diffusers import StableDiffusionXLPipeline, UNet2DConditionModel
29
+ import torch
30
+
31
+ # Load the fine-tuned UNet
32
+ unet = UNet2DConditionModel.from_pretrained(
33
+ "ezlee258258/Inversion-DPO",
34
+ subfolder="unet",
35
+ torch_dtype=torch.float16
36
+ )
37
+
38
+ # Load the pipeline with the fine-tuned UNet
39
+ pipe = StableDiffusionXLPipeline.from_pretrained(
40
+ "stabilityai/stable-diffusion-xl-base-1.0",
41
+ unet=unet,
42
+ torch_dtype=torch.float16
43
+ )
44
+ pipe = pipe.to("cuda")
45
+
46
+ # Generate images
47
+ prompt = "A beautiful landscape with mountains and lakes"
48
+ image = pipe(prompt).images[0]
49
+ image.save("output.png")
50
+ ```
51
+
52
+
53
+ ## Citation
54
+
55
+ If you use this model in your research, please cite our work:
56
+
57
+ ```bibtex
58
+ @misc{li2025inversiondpo,
59
+ title={Inversion-DPO: Precise and Efficient Post-Training for Diffusion Models},
60
+ author={Zejian Li and Yize Li and Chenye Meng and Zhongni Liu and Yang Ling and Shengyuan Zhang and Guang Yang and Changyuan Yang and Zhiyuan Yang and Lingyun Sun},
61
+ year={2025},
62
+ eprint={2507.11554},
63
+ archivePrefix={arXiv},
64
+ primaryClass={cs.CV}
65
+ }
66
+ ```
67
+
68
+ ## Acknowledgments
69
+
70
+ Built upon [Stable Diffusion XL](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0) by Stability AI.
71
+
72
+ ## Contact
73
+
74
+ For questions and support, please visit our [GitHub repository](https://github.com/MIGHTYEZ/Inversion-DPO).