Skip to content

Commit

Permalink
Set max_workers=8
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreeshrii committed Mar 17, 2019
1 parent e21499e commit 6fa8e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/training/tesstrain_utils.py
Expand Up @@ -379,7 +379,7 @@ def phase_I_generate_image(ctx, par_factor):

with tqdm(
total=len(ctx.fonts)
) as pbar, concurrent.futures.ThreadPoolExecutor() as executor:
) as pbar, concurrent.futures.ThreadPoolExecutor(max_workers=8) as executor:
futures = [
executor.submit(generate_font_image, ctx, font, exposure, char_spacing)
for font in ctx.fonts
Expand Down

0 comments on commit 6fa8e1b

Please sign in to comment.