Instructions to use Alpha-VLLM/Lumina-Image-2.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Alpha-VLLM/Lumina-Image-2.0 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Alpha-VLLM/Lumina-Image-2.0", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Recommended settings for ComfyUI.
#8
by razvanab - opened
There is support for Lumina-Image-2.0 in ComfyUI now. So, I would like to know more about the recommended settings, like the sampler name, for example.
The model car shows this:
height=1024,
width=1024,
guidance_scale=4.0,
num_inference_steps=50,
cfg_trunc_ratio=0.25,
cfg_normalization=True,
I don't know of any node in ComfyUI with these options.:
cfg_trunc_ratio and cfg_normalization