Skip to content

Commit

Permalink
fix(__main__): fix -h option overridden (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
34j authored Mar 28, 2023
1 parent 29474d9 commit 52f1cfe
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/so_vits_svc_fork/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,9 @@ def vc(
)
@click.option("-d", "--top-db", type=float, default=30, help="top db")
@click.option("-f", "--frame-seconds", type=float, default=1, help="frame seconds")
@click.option("-h", "--hop-seconds", type=float, default=0.3, help="hop seconds")
@click.option(
"-ho", "-hop", "--hop-seconds", type=float, default=0.3, help="hop seconds"
)
def pre_resample(
input_dir: Path,
output_dir: Path,
Expand Down Expand Up @@ -653,7 +655,9 @@ def pre_sd(
)
@click.option("-d", "--top-db", type=float, default=30, help="top db")
@click.option("-f", "--frame-seconds", type=float, default=1, help="frame seconds")
@click.option("-h", "--hop-seconds", type=float, default=0.3, help="hop seconds")
@click.option(
"-ho", "-hop", "--hop-seconds", type=float, default=0.3, help="hop seconds"
)
@click.option("-s", "--sr", type=int, default=44100, help="sample rate")
def pre_split(
input_dir: Path | str,
Expand Down
2 changes: 2 additions & 0 deletions src/so_vits_svc_fork/preprocess_speaker_diarization.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from collections import defaultdict
from logging import getLogger
from pathlib import Path
Expand Down
3 changes: 2 additions & 1 deletion src/so_vits_svc_fork/preprocess_split.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from __future__ import annotations

from logging import getLogger
from pathlib import Path

import librosa
import soundfile
import soundfile as sf
from joblib import Parallel, delayed
from tqdm import tqdm
Expand Down
1 change: 1 addition & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def test_import(self):
import so_vits_svc_fork.preprocess_flist_config # noqa
import so_vits_svc_fork.preprocess_hubert_f0 # noqa
import so_vits_svc_fork.preprocess_resample # noqa
import so_vits_svc_fork.preprocess_split # noqa
import so_vits_svc_fork.train # noqa

def test_infer(self):
Expand Down

0 comments on commit 52f1cfe

Please sign in to comment.