Skip to content
Discussion options

You must be logged in to vote

I have update an example here or just view below

package main

import (
    "fmt"
    "os"

    "pg/webui-api"
    "pg/webui-api/sampler"
    "pg/webui-api/upscaler"
)

func main() {
    // Currently using `realdosmix_.safetensors [0d27c62ffa]` which is a realistic model
    API := api.New(api.Config{
        Default: &api.Default{
            Steps:    28,
            Sampler:  sampler.DPM_PLUS_PLUS_2M_KARRAS,
            Width:    384,
            Height:   512,
            CFGScale: 7.0,
        },
    })

    response, err := API.Text2Image(&api.Txt2Image{
        Prompt: api.BuildPrompt(
            "(masterpiece), (high quality), highres, (high resolution illustration), bishoujo, (g…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@shuaiyy
Comment options

Answer selected by shuaiyy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5 on April 22, 2023 12:19.