Skip to content

Commit

Permalink
fix typo in docstring (facebookresearch#456)
Browse files Browse the repository at this point in the history
* fix typo in docstring

* delete unused parameter
  • Loading branch information
Zhen-Ni authored May 8, 2023
1 parent 8b48c27 commit e25cfeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions demucs/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ def read(self,
duration=None,
streams=slice(None),
samplerate=None,
channels=None,
temp_folder=None):
channels=None):
"""
Slightly more efficient implementation than stempeg,
in particular, this will extract all stems at once
Expand All @@ -94,9 +93,6 @@ def read(self,
See https://sound.stackexchange.com/a/42710.
Our definition of mono is simply the average of the two channels. Any other
value will be ignored.
temp_folder (str or Path or None): temporary folder to use for decoding.
"""
streams = np.array(range(len(self)))[streams]
single = not isinstance(streams, np.ndarray)
Expand Down
2 changes: 1 addition & 1 deletion demucs/demucs.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def __init__(self,
normalize (bool): normalizes the input audio on the fly, and scales back
the output by the same amount.
resample (bool): upsample x2 the input and downsample /2 the output.
rescale (int): rescale initial weights of convolutions
rescale (float): rescale initial weights of convolutions
to get their standard deviation closer to `rescale`.
samplerate (int): stored as meta information for easing
future evaluations of the model.
Expand Down

0 comments on commit e25cfeb

Please sign in to comment.