espnet / espnet_model_zoo

ESPnet Model Zoo
Apache License 2.0
243 stars 41 forks source link

ASR demo multiple threads #32

Open BarryKCL opened 3 years ago

BarryKCL commented 3 years ago

ASR demo is not thread-safe

lumaku commented 3 years ago

This worked for me: Use torch.multiprocessing, delegate jobs through a Queue, initialize one model instance for each process. Make sure you have enough RAM.