无言以对 发表于 2025-2-11 13:37:55

FasterLivePortrait - 实时肖像动画,一张照片生成生动视频、表情包,精准操控五官 本地一键整合包下载


FasterLivePortrait‌ 是基于LivePortrait 的一个实现,它在原有功能的基础上增加了多项改进,包括使用TensorRT实现实时运行、本地摄像头实时渲染以及支持ONNX模型转换等。还新增了基于JoyVASA音频驱动唇形技术,可以实现音频驱动配合生成肖像动画。

FasterLivePortrait‌ 新增功能:

通过TensorRT实现在RTX 3090显卡上实时运行LivePortrait,速度达到 30+ FPS. 这个速度是实测渲染出一帧的速度,而不仅仅是模型的推理时间。
无缝支持原生的gradio app, 速度快了好几倍,同时支持多张人脸、Animal模型。
增加JoyVASA的支持,可以用音频驱动视频或图片。
文本驱动视频,基于kokoro-82M。
声音驱动视频(可以实时)。
动物驱动。
多张人脸同时驱动。


使用教程:(建议N卡,显存8G起)
基础配置:需要安装CUDA 12.X和CUDNN,相关教程参考
和LivePortrait 操作类似,上传源素材和驱动素材,生成即可。
摄像头实时运行,双击启动实时。按Q键停止实时,如需要更换目标图像素材,替换assets\examples\live下的demo.jpg即可。

下载地址:
迅雷云盘:https://pan.xunlei.com/s/VOIo1DriN7uozZ9fB3bWNFPaA1?pwd=stqh
夸克网盘:https://pan.quark.cn/s/fc3ed49d3b46
百度网盘:**** 本内容需购买 ****


解压密码:https://deepface.cc/ 复制这个完整的网址即是解压密码,不要有空格,复制粘贴即可

nsctt 发表于 2025-2-11 20:31:20

试试效果先,数字人暂时只有Sonic这个还可以点。其他效果不是很好,不过谢谢分享

xuyi263 发表于 2025-2-12 20:05:48

非常感谢楼主的共享

冬梅zdm 发表于 2025-2-13 06:36:22

学习一下课程设计一下早就知道了。

gundam009527 发表于 2025-2-14 05:30:34

Traceback (most recent call last):
File "F:\FasterLivePortrait\app.py", line 12, in <module>
    from src.pipelines.gradio_live_portrait_pipeline import GradioLivePortraitPipeline
File "F:\FasterLivePortrait\src\pipelines\gradio_live_portrait_pipeline.py", line 17, in <module>
    from .faster_live_portrait_pipeline import FasterLivePortraitPipeline
File "F:\FasterLivePortrait\src\pipelines\faster_live_portrait_pipeline.py", line 16, in <module>
    import torch
File "F:\FasterLivePortrait\deepface\lib\site-packages\torch\__init__.py", line 148, in <module>
    raise err
OSError: 找不到指定的模块。 Error loading "F:\FasterLivePortrait\deepface\lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.
请按任意键继续. . .

无言以对 发表于 2025-2-14 07:39:53

gundam009527 发表于 2025-2-14 05:30
Traceback (most recent call last):
File "F:\FasterLivePortrait\app.py", line 12, in
    from src. ...

https://deepface.cc/thread-523-1-1.html

来日方长 发表于 2025-2-16 10:24:34

实时的这个厉害了

AlexXu 发表于 2025-2-17 11:42:13

Traceback (most recent call last):
File "D:\AICreation\FasterLivePortrait\app.py", line 37, in <module>
    gradio_pipeline = GradioLivePortraitPipeline(infer_cfg)
File "D:\AICreation\FasterLivePortrait\src\pipelines\gradio_live_portrait_pipeline.py", line 36, in __init__
    super(GradioLivePortraitPipeline, self).__init__(cfg, **kwargs)
File "D:\AICreation\FasterLivePortrait\src\pipelines\faster_live_portrait_pipeline.py", line 28, in __init__
    self.init(**kwargs)
File "D:\AICreation\FasterLivePortrait\src\pipelines\faster_live_portrait_pipeline.py", line 32, in init
    self.init_models(**kwargs)
File "D:\AICreation\FasterLivePortrait\src\pipelines\faster_live_portrait_pipeline.py", line 72, in init_models
    self.model_dict = getattr(models, self.cfg.models["name"])(
File "D:\AICreation\FasterLivePortrait\src\models\warping_spade_model.py", line 20, in __init__
    super(WarpingSpadeModel, self).__init__(**kwargs)
File "D:\AICreation\FasterLivePortrait\src\models\base_model.py", line 13, in __init__
    self.predictor = get_predictor(**self.kwargs)
File "D:\AICreation\FasterLivePortrait\src\models\predictor.py", line 257, in get_predictor
    return TensorRTPredictor(**kwargs)
File "D:\AICreation\FasterLivePortrait\src\models\predictor.py", line 61, in __init__
    assert self.engine
AssertionError
Exception ignored in: <function TensorRTPredictor.__del__ at 0x000001E2C5EBD870>
Traceback (most recent call last):
File "D:\AICreation\FasterLivePortrait\src\models\predictor.py", line 167, in __del__
    del self.context
AttributeError: context
Exception ignored in: <function BaseModel.__del__ at 0x000001E2C5EBDEA0>
Traceback (most recent call last):
File "D:\AICreation\FasterLivePortrait\src\models\base_model.py", line 48, in __del__
    if self.predictor is not None:
AttributeError: 'WarpingSpadeModel' object has no attribute 'predictor'

大佬,这个咋整啊

无言以对 发表于 2025-2-17 12:13:28

AlexXu 发表于 2025-2-17 11:42
Traceback (most recent call last):
File "D:\AICreation\FasterLivePortrait\app.py", line 37, in
   ...

你是什么显卡
30系以下的显卡好像不支持

AlexXu 发表于 2025-2-17 13:26:29

无言以对 发表于 2025-2-17 12:13
你是什么显卡
30系以下的显卡好像不支持

怪不得,我是20系的:shutup:
页: [1] 2
查看完整版本: FasterLivePortrait - 实时肖像动画,一张照片生成生动视频、表情包,精准操控五官 本地一键整合包下载