mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-06 04:32:43 +00:00
🐛 fix resolution
This commit is contained in:
@@ -42,7 +42,8 @@ class STFTBackend(str, Enum):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def resolve(cls: type, backend: str) -> str:
|
def resolve(cls: type, backend: str) -> str:
|
||||||
if backend not in cls.__members__.items():
|
backend = backend.upper()
|
||||||
|
if backend not in cls.__members__.keys():
|
||||||
raise ValueError(f'Unsupported backend {backend}')
|
raise ValueError(f'Unsupported backend {backend}')
|
||||||
if backend == cls.AUTO:
|
if backend == cls.AUTO:
|
||||||
if len(tf.config.list_physical_devices('GPU')):
|
if len(tf.config.list_physical_devices('GPU')):
|
||||||
|
|||||||
Reference in New Issue
Block a user