mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-30 12:22:58 +00:00
🐛 fix adapter option
This commit is contained in:
@@ -72,7 +72,7 @@ def test_evaluate(backend):
|
||||
with TemporaryDirectory() as directory:
|
||||
generate_fake_eval_dataset(directory)
|
||||
metrics = evaluate(
|
||||
adapter='spleeter.audio.adapter.ffmpeg.FFMPEGProcessAudioAdapter',
|
||||
adapter='spleeter.audio.ffmpeg.FFMPEGProcessAudioAdapter',
|
||||
output_path='eval',
|
||||
stft_backend=backend,
|
||||
params_filename='spleeter:4stems',
|
||||
|
||||
@@ -101,9 +101,8 @@ def test_train():
|
||||
'-p', 'useless_config.json',
|
||||
'-d', path
|
||||
])
|
||||
raise IOError(f'STDOUT: {result.stdout}')
|
||||
assert result.exit_code == 0
|
||||
# assert that model checkpoint was created.
|
||||
assert os.path.exists(join(path, 'model', 'model.ckpt-10.index'))
|
||||
assert os.path.exists(join(path, 'model', 'checkpoint'))
|
||||
assert os.path.exists(join(path, 'model', 'model.ckpt-0.meta'))
|
||||
assert result.exit_code == 0
|
||||
|
||||
Reference in New Issue
Block a user