Related to this question and this discussion.
Unfortunately, my input images are in 2D grayscale. Although my image processing script is still working fine, my IPython console is full of repeating warnings. Can anyone help me:
- how to turn off the warning or
- how to solve it so that there is no more warning?
It is not clear how to do it (at least for a beginner like me). Thanks!
version: scikit-image 0.17.2
CodePudding user response:
To turn off the warnings, you can add the following lines:
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
before you run the function in question.