novelai

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Overview

Package novelai ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NovalAI

type NovalAI struct {
	Tok string `json:"accessToken"`
	// contains filtered or unexported fields
}

NovalAI ...

func NewNovalAI

func NewNovalAI(key string, config *Payload) *NovalAI

NewNovalAI ...

func (*NovalAI) Draw

func (nv *NovalAI) Draw(tags string) (seed int, tagsproceeded string, img []byte, err error)

Draw ...

func (*NovalAI) Login

func (nv *NovalAI) Login() error

Login ...

type Para

type Para struct {
	Width    int     `json:"width"`
	Height   int     `json:"height"`
	Scale    int     `json:"scale"`
	Sampler  string  `json:"sampler"`
	Steps    int     `json:"steps"`
	Seed     int     `json:"seed"`
	NSamples int     `json:"n_samples"`
	Strength float64 `json:"strength"`
	Noise    float64 `json:"noise"`
	UcPreset int     `json:"ucPreset"`
	Uc       string  `json:"uc"`
}

Para ...

type Payload

type Payload struct {
	Input      string `json:"input"`
	Model      string `json:"model"`
	Parameters Para   `json:"parameters"`
}

Payload ...

func NewDefaultPayload

func NewDefaultPayload() *Payload

NewDefaultPayload ...

func (*Payload) String

func (p *Payload) String() string

String ...

func (*Payload) WrtieTo

func (p *Payload) WrtieTo(w io.Writer) error

WrtieTo ...

Jump to

Keyboard shortcuts

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