models

package
v0.0.0-...-0a3be77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	ControlMode   int     `json:"control_mode"`
	Enabled       bool    `json:"enabled"`
	GuidanceEnd   float64 `json:"guidance_end"`
	GuidanceStart float64 `json:"guidance_start"`
	Image         string  `json:"image"`
	Lowvram       bool    `json:"lowvram"`
	Model         string  `json:"model"`
	Module        string  `json:"module"`
	PixelPerfect  bool    `json:"pixel_perfect"`
	ProcessorRes  int     `json:"processor_res"`
	ResizeMode    int     `json:"resize_mode"`
	ThresholdA    int     `json:"threshold_a"`
	ThresholdB    int     `json:"threshold_b"`
	Weight        float64 `json:"weight"`
}

type ControlNet

type ControlNet struct {
	Args []Args `json:"args"`
}

type ExtraImageResult

type ExtraImageResult struct {
	HTMLInfo string `json:"html_info"`
	Image    string `json:"image"`
}

type ProgressResult

type ProgressResult struct {
	CurrentImage string  `json:"current_image"`
	EtaRelative  float64 `json:"eta_relative"`
	Progress     float64 `json:"progress"`
	State        State   `json:"state"`
}

type State

type State struct {
	Interrupted   bool   `json:"interrupted"`
	Job           string `json:"job"`
	JobCount      int    `json:"job_count"`
	JobNo         int    `json:"job_no"`
	JobTimestamp  string `json:"job_timestamp"`
	SamplingStep  int    `json:"sampling_step"`
	SamplingSteps int    `json:"sampling_steps"`
	Skipped       bool   `json:"skipped"`
}

type Txt2ImgResult

type Txt2ImgResult struct {
	Images     []string               `json:"images"`
	Parameters map[string]interface{} `json:"parameters"`
	Info       string                 `json:"info"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL