UNPKG

gia-ast

Version:
93 lines (61 loc) 1.16 kB
# --@STCGoal migrating from : https://github.com/GuillaumeAI/x__etch-a-sketch__210224 # AStia Project Basically, it connects to the Astia Server. ## Install ```sh npm i gia-ast gia-ast-util --g ``` ## Use sample ```sh gia-ast sample.jpg 9098 ``` ## Run a Server ### From HuggingFace ```sh #launch gia-ast-server --picasso ``` ```sh #stylize an image using it gia-ast sample.jpg 7860 ``` ```sh #remove the server gia-ast-server --picasso --rm ``` ### Extended ```sh #launch on custom port gia-ast-server --picasso 8888 ``` ```sh #stylize an image using it gia-ast sample.jpg 8888 ``` ## dot Env conf example * It gets created if it does not exist ```dotenv asthostname=localhost astoutsuffix=__stylized__ astportbase=78 astcallprotocol=https astcallmethod=/stylize ``` ### more elaborated .env (with meta server) ```dotenv #asthostname=osiris.astia.xyz asthostname=localhost astoutsuffix=__stylized__ astportbase=90 astcallprotocol=http astcallmethod=/stylize astmetaportnum=8999 astusemetasvr=true astdebug=false astsavemeta=true astappendmodelid=true dihostname=localhost echocmd=false devmode=false astmetaoutputdir=.astmeta ```