Commit 109f0842 authored by chenzk's avatar chenzk
Browse files

v1.0

parents
Pipeline #2847 failed with stages
in 0 seconds
# !/bin/bash
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
cd $SHELL_FOLDER
model_path="OmniGen2/OmniGen2"
python inference.py \
--model_path $model_path \
--num_inference_step 50 \
--height 1024 \
--width 1024 \
--text_guidance_scale 5.0 \
--image_guidance_scale 2.0 \
--instruction "Please let the person in image 2 hold the toy from the first image in a parking lot." \
--input_image_path example_images/04.jpg example_images/000365954.jpg \
--output_image_path outputs/output_in_context_generation.png \
--num_images_per_prompt 1
\ No newline at end of file
# !/bin/bash
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
cd $SHELL_FOLDER
model_path="OmniGen2/OmniGen2"
python inference.py \
--model_path $model_path \
--num_inference_step 50 \
--height 1024 \
--width 1024 \
--text_guidance_scale 4.0 \
--instruction "The sun rises slightly, the dew on the rose petals in the garden is clear, a crystal ladybug is crawling to the dew, the background is the early morning garden, macro lens." \
--output_image_path outputs/output_t2i.png \
--num_images_per_prompt 1
\ No newline at end of file
# !/bin/bash
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
cd $SHELL_FOLDER
model_path="OmniGen2/OmniGen2"
python inference_chat.py \
--model_path $model_path \
--instruction "Please describe this image briefly." \
--input_image_path example_images/02.jpg
\ No newline at end of file
icon.png

50.3 KB

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment