Spaces:
Configuration error
Configuration error
File size: 931 Bytes
8dc9718 |
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 |
# -*- coding: utf-8 -*-
# @Time : 2024/12/15
# @Author : wenshao
# @Email : wenshaoguo1026@gmail.com
# @Project : FasterLivePortrait
# @FileName: test_pipelines.py
import pdb
import pickle
import sys
sys.path.append(".")
def test_joyvasa_pipeline():
from src.pipelines.joyvasa_audio_to_motion_pipeline import JoyVASAAudio2MotionPipeline
pipe = JoyVASAAudio2MotionPipeline(
motion_model_path="checkpoints/JoyVASA/motion_generator/motion_generator_hubert_chinese.pt",
audio_model_path="checkpoints/chinese-hubert-base",
motion_template_path="checkpoints/JoyVASA/motion_template/motion_template.pkl")
audio_path = "assets/examples/driving/a-01.wav"
motion_data = pipe.gen_motion_sequence(audio_path)
with open("assets/examples/driving/d1-joyvasa.pkl", "wb") as fw:
pickle.dump(motion_data, fw)
pdb.set_trace()
if __name__ == '__main__':
test_joyvasa_pipeline()
|