example_edit_test.sh 819 Bytes
Newer Older
chenzk's avatar
v1.0  
chenzk committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# !/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 30 \
--text_guidance_scale 5.0 \
--image_guidance_scale 2.0 \
--instruction "Change the color of dress to light green." \
--input_image_path example_images/flux5.png \
--output_image_path outputs/prompt_guide_edit_1.png \
--num_images_per_prompt 4 \
--cfg_range_end 0.8 \
--scheduler dpmsolver++


model_path="OmniGen2/OmniGen2"
python inference.py \
--model_path $model_path \
--num_inference_step 50 \
--text_guidance_scale 5.0 \
--image_guidance_scale 2.0 \
--instruction "Change the color of dress to light green." \
--input_image_path example_images/flux5.png \
--output_image_path outputs/prompt_guide_edit_2.png \
--num_images_per_prompt 4