rockerBOO commited on
Commit
36a103b
·
verified ·
1 Parent(s): af9e865

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -25
README.md CHANGED
@@ -14,29 +14,4 @@ Conversion of [consolidated.00-of-01.pth](https://huggingface.co/Alpha-VLLM/Lumi
14
 
15
  Lumina-Image-2.0 is a 2 billion parameter flow-based diffusion transformer capable of generating images from text descriptions. For more information, visit our [GitHub](https://github.com/Alpha-VLLM/Lumina-Image-2.0).
16
 
17
- ## Gradio Demo
18
 
19
- We provide an official [Gradio demo](http://47.100.29.251:10010/). You can use the link we provided to try it out.
20
-
21
- ## Usage
22
-
23
- ```python
24
- import torch
25
- from diffusers import Lumina2Text2ImgPipeline
26
-
27
- pipe = Lumina2Text2ImgPipeline.from_pretrained("Alpha-VLLM/Lumina-Image-2.0", torch_dtype=torch.bfloat16)
28
- pipe.enable_model_cpu_offload() #save some VRAM by offloading the model to CPU. Remove this if you have enough GPU power
29
-
30
- prompt = "A serene photograph capturing the golden reflection of the sun on a vast expanse of water. The sun is positioned at the top center, casting a brilliant, shimmering trail of light across the rippling surface. The water is textured with gentle waves, creating a rhythmic pattern that leads the eye towards the horizon. The entire scene is bathed in warm, golden hues, enhancing the tranquil and meditative atmosphere. High contrast, natural lighting, golden hour, photorealistic, expansive composition, reflective surface, peaceful, visually harmonious."
31
- image = pipe(
32
- prompt,
33
- height=1024,
34
- width=1024,
35
- guidance_scale=4.0,
36
- num_inference_steps=50,
37
- cfg_trunc_ratio=0.25,
38
- cfg_normalization=True,
39
- generator=torch.Generator("cpu").manual_seed(0)
40
- ).images[0]
41
- image.save("lumina_demo.png")
42
- ```
 
14
 
15
  Lumina-Image-2.0 is a 2 billion parameter flow-based diffusion transformer capable of generating images from text descriptions. For more information, visit our [GitHub](https://github.com/Alpha-VLLM/Lumina-Image-2.0).
16
 
 
17