-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_test.py
More file actions
47 lines (36 loc) · 1.25 KB
/
debug_test.py
File metadata and controls
47 lines (36 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# import youdub.step040_tts
import youdub.step070_upload_bilibili
#
import youdub.step050_synthesize_video
#
#
#
#
import youdub.step060_genrate_info
import youdub.step010_demucs_vr
import youdub.step020_whisperx
import youdub.step030_translation
if __name__ == '__main__':
# youdub.step040_tts.main()
root = r"youdub/videos_bestf111/The Inspire Path/20260112 5 Steps to Kill Lust Forever This Actually Works"
# is_short = False
is_short = True
zh_only = True
# zh_only = False
youdub.step010_demucs_vr.separate_all_audio_under_folder(
root_folder=root,
model_name="htdemucs", # 推荐 htdemucs_ft 或 htdemucs
shifts=2, # 1 速度最快;2 稍好一些
device="auto",
segment=None, # 显存不够就设小点,比如 10
)
youdub.step020_whisperx.transcribe_all_audio_under_folder(
root
)
youdub.step030_translation.translate_all_transcript_under_folder(
root, '简体中文')
folder = root
youdub.step050_synthesize_video.main(folder, is_short, zh_only)
youdub.step060_genrate_info.main(folder)
youdub.step070_upload_bilibili.main(folder)
# youdub.step060_genrate_info.main()