nielsr HF Staff commited on
Commit
8ade061
·
verified ·
1 Parent(s): 2407797

Add model card

Browse files

This PR adds a model card for the paper [Diffusion-4K: Ultra-High-Resolution Image Synthesis with Latent Diffusion Models](https://huggingface.co/papers/2503.18352).

It also adds the relevant pipeline tag and the library name, as well as a link to the Github repository.

Files changed (1) hide show
  1. README.md +41 -0
README.md ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pipeline_tag: text-to-image
3
+ library_name: diffusers
4
+ license: mit
5
+ ---
6
+
7
+ # Diffusion-4K: Ultra-High-Resolution Image Synthesis with Latent Diffusion Models (CVPR 2025)
8
+
9
+ This repository contains the model introduced in [Diffusion-4K: Ultra-High-Resolution Image Synthesis with Latent Diffusion Models](https://huggingface.co/papers/2503.18352).
10
+
11
+ For the official code implementation, please visit https://github.com/zhang0jhon/Diffusion-4K.
12
+
13
+ ## Usage Example (Flux-12B)
14
+
15
+ The following code snippet demonstrates image generation using the Flux-12B model:
16
+
17
+ ```python
18
+ from diffusers import FluxPipeline
19
+ import torch
20
+
21
+ pipe = FluxPipeline.from_pretrained("zhang0jhon/flux_wavelet", torch_dtype=torch.float16) # Replace with your model ID
22
+
23
+ prompt = "a photo of an astronaut riding a horse on mars"
24
+ image = pipe(prompt, guidance_scale=5.0, height=4096, width=4096, num_inference_steps=50).images[0]
25
+
26
+ # Save or display the image
27
+ image.save("astronaut_horse.png")
28
+ ```
29
+
30
+ Remember to install the necessary libraries (`pip install diffusers transformers`) and adjust parameters like `guidance_scale`, `height`, `width`, and `num_inference_steps` for optimal results. Refer to the [Github repository](https://github.com/zhang0jhon/Diffusion-4K) for more details and examples.
31
+
32
+ ## Citation
33
+
34
+ ```
35
+ @inproceedings{zhang2025diffusion4k,
36
+ title={Diffusion-4K: Ultra-High-Resolution Image Synthesis with Latent Diffusion Models},
37
+ author={Jinjin Zhang, Qiuyu Huang, Junjie Liu, Xiefan Guo and Di Huang},
38
+ year={2025},
39
+ booktitle={IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
40
+ }
41
+ ```