Update tqdm desc

This commit is contained in:
Artrajz 2024-02-13 22:21:06 +08:00
parent 3be2defcc7
commit e1d55e46e7
3 changed files with 4 additions and 3 deletions

View File

@ -79,7 +79,8 @@ if os.path.exists(txt_path) == False:
return phone_level_feature.T return phone_level_feature.T
def process(data, res): def process(data, res):
for name, text, lan in tqdm(data, desc="Processing"): print(i_part)
for name, text, lan in tqdm(data, desc=f"Process {i_part}"):
try: try:
name = os.path.basename(name) name = os.path.basename(name)
phones, word2ph, norm_text = clean_text( phones, word2ph, norm_text = clean_text(

View File

@ -97,7 +97,7 @@ def name2go(wav_name,wav_path):
with open(inp_text,"r",encoding="utf8")as f: with open(inp_text,"r",encoding="utf8")as f:
lines=f.read().strip("\n").split("\n") lines=f.read().strip("\n").split("\n")
for line in tqdm(lines[int(i_part)::int(all_parts)], desc="Processing"): for line in tqdm(lines[int(i_part)::int(all_parts)], desc=f"Process {i_part}"):
try: try:
# wav_name,text=line.split("\t") # wav_name,text=line.split("\t")
wav_name, spk_name, language, text = line.split("|") wav_name, spk_name, language, text = line.split("|")

View File

@ -81,7 +81,7 @@ if os.path.exists(semantic_path) == False:
lines = f.read().strip("\n").split("\n") lines = f.read().strip("\n").split("\n")
lines1 = [] lines1 = []
for line in tqdm(lines[int(i_part) :: int(all_parts)], desc="Processing"): for line in tqdm(lines[int(i_part) :: int(all_parts)], desc=f"Process {i_part}"):
# print(line) # print(line)
try: try:
# wav_name,text=line.split("\t") # wav_name,text=line.split("\t")