Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeF32 = Type(sdcpp.SD_TYPE_F32) TypeF16 = Type(sdcpp.SD_TYPE_F16) TypeQ4_0 = Type(sdcpp.SD_TYPE_Q4_0) TypeQ4_1 = Type(sdcpp.SD_TYPE_Q4_1) TypeQ5_0 = Type(sdcpp.SD_TYPE_Q5_0) TypeQ5_1 = Type(sdcpp.SD_TYPE_Q5_1) TypeQ8_0 = Type(sdcpp.SD_TYPE_Q8_0) TypeQ8_1 = Type(sdcpp.SD_TYPE_Q8_1) TypeQ2_K = Type(sdcpp.SD_TYPE_Q2_K) TypeQ3_K = Type(sdcpp.SD_TYPE_Q3_K) TypeQ4_K = Type(sdcpp.SD_TYPE_Q4_K) TypeQ5_K = Type(sdcpp.SD_TYPE_Q5_K) TypeQ6_K = Type(sdcpp.SD_TYPE_Q6_K) TypeQ8_K = Type(sdcpp.SD_TYPE_Q8_K) TypeIQ2_XXS = Type(sdcpp.SD_TYPE_IQ2_XXS) TypeI8 = Type(sdcpp.SD_TYPE_I8) TypeI16 = Type(sdcpp.SD_TYPE_I16) TypeI32 = Type(sdcpp.SD_TYPE_I32) TypeDefault = Type(sdcpp.SD_TYPE_COUNT) )
View Source
const ( StdDefaultRNG = RNGType(sdcpp.STD_DEFAULT_RNG) CUDA_RNG = RNGType(sdcpp.CUDA_RNG) )
View Source
const ( ScheduleDefault = Schedule(sdcpp.DEFAULT) Discrete = Schedule(sdcpp.DISCRETE) Karras = Schedule(sdcpp.KARRAS) NSchedules = Schedule(sdcpp.N_SCHEDULES) )
View Source
const ( EULER_A = SamplingMethod(sdcpp.EULER_A) EULER = SamplingMethod(sdcpp.EULER) HEUN = SamplingMethod(sdcpp.HEUN) DPM2 = SamplingMethod(sdcpp.DPM2) DPMPP2S_A = SamplingMethod(sdcpp.DPMPP2S_A) DPMPP2M = SamplingMethod(sdcpp.DPMPP2M) DPMPP2Mv2 = SamplingMethod(sdcpp.DPMPP2Mv2) LCM = SamplingMethod(sdcpp.LCM) )
View Source
const C = 0
Variables ¶
This section is empty.
Functions ¶
func NewRuntime ¶
func NewRuntime(p RuntimeParams) (runtime.Runtime, error)
func SystemInfo ¶
func SystemInfo() string
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) TextToImage ¶
func (sd *Context) TextToImage(p TextToImageParams) *image.NRGBA
func (*Context) TextToImages ¶
func (sd *Context) TextToImages(p TextToImageParams) ([]*image.NRGBA, error)
type RuntimeParams ¶
type SamplingMethod ¶
type SamplingMethod int
func ParseSamplingMethod ¶
func ParseSamplingMethod(s string) (SamplingMethod, error)
func (SamplingMethod) ID ¶
func (m SamplingMethod) ID() string
func (SamplingMethod) MarshalText ¶
func (m SamplingMethod) MarshalText() ([]byte, error)
func (*SamplingMethod) Parse ¶
func (m *SamplingMethod) Parse(text string) error
func (SamplingMethod) String ¶
func (m SamplingMethod) String() string
func (*SamplingMethod) UnmarshalText ¶
func (m *SamplingMethod) UnmarshalText(text []byte) error
type TextToImageParams ¶
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
Package runtime provides common types and interfaces that all Stable Diffusion runtimes share.
|
Package runtime provides common types and interfaces that all Stable Diffusion runtimes share. |
auto
Package auto implements Automatic1111 Stable Diffusion WebUI client.
|
Package auto implements Automatic1111 Stable Diffusion WebUI client. |
Click to show internal directories.
Click to hide internal directories.