upload files
This commit is contained in:
+5
-4
@@ -25,10 +25,11 @@ if __name__ == "__main__":
|
|||||||
if os.path.exists("custom_character_anno.txt"):
|
if os.path.exists("custom_character_anno.txt"):
|
||||||
with open("custom_character_anno.txt", 'r', encoding='utf-8') as f:
|
with open("custom_character_anno.txt", 'r', encoding='utf-8') as f:
|
||||||
custom_character_anno = f.readlines()
|
custom_character_anno = f.readlines()
|
||||||
# custom character voices need to be at least equal to number of sample_audio4ft
|
if len(custom_character_anno):
|
||||||
num_character_voices = len(custom_character_anno)
|
# custom character voices need to be at least equal to number of sample_audio4ft
|
||||||
cc_duplicate = num_old_voices // num_character_voices
|
num_character_voices = len(custom_character_anno)
|
||||||
final_annos = final_annos + custom_character_anno * cc_duplicate
|
cc_duplicate = num_old_voices // num_character_voices
|
||||||
|
final_annos = final_annos + custom_character_anno * cc_duplicate
|
||||||
# save annotation file
|
# save annotation file
|
||||||
with open("final_annotation_train.txt", 'w', encoding='utf-8') as f:
|
with open("final_annotation_train.txt", 'w', encoding='utf-8') as f:
|
||||||
for line in final_annos:
|
for line in final_annos:
|
||||||
|
|||||||
Reference in New Issue
Block a user