ina-foss / inaSpeechSegmenter

CNN-based audio segmentation toolkit. Allows to detect speech, music, noise and speaker gender. Has been designed for large scale gender equality studies based on speech time per gender.
MIT License
717 stars 127 forks source link

migrate keras to tensorflow.keras #60

Closed tann9949 closed 3 years ago

tann9949 commented 3 years ago

Keras is deprecated and using Keras package directly can cause a bug. If is safer to import keras as a tensorflow module

DavidDoukhan commented 3 years ago

Thanks a lot for this valuable contribution !

hykilpikonna commented 2 years ago

This actually prevents third-party backends such as plaidml for people who don't have the proper CUDA environment to run the tensorflow backend.

Before the change, I can simply set environment variable os.environ['KERAS_BACKEND'] = "plaidml.keras.backend" to use plaidml instead of tensorflow with my AMD GPU