Versions in this module Expand all Collapse all v1 v1.2.0 Mar 2, 2024 Changes in this version + const C + const CUDA_RNG + const DPM2 + const DPMPP2M + const DPMPP2Mv2 + const DPMPP2S_A + const Discrete + const EULER + const EULER_A + const HEUN + const Karras + const LCM + const NSchedules + const ScheduleDefault + const StdDefaultRNG + const TypeDefault + const TypeF16 + const TypeF32 + const TypeI16 + const TypeI32 + const TypeI8 + const TypeIQ2_XXS + const TypeQ2_K + const TypeQ3_K + const TypeQ4_0 + const TypeQ4_1 + const TypeQ4_K + const TypeQ5_0 + const TypeQ5_1 + const TypeQ5_K + const TypeQ6_K + const TypeQ8_0 + const TypeQ8_1 + const TypeQ8_K + func NewRuntime(p RuntimeParams) (runtime.Runtime, error) + func SystemInfo() string + type Context struct + func New(p Params) (*Context, error) + func (sd *Context) Close() + func (sd *Context) TextToImage(p TextToImageParams) *image.NRGBA + func (sd *Context) TextToImages(p TextToImageParams) ([]*image.NRGBA, error) + type Params struct + CtrlNetKeepCPU bool + CtrlNetPath string + EmbeddingDir string + FreeImmediately bool + Log *slog.Logger + LoraPath string + ModelPath string + RNG RNGType + Schedule Schedule + TAESDPath string + Threads int + Type Type + VAEPath string + VAETiling bool + type RNGType int + type RuntimeParams struct + EmbeddingDir string + Log *slog.Logger + ModelDir string + RNG RNGType + Threads int + Type Type + type SamplingMethod int + func ParseSamplingMethod(s string) (SamplingMethod, error) + func (m *SamplingMethod) Parse(text string) error + func (m *SamplingMethod) UnmarshalText(text []byte) error + func (m SamplingMethod) ID() string + func (m SamplingMethod) MarshalText() ([]byte, error) + func (m SamplingMethod) String() string + type Schedule int + type TextToImageParams struct + BatchCount int + CfgScale float64 + ClipSkip int + Height int + Negative string + Prompt string + Sampling SamplingMethod + Seed int64 + Steps int + Width int + type Type int v1.1.0 Feb 25, 2024 v1.0.0 Feb 24, 2024