Auto-Photoshop-StableDiffus.../utility/presets/controlnet_preset.js

80 lines
1.9 KiB
JavaScript

const MaintainPositionSettings = {
0: {
module: 'openpose',
model: 'control_sd15_openpose [fef5e48e]',
weight: 1,
resize_mode: null,
lowvram: null,
processor_res: null,
threshold_a: null,
threshold_b: null,
guidance_start: 0,
guidance_end: 0.3,
guessmode: null,
},
1: {
module: 'depth',
model: 'control_sd15_depth [fef5e48e]',
weight: 0.8,
resize_mode: null,
lowvram: null,
processor_res: null,
threshold_a: null,
threshold_b: null,
guidance_start: 0,
guidance_end: 0.6,
guessmode: null,
},
}
const Pose_Depth_Canny_HandFix = {
0: {
module: 'openpose',
model: 'control_sd15_openpose [fef5e48e]',
weight: 1,
resize_mode: null,
lowvram: null,
processor_res: null,
threshold_a: null,
threshold_b: null,
guidance_start: 0,
guidance_end: 1,
guessmode: null,
},
1: {
module: 'depth',
model: 'control_sd15_depth [fef5e48e]',
weight: 1.3,
resize_mode: null,
lowvram: null,
processor_res: null,
threshold_a: null,
threshold_b: null,
guidance_start: 0.3,
guidance_end: 1,
guessmode: null,
},
2: {
module: 'canny',
model: 'control_sd15_canny [fef5e48e]',
weight: 1.3,
resize_mode: null,
lowvram: null,
processor_res: null,
threshold_a: null,
threshold_b: null,
guidance_start: 0.3,
guidance_end: 1,
guessmode: null,
},
}
const ControlNetNativePresets = {
'Maintain Position': MaintainPositionSettings,
'Hand Fix': Pose_Depth_Canny_HandFix,
}
module.exports = {
ControlNetNativePresets,
MaintainPositionSettings,
}