Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

演示示例输出同一个示例的解决方案 #39

Open
yikexiaoxing opened this issue Jan 3, 2025 · 0 comments
Open

演示示例输出同一个示例的解决方案 #39

yikexiaoxing opened this issue Jan 3, 2025 · 0 comments

Comments

@yikexiaoxing
Copy link

示例与生成的结果对应不上,源代码将示例写死了无论选哪个数字人形象没有改变
将app.py 中第564行替换如下

character_name_to_yaml = {
"speaker8_jjRWaMCWs44_00-00-30.16_00-00-33.32.mp4": "./datasets/data_json/youtube_test/speaker8.json",
"speaker7_iuYlGRnC7J8_00-00-0.00_00-00-3.25.mp4": "./datasets/data_json/youtube_test/speaker7.json",
"speaker9_o7Ik1OB4TaE_00-00-38.15_00-00-42.33.mp4": "./datasets/data_json/youtube_test/speaker9.json",
"1wrQ6Msp7wM_00-00-39.69_00-00-45.68.mp4": "./datasets/data_json/youtube_test/speaker1.json",
"101099-00_18_09-00_18_19.mp4": "./datasets/data_json/show_oliver_test/Stupid_Watergate_-_Last_Week_Tonight_with_John_Oliver_HBO-FVFdsl29s_Q.mkv.json",
}

key_name = character_name.split("/")[-1]
yaml_name = character_name_to_yaml.get(key_name, "Key not found").replace("./", "")
yaml_name = os.path.join(SCRIPT_PATH, yaml_name)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant