Skip to content

Commit

Permalink
Apply new black ✨ 🍰 ✨ (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
kan-bayashi authored Feb 6, 2023
1 parent 817befd commit 11b9142
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion egs/csd/voc1/local/dataset_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def process_subset(src_data, subset, check_func, dump_dir, fs):
wavscp = open(os.path.join(subset, "wav.scp"), "w", encoding="utf-8")
label_scp = open(os.path.join(subset, "label"), "w", encoding="utf-8")
for csv in os.listdir(os.path.join(src_data, "csv")):

if not os.path.isfile(os.path.join(src_data, "csv", csv)):
continue
if not check_func(csv):
Expand Down
1 change: 0 additions & 1 deletion egs/kiritan/voc1/local/prep_segments.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def make_segment(file_id, labels, threshold=13.5, sil=["pau", "br", "sil"]):
segments = []
segment = SegInfo()
for label in labels:

if label.label_id in sil:
if len(segment.segs) > 0:
segments.extend(segment.split(threshold=threshold))
Expand Down
1 change: 0 additions & 1 deletion egs/kising/voc1/local/data_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def process_text_info(text):


def process_subset(args, set_name, check_func):

if not os.path.exists(os.path.join(args.tgt_dir, set_name)):
os.makedirs(os.path.join(args.tgt_dir, set_name))

Expand Down
1 change: 0 additions & 1 deletion egs/kising/voc1/local/prep_segments.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def make_segment(file_id, labels):
segment = SegInfo()
running_end = 0
for label in labels:

if float(running_end) + 1 < float(label.start):
if len(segment.segs) > 0:
segments.append(segment.segs)
Expand Down
1 change: 0 additions & 1 deletion egs/natsume/voc1/local/prep_segments.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def make_segment(file_id, labels, threshold=13.5, sil=["pau", "br", "sil"]):
segments = []
segment = SegInfo()
for label in labels:

if label.label_id in sil:
if len(segment.segs) > 0:
segments.extend(segment.split(threshold=threshold))
Expand Down
1 change: 0 additions & 1 deletion egs/no7singing/voc1/local/prep_segments.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def make_segment(file_id, labels, threshold=13.5, sil=["pau", "br", "sil"]):
segments = []
segment = SegInfo()
for label in labels:

if label.label_id in sil:
if len(segment.segs) > 0:
segments.extend(segment.split(threshold=threshold))
Expand Down
1 change: 0 additions & 1 deletion egs/ofuton_p_utagoe_db/voc1/local/prep_segments.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def make_segment(file_id, labels, threshold=13.5, sil=["pau", "br", "sil"]):
segments = []
segment = SegInfo()
for label in labels:

if label.label_id in sil:
if len(segment.segs) > 0:
segments.extend(segment.split(threshold=threshold))
Expand Down
1 change: 0 additions & 1 deletion egs/oniku_kurumi_utagoe_db/voc1/local/prep_segments.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def make_segment(file_id, labels, threshold=13.5, sil=["pau", "br", "sil"]):
segments = []
segment = SegInfo()
for label in labels:

if label.label_id in sil:
if len(segment.segs) > 0:
segments.extend(segment.split(threshold=threshold))
Expand Down
1 change: 0 additions & 1 deletion egs/pjs/voc1/local/prep_segments.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def make_segment(file_id, labels, threshold=13.5, sil=["pau", "br", "sil"]):
segments = []
segment = SegInfo()
for label in labels:

if label.label_id in sil:
if len(segment.segs) > 0:
segments.extend(segment.split(threshold=threshold))
Expand Down
1 change: 0 additions & 1 deletion parallel_wavegan/optimizers/radam.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def step(self, closure=None):
loss = closure()

for group in self.param_groups:

for p in group["params"]:
if p.grad is None:
continue
Expand Down

0 comments on commit 11b9142

Please sign in to comment.