forked from CompVis/stable-diffusion
-
Notifications
You must be signed in to change notification settings - Fork 19
/
settings.json
57 lines (56 loc) · 4.32 KB
/
settings.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// It is recommended that you DO NOT edit this file. Instead, make a copy that contains the settings you wish to change, and simply specify your copy on the command line:
// For example:
// python prs.py -s settings/my_settings.json
{
"prompt" : "A druid in his shop, selling potions and trinkets, fantasy painting by Tomer Hanuka and Esao Andrews, detailed",
"batch_name" : "Default", // Directory to save to inside out_path
"out_path" : "./out", // base output directory, default is "out" inside your prs folder.
"width" : 512, // resolution
"height" : 512, // resolution
"steps" : 50, // Number of steps to do
"scale" : 7.0, // Affects how strongly the prompt is applied, a value from 6.0 to 9.0 is sensible.
"seed" : "random", // Can be set to a specific number (no quotes), is incremented with each batch
"frozen_seed" : false, // When true, the seed will be kept the same for every image (useful when randomizing prompts)
"n_batches" : 1, // Number of overall batches of images to make in this run (seed changes every batch)
"n_iter" : 1, // number of images to make within a batch (seed remains the same for each iteration)
"variance" : 0.0, // Add a slight amount of extra random noise to create subtle variations (useful when combined with n_iter)
"resize_method" : "basic", // Options are "basic" or "realesrgan" (see README for more info on realesrgan)
// Init image stuff
"init_image": null, // the file to use for a starting point (leave as null for no init). will be resized to match width/height above
"init_strength": 0.62, // how strongly the init should be applied (essentially skip_steps)
// Go BIG stuff
"gobig": false, // A true setting will trigger the gobig upscaling process (or, use --gobig on the command line)
"gobig_init": null, // Set to an image filename to start with that image and skip the initial render
"gobig_scale": 2, // Scale factor to use for gobig (default is 2x width and height)
"gobig_prescaled": false, // Used when gobig_init has already been upscaled by a third party tool
"gobig_maximize": false, // auto-extend go_big into otherwise wasted space (do not use with gobig_prescaled)
"gobig_overlap": 64, // number of pixels to blend against other areas in go_big
"gobig_keep_slices": false, // optionally keep the individual slice images
"esrgan_model": "realesrgan-x4plus", // the model to use for esrgan upscaling
"augment_prompt": "zoomed in view of", // prepended to the prompt for gobig sections (set to null if no augment wanted)
"gobig_cgs": null, // an alternate value to use for "scale" above, used for the individual sections of a gobig render
// Generally, you can ignore most of the rest of this
"method" : "k_lms", // sampling method to use. Options: "k_lms", "k_dpm_2_ancestral", "k_dpm_2", "k_heun", "k_euler_ancestral", "k_euler", "ddim"
"eta" : 0.0, // currently does not seem to do anything
"from_file": null, // load prompts from this file instead of using a single prompt. Each prompt is rendered n_batches times
"cool_down": 0.0, // number of seconds to pause between images, to keep GPU cool
"checkpoint": "./models/sd.ckpt",
"use_jpg": false, // set this to save your output in JPG format to save space
"hide_metadata": false, // set to true if you don"t want your prompt and seed in the PNG output metadata
"save_settings": false, // set to true if you want a settings file like this saved with every image
"improve_composition": false // improve images larger than 512x512 by first rendering at 512x512 and then using that result as an init
}
// dynamic values:
// prompt can contain words or phrases that will be randomly selected, like so:
// "a <dog|cat|person> walking on the <beach|rooftop|path>"
//
// You can also randomly select certain other values in the same way.
// Currently steps, scale, and eta are supported. Make sure you put your selections in quotes!
// (I'm supporting eta here despite the fact that it does not seem to have any impact on output)
// Example:
// "steps": "<50|75|100|125>"
//
// Unique to prompts, you can also get more than one of the selections back.
// In this example, two of the selections are used:
// "a <^^2|lovely|unique|strong|miserable|wild> person perusing ArtDiffuser's instagram."
// might return "a lovely wild person perusing ArtDiffuser's instagram."