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

Don't terminate on warnings #12

Open
sebnapi opened this issue Sep 9, 2023 · 1 comment
Open

Don't terminate on warnings #12

sebnapi opened this issue Sep 9, 2023 · 1 comment

Comments

@sebnapi
Copy link

sebnapi commented Sep 9, 2023

This drove me crazy, there are many deprecation warnings with tensorflow and numpy, especially because you don't specify any versions or requirements. This line was the problem:

import warnings
warnings.filterwarnings("error")

Over night the code stopped working and I have no clue why it worked before. But removing the termination on warning helped run it again.

@sebnapi sebnapi changed the title Don Don't terminate on warnings Sep 9, 2023
@JakovGlavac
Copy link

JakovGlavac commented Apr 11, 2024

BTW this didn't work for me so I needed to add warnings.filterwarnings("ignore", category=DeprecationWarning) below

Then it looks like this:

import warnings
warnings.filterwarnings("error")
warnings.filterwarnings("ignore", category=DeprecationWarning)

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