-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefinitions.js
More file actions
69 lines (63 loc) · 1.45 KB
/
Copy pathdefinitions.js
File metadata and controls
69 lines (63 loc) · 1.45 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
/**
* @typedef {import('./typedefs.js').GenerationSettings} GenerationSettings
* @typedef {import('./typedefs.js').ExtensionSettings} ExtensionSettings
*/
/**
* The extension ID for the third-party/st-sd-webui-api.
* @type {string}
*/
export const EXTENSION_ID = 'third-party/st-sd-webui-api'
/**
* The name of the extension.
* @type {string}
*/
export const EXTENSION_NAME = 'st-sd-webui-api'
/**
* Default generation settings.
*
* @type {Partial<GenerationSettings>}
*/
export const DEFAULT_GENERATION_SETTINGS = {
// Generation settings
prompt: '',
negative_prompt: '',
styles: [],
seed: -1,
sampler_name: 'Euler',
scheduler: 'automatic',
batch_size: 1,
steps: 35,
cfg_scale: 7,
width: 512,
height: 512,
// Face restoration
restore_faces: false,
// High resolution settings
enable_hr: false,
hr_scale: 2,
hr_upscaler: 'None',
hr_second_pass_steps: 0,
hr_sampler_name: undefined,
denoising_strength: 0.7,
// Refiner settings
refiner_checkpoint: undefined,
refiner_switch_at: 0.8,
// Image Saving
do_not_save_samples: false,
do_not_save_grid: false,
save_images: true,
send_images: true,
// Allwayson_scripts
alwayson_scripts: ''
}
/**
* Default extension settings.
* @type {Partial<ExtensionSettings>}
*/
export const DEFAULT_EXTENSION_SETTINGS = {
command: 'imagen',
commandAlias: '',
interruptGeneration: true,
purgeCommand: true
}
export const DEFAULT_API_URL = 'http://127.0.0.1:7860'