Skip to content

Commit

Permalink
Update tools/llm_bench/task/image_generation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova authored Dec 24, 2024
1 parent d5bf817 commit ea4a2f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/llm_bench/task/image_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def collects_input_args(image_param, model_type, model_name, infer_count=None, h
def run_image_generation(image_param, num, image_id, pipe, args, iter_data_list, proc_id, mem_consumption, callback=None):
set_seed(args['seed'])
input_text = image_param['prompt']
input_args = collects_input_args(image_param, args['model_type'], args['model_name'], args["infer_count"], args.get("height"), args.get("width"))
input_args = collects_input_args(image_param, args['model_type'], args['model_name'], args["num_steps"], args.get("height"), args.get("width"))
out_str = f"Input params: Batch_size={args['batch_size']}, " \
f"steps={input_args['num_inference_steps']}, width={input_args['width']}, height={input_args['height']}"
if 'guidance_scale' in input_args:
Expand Down

0 comments on commit ea4a2f3

Please sign in to comment.