Documentation
¶
Index ¶
- func VersionCheckGetStr(ctx context.Context, stableDiffusionApiHost string) (res string, updateNeededOrError bool)
- type RenderReq
- type SdAPIType
- func (a *SdAPIType) GetEmbeddings(ctx context.Context) (embs []string, err error)
- func (a *SdAPIType) GetLoRAs(ctx context.Context) (loras []string, err error)
- func (a *SdAPIType) GetModels(ctx context.Context) (models []string, err error)
- func (a *SdAPIType) GetProgress(ctx context.Context) (progressPercent int, eta time.Duration, err error)
- func (a *SdAPIType) GetSamplers(ctx context.Context) (samplers []string, err error)
- func (a *SdAPIType) GetUpscalers(ctx context.Context) (upscalers []string, err error)
- func (a *SdAPIType) GetVAEs(ctx context.Context) (vaes []string, err error)
- func (a *SdAPIType) Interrupt(ctx context.Context) error
- func (a *SdAPIType) Render(ctx context.Context, p reqparams.ReqParams, _ []byte) (imgs [][]byte, err error)
- func (a *SdAPIType) Upscale(ctx context.Context, p reqparams.ReqParams, imageData []byte) (imgs [][]byte, err error)
- type UpscaleReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RenderReq ¶
type RenderReq struct {
EnableHR bool `json:"enable_hr"`
DenoisingStrength float32 `json:"denoising_strength"`
HRScale float32 `json:"hr_scale"`
HRUpscaler string `json:"hr_upscaler"`
HRSecondPassSteps int `json:"hr_second_pass_steps"`
HRSamplerName string `json:"hr_sampler_name"`
HRPrompt string `json:"hr_prompt"`
HRNegativePrompt string `json:"hr_negative_prompt"`
Prompt string `json:"prompt"`
Seed uint32 `json:"seed"`
SamplerName string `json:"sampler_name"`
BatchSize int `json:"batch_size"`
NIter int `json:"n_iter"`
Steps int `json:"steps"`
CFGScale float64 `json:"cfg_scale"`
Width int `json:"width"`
Height int `json:"height"`
NegativePrompt string `json:"negative_prompt"`
OverrideSettings map[string]interface{} `json:"override_settings"`
SendImages bool `json:"send_images"`
}
type SdAPIType ¶
type SdAPIType struct {
SdHost string
}
func (*SdAPIType) GetEmbeddings ¶
func (*SdAPIType) GetProgress ¶
func (*SdAPIType) GetSamplers ¶
func (*SdAPIType) GetUpscalers ¶
type UpscaleReq ¶
type UpscaleReq struct {
ResizeMode int `json:"resize_mode,omitempty"`
ShowExtrasResults bool `json:"show_extras_results,omitempty"`
GFPGANVisibility float32 `json:"gfpgan_visibility,omitempty"`
CodeFormerVisibility float32 `json:"codeformer_visibility,omitempty"`
CodeFormerWeight float32 `json:"codeformer_weight,omitempty"`
UpscalingResize float32 `json:"upscaling_resize,omitempty"`
UpscalingResizeWidth int `json:"upscaling_resize_w,omitempty"`
UpscalingResizeHeight int `json:"upscaling_resize_h,omitempty"`
UpscalingResizeWidthHeightCrop bool `json:"upscaling_crop,omitempty"`
Upscaler1 string `json:"upscaler_1,omitempty"`
Upscaler2 string `json:"upscaler_2,omitempty"`
Upscaler2Visibility float32 `json:"extras_upscaler_2_visibility,omitempty"`
UpscaleFirst bool `json:"upscale_first,omitempty"`
Image string `json:"image"`
}
Click to show internal directories.
Click to hide internal directories.