@@ -924,10 +924,10 @@ class StableDiffusionGGML {
924
924
int start_merge_step,
925
925
SDCondition id_cond,
926
926
std::shared_ptr<RNG>& rng,
927
- std::vector<int > skip_layers = {},
928
- float slg_scale = 0 ,
929
- float skip_layer_start = 0.01 ,
930
- float skip_layer_end = 0.2 ,
927
+ std::vector<int > skip_layers = {},
928
+ float slg_scale = 0 ,
929
+ float skip_layer_start = 0.01 ,
930
+ float skip_layer_end = 0.2 ,
931
931
std::function<void (int , ggml_tensor*, SDVersion)> step_callback = nullptr) {
932
932
size_t steps = sigmas.size () - 1 ;
933
933
// noise = load_tensor_from_file(work_ctx, "./rand0.bin");
@@ -1619,11 +1619,11 @@ sd_image_t* txt2img(sd_ctx_t* sd_ctx,
1619
1619
float style_ratio,
1620
1620
bool normalize_input,
1621
1621
const char * input_id_images_path_c_str,
1622
- int * skip_layers = NULL ,
1623
- size_t skip_layers_count = 0 ,
1624
- float slg_scale = 0 ,
1625
- float skip_layer_start = 0.01 ,
1626
- float skip_layer_end = 0.2 ,
1622
+ int * skip_layers = NULL ,
1623
+ size_t skip_layers_count = 0 ,
1624
+ float slg_scale = 0 ,
1625
+ float skip_layer_start = 0.01 ,
1626
+ float skip_layer_end = 0.2 ,
1627
1627
step_callback_t step_callback = NULL ) {
1628
1628
std::vector<int > skip_layers_vec (skip_layers, skip_layers + skip_layers_count);
1629
1629
LOG_DEBUG (" txt2img %dx%d" , width, height);
@@ -1726,11 +1726,11 @@ sd_image_t* img2img(sd_ctx_t* sd_ctx,
1726
1726
float style_ratio,
1727
1727
bool normalize_input,
1728
1728
const char * input_id_images_path_c_str,
1729
- int * skip_layers = NULL ,
1730
- size_t skip_layers_count = 0 ,
1731
- float slg_scale = 0 ,
1732
- float skip_layer_start = 0.01 ,
1733
- float skip_layer_end = 0.2 ,
1729
+ int * skip_layers = NULL ,
1730
+ size_t skip_layers_count = 0 ,
1731
+ float slg_scale = 0 ,
1732
+ float skip_layer_start = 0.01 ,
1733
+ float skip_layer_end = 0.2 ,
1734
1734
step_callback_t step_callback = NULL ) {
1735
1735
std::vector<int > skip_layers_vec (skip_layers, skip_layers + skip_layers_count);
1736
1736
LOG_DEBUG (" img2img %dx%d" , width, height);
0 commit comments