triton-server-frontend

command module
v0.0.0-...-37cc2e0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

README

Triton Server Frontend

This is the web UI frontend code utilizing the Triton server.
Used the Text-to-Image feature of Stable Diffusion.

1. Docker Start

1.1 Download
git clone https://github.com/ahr-i/triton-server-frontend.git
1.2 setting
ce triton-server-frontend
vim setting/setting.go

Modify the contents of the file.

package setting

/* ----- Server Setting ----- */
const ServerPort string = "80" // Edit this

const ModelPath string = "./models/model_list.json"
const UrlPath string = "./urls/url_list.json"

/* ----- Triton Server Setting ----- */
const GatewayUrl string = "localhost:6000" // Edit this

const BatchSize int = 1           // Edit this
const Samples int = 1             // Edit this
const Steps int = 45              // Edit this
const GuidanceScale float64 = 7.5 // Edit this
1.3 Build
docker build -t triton-frontend .
1.4 Run
docker run -it --rm --name triton-frontend --network host triton-frontend
or
docker run -it --rm --name triton-frontend -p 80:80 triton-frontend

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
src

Jump to

Keyboard shortcuts

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