mirror of
https://github.com/snakers4/silero-vad.git
synced 2026-02-05 18:09:22 +08:00
add a initializer
This commit is contained in:
@@ -105,7 +105,6 @@
|
|||||||
"from concurrent.futures import ProcessPoolExecutor, as_completed\n",
|
"from concurrent.futures import ProcessPoolExecutor, as_completed\n",
|
||||||
"\n",
|
"\n",
|
||||||
"futures = []\n",
|
"futures = []\n",
|
||||||
"NUM_COPIES=20\n",
|
|
||||||
"\n",
|
"\n",
|
||||||
"with ProcessPoolExecutor(max_workers=NUM_PROCESS, initializer=init_model, initargs=(model,)) as ex:\n",
|
"with ProcessPoolExecutor(max_workers=NUM_PROCESS, initializer=init_model, initargs=(model,)) as ex:\n",
|
||||||
" for i in range(NUM_COPIES):\n",
|
" for i in range(NUM_COPIES):\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user