reqparams

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReqParams

type ReqParams interface {
	String() string
	OriginalPrompt() string
}

type ReqParamsRender

type ReqParamsRender struct {
	OriginalPromptText string
	Prompt             string
	NegativePrompt     string
	Seed               uint32
	Width              int
	Height             int
	BatchSize          int
	Steps              int
	NumOutputs         int
	OutputPNG          bool
	CFGScale           float64
	SamplerName        string
	ModelName          string

	Upscale ReqParamsUpscale

	HR ReqParamsRenderHR
}

func (ReqParamsRender) OriginalPrompt

func (r ReqParamsRender) OriginalPrompt() string

func (ReqParamsRender) String

func (r ReqParamsRender) String() string

type ReqParamsRenderHR

type ReqParamsRenderHR struct {
	DenoisingStrength float32
	Scale             float32
	Upscaler          string
	SecondPassSteps   int
}

type ReqParamsUpscale

type ReqParamsUpscale struct {
	OriginalPromptText string
	Scale              float32
	Upscaler           string
	OutputPNG          bool
}

func (ReqParamsUpscale) OriginalPrompt

func (r ReqParamsUpscale) OriginalPrompt() string

func (ReqParamsUpscale) String

func (r ReqParamsUpscale) String() string

Jump to

Keyboard shortcuts

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