gfpgan

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OptionBgTile

func OptionBgTile(val uint) []string

OptionBgTile 背景采样器的平铺大小,0 表示测试期间没有平铺。 默认值:400

func OptionBgUpSampler

func OptionBgUpSampler(val string) []string

OptionBgUpSampler 背景上采样器。 默认值:realesrgan val取值: realesrgan; none

func OptionOnlyCenterFace

func OptionOnlyCenterFace() []string

OptionOnlyCenterFace 只保存中间脸

func OptionUpScale

func OptionUpScale(val uint) []string

OptionUpScale 图像的最终上采样比例。 默认值:2

Types

type Exec

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

func New

func New(p Python, gfpganPath string) *Exec

func (*Exec) InferenceGfpgan

func (e *Exec) InferenceGfpgan(ctx context.Context, input, output string, ver Version, options ...[]string) error

InferenceGfpgan 图像人脸高清修复 input 输入图像或文件夹 output 导出目录 Version GFPGAN 模型版本; 1 | 1.2 | 1.3 | 1.4

type Python

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

type Version

type Version string
const (
	VersionV12 Version = "1.2"
	VersionV13 Version = "1.3"
	VersionV14 Version = "1.4"
)

Jump to

Keyboard shortcuts

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