sd

package
v0.0.0-...-d14e128 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

func NewModel

func NewModel(options *opts.Options) (model *Model, err error)

func (*Model) Close

func (sd *Model) Close()

func (*Model) CloseUpscaleModel

func (sd *Model) CloseUpscaleModel()

func (*Model) GetSystemInfo

func (sd *Model) GetSystemInfo() string

func (*Model) LoadFromFile

func (sd *Model) LoadFromFile(path string) (err error)

func (*Model) LoadUpscaleModel

func (sd *Model) LoadUpscaleModel(esrganPath string) (err error)

func (*Model) Predict

func (sd *Model) Predict(params *opts.Params, debug bool) (filenames []string, err error)

func (*Model) UpscaleImage

func (sd *Model) UpscaleImage(wg *sync.WaitGroup, filenameIn, filenameOut string, upscaleFactor uint32) (err error)

Jump to

Keyboard shortcuts

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