"docs/source/ko/using-diffusers/inpaint.md" did not exist on "b0966f5801f4ffb9f008c915a3db64032dcd1edd"
Unverified Commit 45dff759 authored by xiaoting's avatar xiaoting Committed by GitHub
Browse files

Merge pull request #3779 from LDOUBLEV/fix_trt_res

Fix trt rec warmup
parents c16b6ccb 3691291a
...@@ -278,7 +278,7 @@ def main(args): ...@@ -278,7 +278,7 @@ def main(args):
if args.warmup: if args.warmup:
img = np.random.uniform(0, 255, [32, 320, 3]).astype(np.uint8) img = np.random.uniform(0, 255, [32, 320, 3]).astype(np.uint8)
for i in range(2): for i in range(2):
res = text_recognizer([img]) res = text_recognizer([img] * int(args.rec_batch_num))
for image_file in image_file_list: for image_file in image_file_list:
img, flag = check_and_read_gif(image_file) img, flag = check_and_read_gif(image_file)
......
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