Lumina2Text2ImgPipeline -> Lumina2Pipeline
#14
by
hlky
HF staff
- opened
- README.md +2 -2
- model_index.json +1 -1
README.md
CHANGED
@@ -13,9 +13,9 @@ We provide an official [Gradio demo](http://47.100.29.251:10010/). You can use t
|
|
13 |
|
14 |
```python
|
15 |
import torch
|
16 |
-
from diffusers import
|
17 |
|
18 |
-
pipe =
|
19 |
pipe.enable_model_cpu_offload() #save some VRAM by offloading the model to CPU. Remove this if you have enough GPU power
|
20 |
|
21 |
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."
|
|
|
13 |
|
14 |
```python
|
15 |
import torch
|
16 |
+
from diffusers import Lumina2Pipeline
|
17 |
|
18 |
+
pipe = Lumina2Pipeline.from_pretrained("Alpha-VLLM/Lumina-Image-2.0", torch_dtype=torch.bfloat16)
|
19 |
pipe.enable_model_cpu_offload() #save some VRAM by offloading the model to CPU. Remove this if you have enough GPU power
|
20 |
|
21 |
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."
|
model_index.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_class_name": "
|
3 |
"_diffusers_version": "0.33.0.dev0",
|
4 |
"scheduler": [
|
5 |
"diffusers",
|
|
|
1 |
{
|
2 |
+
"_class_name": "Lumina2Pipeline",
|
3 |
"_diffusers_version": "0.33.0.dev0",
|
4 |
"scheduler": [
|
5 |
"diffusers",
|