Skip to content

Commit

Permalink
Fix test + fix doc-string (#20)
Browse files Browse the repository at this point in the history
* docstring change

* update test
  • Loading branch information
eeishaan authored Jul 5, 2023
1 parent 408235a commit 0202b4a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dac/utils/decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def decode(
device : str, optional
Device to use, by default "cuda". If "cpu", the model will be loaded on the CPU.
model_type : str, optional
The type of model to download. Must be one of "44khz", "24khz", or "16khz". Defaults to "44khz". Ignored if `weights_path` is specified.
The type of model to use. Must be one of "44khz", "24khz", or "16khz". Defaults to "44khz". Ignored if `weights_path` is specified.
"""
generator = load_model(
tag=model_tag,
Expand Down
2 changes: 1 addition & 1 deletion dac/utils/encode.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def encode(
device : str, optional
Device to use, by default "cuda"
model_type : str, optional
The type of model to download. Must be one of "44khz", "24khz", or "16khz". Defaults to "44khz". Ignored if `weights_path` is specified.
The type of model to use. Must be one of "44khz", "24khz", or "16khz". Defaults to "44khz". Ignored if `weights_path` is specified.
"""
generator = load_model(
tag=model_tag,
Expand Down
1 change: 1 addition & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def test_reconstruction(model_type):
args = {
"input": str(input_dir),
"output": str(output_dir),
"model_type": model_type,
}
with argbind.scope(args):
run("decode")
Expand Down

0 comments on commit 0202b4a

Please sign in to comment.