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

RuntimeWarning: divide by zero encountered in log #21

Open
billwuhao opened this issue Mar 21, 2025 · 1 comment
Open

RuntimeWarning: divide by zero encountered in log #21

billwuhao opened this issue Mar 21, 2025 · 1 comment

Comments

@billwuhao
Copy link

When using Comfyui, many users encounter such errors, RuntimeWarning: divide by zero encountered in log.

billwuhao/ComfyUI_NotaGen#4

billwuhao/ComfyUI_NotaGen#3

I can't find where the error came from. Can you give me some tips or suggestions

@ElectricAlexis
Copy link
Owner

ElectricAlexis commented Mar 22, 2025

Hi, thank you for your amazing Comfiui again :D

I guess there may be two notes when using NotaGen for generation with specific prompts:

  1. The pre-trained models (NotaGen-small/medium/large) can not generate music based on ''period-composer-instrumentation'' prompts. On the contrast, NotaGen-X supports prompt-guided generation.

  2. The period, composer, and instrumentation in prompts cannot be freely combined. For example, in billwuhao/ComfyUI_NotaGen#4, I saw an combination of ''Romantic-Bach, Johann Sebastian-Keyboard''. However, since Bach is not associated with the Romantic period, such prompts do not exist in our training dataset, which may lead to generation issues. All valid prompt combinations are listed in gradio/prompts.txt.

Regarding the divide by zero error during inference, I’ve encountered this as well, but the issue typically won't cause big problem as long as the inference output isn’t interrupted.

Hope this helps! 😊

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

2 participants