dalle

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

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

Go to latest
Published: Aug 9, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DatabaseNames = []string{
	"adverbs",
	"adjectives",
	"nouns",
	"emotions",
	"occupations",
	"actions",
	"artstyles",
	"artstyles",
	"litstyles",
	"colors",
	"colors",
	"colors",
	"orientations",
	"gazes",
	"backstyles",
}

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Database string  `json:"database"`
	Name     string  `json:"name"`
	Bytes    string  `json:"bytes"`
	Number   uint64  `json:"number"`
	Factor   float64 `json:"factor"`
	Count    uint64  `json:"count"`
	Selector uint64  `json:"selector"`
	Value    string  `json:"value"`
}

func NewAttribute

func NewAttribute(databases map[string][]string, index int, bytes string) Attribute

type DalleDress

type DalleDress struct {
	Original       string               `json:"original"`
	Filename       string               `json:"fileName"`
	Seed           string               `json:"seed"`
	Prompt         string               `json:"prompt,omitempty"`
	DataPrompt     string               `json:"dataPrompt,omitempty"`
	TitlePrompt    string               `json:"titlePrompt,omitempty"`
	TersePrompt    string               `json:"tersePrompt,omitempty"`
	EnhancedPrompt string               `json:"enhancedPrompt,omitempty"`
	Attribs        []Attribute          `json:"attributes"`
	AttribMap      map[string]Attribute `json:"-"`
}

func (*DalleDress) Action

func (dd *DalleDress) Action(short bool) string

func (*DalleDress) Adjective

func (dd *DalleDress) Adjective(short bool) string

func (*DalleDress) Adverb

func (dd *DalleDress) Adverb(short bool) string

func (*DalleDress) ArtStyle

func (dd *DalleDress) ArtStyle(short bool, which int) string

func (*DalleDress) BackStyle

func (dd *DalleDress) BackStyle(short bool) string

func (*DalleDress) Color

func (dd *DalleDress) Color(short bool, which int) string

func (*DalleDress) Emotion

func (dd *DalleDress) Emotion(short bool) string

func (*DalleDress) ExecuteTemplate

func (dd *DalleDress) ExecuteTemplate(t *template.Template, f func(s string) string) (string, error)

func (*DalleDress) Gaze

func (dd *DalleDress) Gaze(short bool) string

func (*DalleDress) HasLitStyle

func (dd *DalleDress) HasLitStyle() bool

func (*DalleDress) LitPrompt

func (dd *DalleDress) LitPrompt(short bool) string

func (*DalleDress) LitStyle

func (dd *DalleDress) LitStyle(short bool) string

func (*DalleDress) LitStyleDescr

func (dd *DalleDress) LitStyleDescr() string

func (*DalleDress) Noun

func (dd *DalleDress) Noun(short bool) string

func (*DalleDress) Occupation

func (dd *DalleDress) Occupation(short bool) string

func (*DalleDress) Orientation

func (dd *DalleDress) Orientation(short bool) string

func (*DalleDress) ReportOn

func (dd *DalleDress) ReportOn(addr, loc, ft, value string)

func (*DalleDress) String

func (d *DalleDress) String() string

type Series

type Series struct {
	Last         int      `json:"last,omitempty"`
	Suffix       string   `json:"suffix"`
	Adverbs      []string `json:"adverbs"`
	Adjectives   []string `json:"adjectives"`
	Nouns        []string `json:"nouns"`
	Emotions     []string `json:"emotions"`
	Occupations  []string `json:"occupations"`
	Actions      []string `json:"actions"`
	Artstyles    []string `json:"artstyles"`
	Litstyles    []string `json:"litstyles"`
	Colors       []string `json:"colors"`
	Orientations []string `json:"orientations"`
	Gazes        []string `json:"gazes"`
	Backstyles   []string `json:"backstyles"`
}

func (*Series) GetFilter

func (s *Series) GetFilter(fieldName string) ([]string, error)

func (*Series) SaveSeries

func (s *Series) SaveSeries(fn string, last int)

func (*Series) String

func (s *Series) String() string

Jump to

Keyboard shortcuts

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