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

Infinite audio generation #120

Open
Nu70ry opened this issue Mar 11, 2024 · 7 comments
Open

Infinite audio generation #120

Nu70ry opened this issue Mar 11, 2024 · 7 comments

Comments

@Nu70ry
Copy link

Nu70ry commented Mar 11, 2024

audioldm does never finish it's audio generation i don't even think it really starts it.
i waited over 2000 seconds which is over 30 minutes but nothing happens just counting seconds.

my system:
Windows 11
Python 3.8.18
Ryzen 7800X3D
RTX 4070

i did the following:
i downloaded anaconda
i opened windows cmd as admin
i did conda create -n audioldm python=3.8
i did conda activate audioldm
i did cd to desktop
i did pip install audioldm (i dont have a pip3)
i did git clone https://github.com/haoheliu/AudioLDM
i did cd AudioLDM
i did python app.py (again no python3 on my system)
got this error and did the fix below
i did python app.py

i get these errors but the app starts:

UserWarning: Could not get documentation group for <class 'gradio.mix.Parallel'>: No known documentation group for module 'gradio.mix'

UserWarning: Could not get documentation group for <class 'gradio.mix.Series'>: No known documentation group for module 'gradio.mix'
warnings.warn(f"Could not get documentation group for {cls}: {exc}")

and summited the default text and nothing more as counting seconds happen.

hope someone can tell me how to fix this.

@Nu70ry
Copy link
Author

Nu70ry commented Mar 11, 2024

with commandline usage i get this error:

RuntimeError: Error(s) in loading state_dict for LatentDiffusion:
Unexpected key(s) in state_dict: "cond_stage_model.model.text_branch.embeddings.position_ids".

@haoheliu
Copy link
Owner

Hi please refer to this issue #95. Maybe related

@haoheliu
Copy link
Owner

@Nu70ry Another quick fix is install laion_clap using the most up-to-date code

pip install git+https://github.com/LAION-AI/CLAP.git

I tried this personally and it works. Hope it helps

@Astra060
Copy link

@Nu70ry Another quick fix is install laion_clap using the most up-to-date code

pip install git+https://github.com/LAION-AI/CLAP.git

I tried this personally and it works. Hope it helps

I tried your solution and issue #95, non worked. there also seems to be no errors, except when I refresh, and then press "submit" error is

Task exception was never retrieved
future: <Task finished name='f94ltuqx3dv_0' coro=<Queue.process_events() done, defined at X:\AudioLDM-HaoHeliu_\venv\Lib\site-packages\gradio\queueing.py:343> exception=1 validation error for PredictBody
event_id
  Field required [type=missing, input_value={'fn_index': 0, 'data': [...on_hash': 'f94ltuqx3dv'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.5/v/missing>
Traceback (most recent call last):
  File "X:\AudioLDM-HaoHeliu_\venv\Lib\site-packages\gradio\queueing.py", line 347, in process_events
    client_awake = await self.gather_event_data(event)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "X:\AudioLDM-HaoHeliu_\venv\Lib\site-packages\gradio\queueing.py", line 220, in gather_event_data
    data, client_awake = await self.get_message(event, timeout=receive_timeout)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "X:\AudioLDM-HaoHeliu_\venv\Lib\site-packages\gradio\queueing.py", line 456, in get_message
    return PredictBody(**data), True
           ^^^^^^^^^^^^^^^^^^^
  File "X:\AudioLDM-HaoHeliu_\venv\Lib\site-packages\pydantic\main.py", line 164, in __init__
    __pydantic_self__.__pydantic_validator__.validate_python(data, self_instance=__pydantic_self__)
pydantic_core._pydantic_core.ValidationError: 1 validation error for PredictBody
event_id
  Field required [type=missing, input_value={'fn_index': 0, 'data': [...on_hash': 'f94ltuqx3dv'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.5/v/missing

@Astra060
Copy link

also I'm unable to stop the server, it hangs. I also have installed torch with cuda (pytorch) through pip

@Astra060
Copy link

@Nu70ry Another quick fix is install laion_clap using the most up-to-date code

pip install git+https://github.com/LAION-AI/CLAP.git

I tried this personally and it works. Hope it helps

Please, specify the Gradio version used. Gradio is hot garbage, and sensitive to version changes.

@kingograder
Copy link

У меня такая же проблема. При нажатии кнопки "Исполнить" в Gradio секундомер начинает отсчет, но ничего не происходит. Так же программа не начинает потреблять ресурсы системы.

Вывод в консоли после запуска python app.py from AudioLDM directory:

C:\Users\User\miniconda3\envs\audioldm\lib\site-packages\gradio_client\documentation.py:106: UserWarning: Could not get documentation group for <class 'gradio.mix.Parallel'>: No known documentation group for module 'gradio.mix'
  warnings.warn(f"Could not get documentation group for {cls}: {exc}")
C:\Users\User\miniconda3\envs\audioldm\lib\site-packages\gradio_client\documentation.py:106: UserWarning: Could not get documentation group for <class 'gradio.mix.Series'>: No known documentation group for module 'gradio.mix'
  warnings.warn(f"Could not get documentation group for {cls}: {exc}")
Running on local URL:  http://127.0.0.1:7860

Я уже сделал все что посоветовал haoheliu, но это безрезультатно. Очень надеюсь на вашу помощь.

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