Documentation ¶
Index ¶
- Constants
- func NewStableDiffusionAutoModel(options StableDiffusionOptions)
- type CSDCtx
- func (c *CSDCtx) Close()
- func (c *CSDCtx) StableDiffusionImageToImage(initImg []byte, prompt string, negativePrompt string, cfgScale float32, ...) []byte
- func (c *CSDCtx) StableDiffusionLoadFromFile(path string, schedule Schedule)
- func (c *CSDCtx) StableDiffusionTextToImage(prompt string, negativePrompt string, cfgScale float32, width int, height int, ...) []byte
- type CStableDiffusion
- type RNGType
- type SDLogLevel
- type SampleMethod
- type Schedule
- type StableDiffusionModel
- type StableDiffusionOptions
Constants ¶
View Source
const ( DEBUG SDLogLevel = "DEBUG" INFO = "INFO" WARN = "WARN" ERROR = "ERROR" )
View Source
const ( EULER_A SampleMethod = "EULER_A" EULER = "EULER" HEUN = "HEUN" DPM2 = "DPM2" DPMPP2S_A = "DPMPP2S_A" DPMPP2M = "DPMPP2M" DPMPP2Mv2 = "DPMPP2Mv2" N_SAMPLE_METHODS = "N_SAMPLE_METHODS" )
View Source
const ( DEFAULT Schedule = "DEFAULT" DISCRETE = "DISCRETE" KARRAS = "KARRAS" N_SCHEDULES = "N_SCHEDULES" )
Variables ¶
This section is empty.
Functions ¶
func NewStableDiffusionAutoModel ¶
func NewStableDiffusionAutoModel(options StableDiffusionOptions)
Types ¶
type CSDCtx ¶
type CSDCtx struct {
// contains filtered or unexported fields
}
func (*CSDCtx) StableDiffusionImageToImage ¶
func (*CSDCtx) StableDiffusionLoadFromFile ¶
type CStableDiffusion ¶
type CStableDiffusion struct {
// contains filtered or unexported fields
}
func NewCStableDiffusion ¶
func NewCStableDiffusion(libraryPath string) (*CStableDiffusion, error)
func (*CStableDiffusion) NewStableDiffusionCtx ¶
func (*CStableDiffusion) StableDiffusionGetSystemInfo ¶
func (cSD *CStableDiffusion) StableDiffusionGetSystemInfo() string
func (*CStableDiffusion) StableDiffusionSetLogLevel ¶
func (cSD *CStableDiffusion) StableDiffusionSetLogLevel(level SDLogLevel)
type RNGType ¶
type RNGType string
const ( STD_DEFAULT_RNG RNGType = "STD_DEFAULT_RNG" CUDA_RNG = "CUDA_RNG" )
type SDLogLevel ¶
type SDLogLevel string
type SampleMethod ¶
type SampleMethod string
type StableDiffusionModel ¶
type StableDiffusionModel struct {
// contains filtered or unexported fields
}
func NewStableDiffusionModel ¶
func NewStableDiffusionModel(path string, options StableDiffusionOptions) (*StableDiffusionModel, error)
func (*StableDiffusionModel) LoadFromFile ¶
func (sd *StableDiffusionModel) LoadFromFile(path string) error
Click to show internal directories.
Click to hide internal directories.