MTG / essentia

C++ library for audio and music analysis, description and synthesis, including Python bindings
http://essentia.upf.edu
GNU Affero General Public License v3.0
2.86k stars 534 forks source link

Get rid of "MusicExtractorSVM: no classifier models were configured by default" #1418

Closed EvgeniyDoctor closed 5 months ago

EvgeniyDoctor commented 5 months ago

I use essentia for python3. Like this: import essentia.standard as es

When i run my script, i always see this line first: [ INFO ] MusicExtractorSVM: no classifier models were configured by default and then my own output. And i really, really tired of this. I tried logger and

sys.stdout = open(os.devnull, 'w')
sys.stderr = open(os.devnull, 'w')

but still see this. How to get rid of it?

dbogdanov commented 5 months ago

You can hide it by

import essentia
essentia.log.infoActive = False
import essentia.standard as es

More info on logging.