mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-06 04:32:43 +00:00
Changed gpu availability function to avoid deprectation warning
This commit is contained in:
@@ -69,7 +69,7 @@ def get_backend(backend):
|
|||||||
# print("USING TENSORFLOW BACKEND !!!!!!")
|
# print("USING TENSORFLOW BACKEND !!!!!!")
|
||||||
# return "tensorflow"
|
# return "tensorflow"
|
||||||
if backend == "auto":
|
if backend == "auto":
|
||||||
return "tensorflow" if tf.test.is_gpu_available() else "librosa"
|
return "tensorflow" if len(tf.config.list_physical_devices('GPU')) else "librosa"
|
||||||
return backend
|
return backend
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user