wav2Lip

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OptionNoSmooth

func OptionNoSmooth() []string

OptionNoSmooth 如果您看到嘴部位置错位或一些奇怪的伪影(例如两张嘴),则可能是因为面部检测过度平滑。 使用 --nosmooth 参数并再试一次。

func OptionPads

func OptionPads(top, bottom, left, right uint) []string

OptionPads 内边距(上、下、左、右)。 请调整至至少包括下巴

func OptionResizeFactor

func OptionResizeFactor(val uint) []string

OptionResizeFactor 按此系数降低分辨率。

Types

type CheckPoint

type CheckPoint string
const (
	// CheckPointPathWav2Lip 高精度唇形同步
	CheckPointPathWav2Lip CheckPoint = "checkpoints/wav2lip.pth"
	// CheckPointPathWav2LipGAN 口型同步稍差,但视觉质量更好
	CheckPointPathWav2LipGAN CheckPoint = "checkpoints/wav2lip_gan.pth"
)

type Exec

type Exec struct {
	// contains filtered or unexported fields
}

func New

func New(p Python, wav2lipPath string) *Exec

func (*Exec) Inference

func (e *Exec) Inference(ctx context.Context, checkPointPath CheckPoint, face, audio, outFile string, options ...[]string) error

Inference 生成口型合成视频 checkPointPath 用于加载权重的已保存检查点的名称 face 包含要使用的面孔的视频/图像的文件路径 audio 用作原始音频源的视频/音频文件的文件路径 outFile 保存结果的视频路径

type Python

type Python interface {
	ExecCtx(ctx context.Context, codeDir, pyFile string, args ...string) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL