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