handlers

package
v0.0.0-...-c9557dd Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultInput = &opts.Options{
	RngType:   opts.CUDA_RNG,
	WType:     opts.GGML_TYPE_COUNT,
	Schedule:  opts.DEFAULT,
	GpuEnable: true,
	Debug:     true,

	OutputDir: "./output/",

	CfgScale:         7.0,
	ClipSkip:         2,
	Width:            512,
	Height:           512,
	SampleMethod:     opts.EULER_A,
	SampleSteps:      24,
	Seed:             42,
	BatchCount:       1,
	OutputsImageType: opts.PNG,
}

Functions

func Generate

func Generate(c echo.Context) (err error)

func Index

func Index(c echo.Context) (err error)

func ModelClose

func ModelClose()

func Models

func Models(c echo.Context) (err error)

func OutputDir

func OutputDir(c echo.Context) (err error)

func Routes

func Routes(e *echo.Echo)

Types

This section is empty.

Jump to

Keyboard shortcuts

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