styletransfer

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package styletransfer include style transfer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Transform

func Transform(d StyleTransfer, img *common.Image, out *common.Image) error

Transform returns style transform image

Types

type AnimeGan2

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

AnimeGan2 represents animegan2 style transfer

func NewAnimeGan2

func NewAnimeGan2() *AnimeGan2

NewAnimeGan2 returns a new AnimeGan2

func (*AnimeGan2) Destroy

func (d *AnimeGan2) Destroy()

Destroy free style transfer

func (*AnimeGan2) LoadModel

func (d *AnimeGan2) LoadModel(modelPath string) error

LoadModel load model for detecter

func (*AnimeGan2) Pointer

func (d *AnimeGan2) Pointer() unsafe.Pointer

Pointer implement Estimator interface

func (*AnimeGan2) Transform

func (d *AnimeGan2) Transform(img *common.Image, out *common.Image) error

Transform implement StyleTransfer interface

type StyleTransfer

type StyleTransfer interface {
	common.Estimator
	Transform(img *common.Image, out *common.Image) error
}

StyleTransfer represents Style Transfer interface

Jump to

Keyboard shortcuts

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