Skip to content

Commit 6fa8e1b

Browse files
committed
Set max_workers=8
1 parent e21499e commit 6fa8e1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/training/tesstrain_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def phase_I_generate_image(ctx, par_factor):
379379

380380
with tqdm(
381381
total=len(ctx.fonts)
382-
) as pbar, concurrent.futures.ThreadPoolExecutor() as executor:
382+
) as pbar, concurrent.futures.ThreadPoolExecutor(max_workers=8) as executor:
383383
futures = [
384384
executor.submit(generate_font_image, ctx, font, exposure, char_spacing)
385385
for font in ctx.fonts

0 commit comments

Comments
 (0)