Versions in this module Expand all Collapse all v1 v1.0.1 Apr 30, 2024 Changes in this version + type ContainerRunner interface + Run func(ctx context.Context, image string, argv []string) ([]byte, error) + type XL struct + func NewDockerXL(logger testutil.Logger) *XL + func NewXL(sdxlImage string, runner ContainerRunner) *XL + func (xl *XL) Generate(ctx context.Context, prompt *XLPrompt) (*XLImage, error) + type XLImage struct + Prompt *XLPrompt + func (i *XLImage) ASCII() (string, error) + func (i *XLImage) ColdBaseDuration() time.Duration + func (i *XLImage) ColdRefinerDuration() time.Duration + func (i *XLImage) Image() (image.Image, error) + func (i *XLImage) TotalDuration() time.Duration + func (i *XLImage) WarmBaseDuration() time.Duration + func (i *XLImage) WarmRefinerDuration() time.Duration + type XLPrompt struct + AllowCPUOffload bool + NoiseFraction float64 + Query string + Steps int + UseRefiner bool + Warm bool