Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection refused when testing set is large #20

Open
George0828Zhang opened this issue Nov 26, 2021 · 5 comments
Open

Connection refused when testing set is large #20

George0828Zhang opened this issue Nov 26, 2021 · 5 comments

Comments

@George0828Zhang
Copy link

George0828Zhang commented Nov 26, 2021

Hi,
I noticed that when using dev/test set with large number of sentences (e.g. CoVoST2's dev/test generally have 15k sentences), the evaluation will hang due to the following error:

2021-11-27 03:49:51 | INFO     | simuleval.scorer | Number of sentences: 15492
HTTPConnectionPool(host='localhost', port=12347): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fec33199ca0>: Failed to establish a new connection: [Errno 111] Connection refused'))

After some printing here and there, I suspect this error comes from here . however I'm not familiar with web app so I have no idea how to correct/avoid this error.

Is there any easy solution to this? Much appreciated. @xutaima

EDIT:
Forgot to mention that this does not happen if I use a subset of sentences e.g. 1500 sentences.

@EricLina
Copy link

I met the same problem , I am wondering is there a way to run in local without servers or Web

@xutaima
Copy link
Contributor

xutaima commented Feb 21, 2022

Hi, I noticed that when using dev/test set with large number of sentences (e.g. CoVoST2's dev/test generally have 15k sentences), the evaluation will hang due to the following error:

2021-11-27 03:49:51 | INFO     | simuleval.scorer | Number of sentences: 15492
HTTPConnectionPool(host='localhost', port=12347): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fec33199ca0>: Failed to establish a new connection: [Errno 111] Connection refused'))

After some printing here and there, I suspect this error comes from here . however I'm not familiar with web app so I have no idea how to correct/avoid this error.

Is there any easy solution to this? Much appreciated. @xutaima

EDIT: Forgot to mention that this does not happen if I use a subset of sentences e.g. 1500 sentences.

@George0828Zhang Thanks for reporting the issue! I haven't tried a test set of this size. And the error you posted looks like the server side is down (Maybe because of the the memory issue). I will found a work around recently and let you know if there is any update.

@xutaima
Copy link
Contributor

xutaima commented Feb 21, 2022

I met the same problem , I am wondering is there a way to run in local without servers or Web

Hi @1190301804 currently there is only server-client setup. Local setup is not every easy to generalize.

@EricLina
Copy link

EricLina commented Mar 9, 2022

So is there any solution except make the test size smaller ?

@Faken93
Copy link

Faken93 commented Mar 29, 2022

We met the same problem, and have found the solution.

time.sleep(3)

time.sleep(20)

The reason is that when waiting 3 seconds to start the client, the server is not initailized immediately. So the simplest way is to increase the waiting time.

As for why starting the server needs more time for SpeechAgent, the Scorer when reseting the AudioInstance would cost longer time than TextInstance.

@xutaima

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants