types

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SamplerEuler = SamplerID("euler")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ModelID

type ModelID string

ModelID is a unique ID of the model. Usually a hash.

type ModelInfo

type ModelInfo struct {
	ID    ModelID
	Name  string
	Title string
	File  string
}

ModelInfo is a base info about a model.

type SamplerID

type SamplerID string

SamplerID is an ID of the sampler method.

type SamplerInfo

type SamplerInfo struct {
	ID   SamplerID
	Name string
}

SamplerInfo is a base info about a sampler.

type TextToImageParams

type TextToImageParams struct {
	Model    ModelID
	Prompt   string
	Negative string
	Seed     int64
	Sampler  SamplerID
	Steps    int
	CfgScale float64
	ClipSkip int
	Width    int
	Height   int
}

TextToImageParams controls typical parameters for text-to-image generation.

Jump to

Keyboard shortcuts

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