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

2回目以降の学習がエラーで停止する #46

Closed
RedRayz opened this issue May 27, 2023 · 3 comments
Closed

2回目以降の学習がエラーで停止する #46

RedRayz opened this issue May 27, 2023 · 3 comments

Comments

@RedRayz
Copy link

RedRayz commented May 27, 2023

一度でも学習したことがあると、以下のエラーで失敗します。再起動すると直ります。
Commit hashはe56959bb016fd87d53874c0415fd1af12fd2f401です。

Traceback (most recent call last):
  File "F:\rvc-webui\venv\lib\site-packages\gradio\routes.py", line 412, in run_predict
    output = await app.get_blocks().process_api(
  File "F:\rvc-webui\venv\lib\site-packages\gradio\blocks.py", line 1299, in process_api
    result = await self.call_function(
  File "F:\rvc-webui\venv\lib\site-packages\gradio\blocks.py", line 1035, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "F:\rvc-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "F:\rvc-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "F:\rvc-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "F:\rvc-webui\venv\lib\site-packages\gradio\utils.py", line 491, in async_iteration
    return next(iterator)
  File "F:\rvc-webui\modules\tabs\training.py", line 221, in train_all
    train_model(
  File "F:\rvc-webui\lib\rvc\train.py", line 243, in train_model
    training_runner(
  File "F:\rvc-webui\lib\rvc\train.py", line 342, in training_runner
    dist.init_process_group(
  File "F:\rvc-webui\venv\lib\site-packages\torch\distributed\distributed_c10d.py", line 865, in init_process_group
    raise RuntimeError("trying to initialize the default process group " "twice!")
RuntimeError: trying to initialize the default process group twice!
@terracottahaniwa
Copy link
Contributor

I also had the same problem. Here is my solution.
同様の症状がありました。これは私の解決案です。

terracottahaniwa@176ae7b

terracottahaniwa added a commit to terracottahaniwa/rvc-webui that referenced this issue Jun 7, 2023
@ddPn08
Copy link
Owner

ddPn08 commented Jun 8, 2023

@terracottahaniwa

修正ありがとうございます。もしよければPRを作成していただけますか?


Thank you for your correction. If you don't mind, could you please create a PR?

@terracottahaniwa
Copy link
Contributor

terracottahaniwa commented Jun 8, 2023

I created request. Thank you!

@ddPn08 ddPn08 closed this as completed in 176ae7b Jun 8, 2023
ddPn08 added a commit that referenced this issue Jun 8, 2023
terracottahaniwa added a commit to terracottahaniwa/rvc-webui that referenced this issue Jun 19, 2023
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

3 participants