Skip to content

Commit 0202b4a

Browse files
authored
Fix test + fix doc-string (#20)
* docstring change * update test
1 parent 408235a commit 0202b4a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

dac/utils/decode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def decode(
122122
device : str, optional
123123
Device to use, by default "cuda". If "cpu", the model will be loaded on the CPU.
124124
model_type : str, optional
125-
The type of model to download. Must be one of "44khz", "24khz", or "16khz". Defaults to "44khz". Ignored if `weights_path` is specified.
125+
The type of model to use. Must be one of "44khz", "24khz", or "16khz". Defaults to "44khz". Ignored if `weights_path` is specified.
126126
"""
127127
generator = load_model(
128128
tag=model_tag,

dac/utils/encode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def encode(
146146
device : str, optional
147147
Device to use, by default "cuda"
148148
model_type : str, optional
149-
The type of model to download. Must be one of "44khz", "24khz", or "16khz". Defaults to "44khz". Ignored if `weights_path` is specified.
149+
The type of model to use. Must be one of "44khz", "24khz", or "16khz". Defaults to "44khz". Ignored if `weights_path` is specified.
150150
"""
151151
generator = load_model(
152152
tag=model_tag,

tests/test_cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def test_reconstruction(model_type):
5050
args = {
5151
"input": str(input_dir),
5252
"output": str(output_dir),
53+
"model_type": model_type,
5354
}
5455
with argbind.scope(args):
5556
run("decode")

0 commit comments

Comments
 (0)