--prompt "A striking photograph of a glass of orange juice on a wooden kitchen table, capturing a playful moment. The orange juice splashes out of the glass and forms the word \"Smile\" in a whimsical, swirling script just above the glass. The background is softly blurred, revealing a cozy, homely kitchen with warm lighting and a sense of comfort." \
--prompt "A striking photograph of a glass of orange juice on a wooden kitchen table, capturing a playful moment. The orange juice splashes out of the glass and forms the word \"Smile\" in a whimsical, swirling script just above the glass. The background is softly blurred, revealing a cozy, homely kitchen with warm lighting and a sense of comfort." \
--prompt "A functional wooden printer stand.Nestled next to a brick wall in a bustling city street, it stands firm as pedestrians hustle by, illuminated by the warm glow of vintage street lamps." \
--image_path examples/example_2.jpg \
--edit_type depth_control \
--timesteps 64 \
--cfg_scale 2.5 \
--cfg_img 4.0 \
--vae_ckpt Alpha-VLLM/Lumina-DiMOO \
--output_dir output/results_image_to_image
2.主题驱动生成。
python inference/inference_i2i.py \
--checkpoint Alpha-VLLM/Lumina-DiMOO \
--prompt "A creamy, rich-flavored dark beverage.Captured in a bustling urban street at twilight, this item is placed on an outdoor café table, as city lights begin to twinkle and passersby create a lively atmosphere." \
--image_path examples/example_3.jpg \
--edit_type subject_driven \
--timesteps 64 \
--cfg_scale 2.5 \
--cfg_img 4.0 \
--vae_ckpt Alpha-VLLM/Lumina-DiMOO \
--output_dir output/results_image_to_image
3.图像编辑:添加编辑、移除编辑、替换编辑、背景编辑、文本迁移编辑。
python inference/inference_i2i.py \
--checkpoint Alpha-VLLM/Lumina-DiMOO \
--prompt "Add a beige shed with brown trim and double doors with a diamond pattern in the center-right, occupying more than a third of the image." \
--image_path examples/example_4.png \
--edit_type edit_add \
--timesteps 64 \
--cfg_scale 2.5 \
--cfg_img 4.0 \
--vae_ckpt Alpha-VLLM/Lumina-DiMOO \
--output_dir output/results_image_to_image
4.风格迁移(以图片作为风格参考)
python inference/inference_i2i.py \
--checkpoint Alpha-VLLM/Lumina-DiMOO \
--prompt "Transform the current image into the style of the provided image." \
--image_path examples/example_5.png \
--ref_image_path examples/example_5_style.png \
--edit_type image_ref_transfer \
--timesteps 64 \
--cfg_scale 2.5 \
--cfg_img 4.0 \
--vae_ckpt Alpha-VLLM/Lumina-DiMOO \
--output_dir output/results_image_to_image
5.密集预测:坎尼边缘预测、边缘检测预测、深度预测、姿态预测、坎尼边缘控制。
python inference/inference_i2i.py \
--checkpoint Alpha-VLLM/Lumina-DiMOO \
--prompt "Generate a canny edge map accroding to the image." \
--image_path examples/example_1.png \
--edit_type canny_pred \
--timesteps 64 \
--cfg_scale 2.5 \
--cfg_img 4.0 \
--vae_ckpt Alpha-VLLM/Lumina-DiMOO \
--output_dir output/results_image_to_image
🏃图像修复与外推推理
1.图像修复
python inference/inference_t2i.py\
--checkpoint Alpha-VLLM/Lumina-DiMOO \
--prompt "Porsche showroom. Make there be a Porsche logo on the back wall behind the car." \
--painting_mode inpainting \
--painting_image examples/example_8.png \
--mask_h_ratio 0.5 \
--mask_w_ratio 0.5 \
--timesteps 64 \
--cfg_scale 4.0 \
--seed 65513 \
--vae_ckpt Alpha-VLLM/Lumina-DiMOO \
--output_dir output/results_text_to_image
2.图像外推
python inference/inference_t2i.py\
--checkpoint Alpha-VLLM/Lumina-DiMOO \
--prompt "A photograph showcasing a pale gold moon, partially veiled by wispy cirrus clouds, dominating a dramatic twilight sky. The moon's soft glow reflects on the tranquil surface of a lake below, creating a shimmering mirror effect, while a small wooden rowboat gently bobs on the water's edge. Dark silhouettes of tall, ancient pine trees encircle the lake, their branches reaching towards the sky like skeletal fingers, as a gentle mist hangs low, diffusing the moonlight and adding a sense of serene mystery. The scene is bathed in soft, cool lighting, creating an ethereal and captivating atmosphere." \