-
Notifications
You must be signed in to change notification settings - Fork 0
Configure
The configuration file is albeit optional, but recommended to create before the program's first run. Using a custom configuration file may also increase efficiency and uses the full potential of your hardware.
To create a configuration file, simply duplicate the example.json and rename it to config.json. The values in example.json are default values taken by the program, you may edit them to fit your setup and needs. You may also remove entries in this config to be replaced by defaults once the config is loaded.
Use HTTPS instead of HTTP (require fields "pem" and "key")
Boolean, default: false
Certificate used by HTTPS
String, default: ""
Private key used by HTTPS
String, default: ""
Use strict header in responds to prevent cross-origin attacks
Boolean, default: false
Port number to listen with HTTP protocol
Number, default: 80
Port number to listen with HTTPS protocol
Number, default: 443
Use compression to save bandwidth (require more CPU power)
Boolean, default: true
Compression level (0-9, 0=fastest, no compression)
Number, default: 9
Use sequential CPU offload optimization
Boolean, default: false
Use xformers (require a xformers install)
Boolean, default: false
Use attention slicing optimization (save RAM)
Boolean, default: false
Use VAE slicing optimization (save RAM)
Boolean, default: false
Device used for inference ("cpu","cuda","mpu"...)
String, default: "cpu"
Maximum steps
Number, default: 50
Maximum scale
Number, default: 15
Maximum height
Number, default: 512
Maximum width
Number, default: 512
Maximum length of tokens
Number, default: 77
Minimum steps
Number, default: 15
Minimum scale
Number, default: 0
Minimum height
Number, default: 64
Minimum width
Number, default: 64
Default steps
Number, default: 50
Default scale
Number, default: 7.5
Default height
Number, default: 512
Default width
Number, default: 512
Use watermark on generated images
Boolean, default: false
Force to use the value in "use", override user's choice
Boolean, default: true
Text of the watermark
String, default: "Generated By PonAImager"
Tokens banned from positive prompt
String array, default: []
Tokens banned from negative prompt
String array, default: []
How long does the image expire
Number, default: 30
The model ID (on HuggingFace) / local path to use (Local path is relative to the directory your shell is in)
String, default: "AstraliteHeart/pony-diffusion"
Branch name of the model
String, default "main"
HTTP(S) proxy to use while downloading model
String, default: ""
Disable NSFW checker
Boolean, default: true
A string array of prompts to be randomly filled into the prompt textfield when the user clicked the dice button
String array, default: ["Specify an example prompt list in config"]