live2d 单图转模型 单图生成模型

目录

talking-head-anime-4-demo

训练后效果,生成各个姿态的图

相机驱动:

训练后config:

图片格式示意:

加载模型:

[live2d-tts 只有教程,](#live2d-tts 只有教程,)


talking-head-anime-4-demo

训练后效果,生成各个姿态的图

src/tha4/app/character_model_manual_poser.py

相机驱动:

character_model_mediapipe_puppeteer.py

训练后config:

config.yaml

bash 复制代码
prefix: demo
character_image_file_name: data/images/lambda_02.png
face_mask_image_file_name: data/images/lambda_02_face_mask.png
face_morpher_random_seed_0: 12771885812175595441
face_morpher_random_seed_1: 14367217090963479175
face_morpher_num_training_examples_per_sample_output: 10000
face_morpher_batch_size: 7
body_morpher_random_seed_0: 2892221210020292507
body_morpher_random_seed_1: 9998918537095922080
body_morpher_num_training_examples_per_sample_output: 10000
body_morpher_batch_size: 8
num_cpu_workers: 1
num_gpus: 1
face_morpher_file_name: character_model/face_morpher.pt
body_morpher_file_name: character_model/body_morpher.pt

https://github.com/pkhungurn/talking-head-anime-4-demo

图片格式示意:

保存模型0010

python 复制代码
        @file_task(workspace, self.character_model_character_png_file_name(), [self.character_image_file_name])
        def copy_character_image_file_name():
            copy_file(self.character_image_file_name, self.character_model_character_png_file_name())

        @file_task(workspace, self.character_model_face_morpher_file_name(), [
            f"{self.face_morpher_prefix()}/checkpoint/0010/module_module.pt",
        ])
        def copy_face_morpher():
            copy_file(
                f"{self.face_morpher_prefix()}/checkpoint/0010/module_module.pt",
                self.character_model_face_morpher_file_name())

        @file_task(workspace, self.character_model_body_morpher_file_name(), [
            f"{self.body_morpher_prefix()}/checkpoint/0015/module_module.pt",
        ])
        def copy_face_morpher():
            copy_file(
                f"{self.body_morpher_prefix()}/checkpoint/0015/module_module.pt",
                self.character_model_body_morpher_file_name())

加载模型:

python 复制代码
    def load(file_name: str):
        conf = OmegaConf.to_container(OmegaConf.load(file_name))
        dir = os.path.dirname(file_name)
        character_image_file_name = os.path.join(dir, conf["character_image_file_name"])
        face_morpher_file_name = os.path.join(dir, conf["face_morpher_file_name"])
        body_morpher_file_name = os.path.join(dir, conf["body_morpher_file_name"])
        return CharacterModel(
            character_image_file_name,
            face_morpher_file_name,
            body_morpher_file_name)

live2d-tts 只有教程,

https://www.zhihu.com/zvideo/1778061945503461376

相关推荐
m0_493934531 天前
如何监控AWR数据收集Job_DBA_SCHEDULER_JOBS中的BSLN_MAINTAIN_STATS
jvm·数据库·python
xiaotao1311 天前
01-编程基础与数学基石:概率与统计
人工智能·python·numpy·pandas
云烟成雨TD1 天前
Spring AI Alibaba 1.x 系列【23】短期记忆
java·人工智能·spring
摇滚侠1 天前
帮我整理一份 IDEA 开发中常用快捷键
java·ide·intellij-idea
赵侃侃爱分享1 天前
学完Python第一次写程序写了这个简单的计算器
开发语言·python
a9511416421 天前
Go语言如何操作OSS_Go语言阿里云OSS上传教程【完整】
jvm·数据库·python
2401_897190551 天前
MySQL中如何利用LIMIT配合函数分页_MySQL分页查询优化
jvm·数据库·python
whuhewei1 天前
为什么客户端不存在跨域问题
前端·安全
断眉的派大星1 天前
# Python 魔术方法(魔法方法)超详细讲解
开发语言·python
妮妮喔妮1 天前
supabase的webhook报错
开发语言·前端·javascript