Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c1bfca6

Browse files
committed
"Updated submodule to latest version"
1 parent 14206fd commit c1bfca6

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

ggml

Submodule ggml updated from 21d3a30 to 6dccc64

stable-diffusion.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -764,8 +764,6 @@ class StableDiffusionGGML {
764764
int start_merge_step,
765765
SDCondition id_cond) {
766766
size_t steps = sigmas.size() - 1;
767-
// noise = load_tensor_from_file(work_ctx, "./rand0.bin");
768-
// print_ggml_tensor(noise);
769767
struct ggml_tensor* x = ggml_dup_tensor(work_ctx, init_latent);
770768
copy_ggml_tensor(x, init_latent);
771769
x = denoiser->noise_scaling(sigmas[0], noise, x);
@@ -801,16 +799,13 @@ class StableDiffusionGGML {
801799
auto guidance_tensor = vector_to_ggml_tensor(work_ctx, guidance_vec);
802800

803801
copy_ggml_tensor(noised_input, input);
804-
// noised_input = noised_input * c_in
805802
ggml_tensor_scale(noised_input, c_in);
806803

807804
std::vector<struct ggml_tensor*> controls;
808805

809806
if (control_hint != NULL) {
810807
control_net->compute(n_threads, noised_input, control_hint, timesteps, cond.c_crossattn, cond.c_vector);
811808
controls = control_net->controls;
812-
// print_ggml_tensor(controls[12]);
813-
// GGML_ASSERT(0);
814809
}
815810

816811
if (start_merge_step == -1 || step <= start_merge_step) {
@@ -1290,8 +1285,6 @@ sd_image_t* generate_image(sd_ctx_t* sd_ctx,
12901285
int start_merge_step = -1;
12911286
if (sd_ctx->sd->stacked_id) {
12921287
start_merge_step = int(sd_ctx->sd->pmid_model->style_strength / 100.f * sample_steps);
1293-
// if (start_merge_step > 30)
1294-
// start_merge_step = 30;
12951288
LOG_INFO("PHOTOMAKER: start_merge_step: %d", start_merge_step);
12961289
}
12971290

@@ -1309,8 +1302,6 @@ sd_image_t* generate_image(sd_ctx_t* sd_ctx,
13091302
sigmas,
13101303
start_merge_step,
13111304
id_cond);
1312-
// struct ggml_tensor* x_0 = load_tensor_from_file(ctx, "samples_ddim.bin");
1313-
// print_ggml_tensor(x_0);
13141305
int64_t sampling_end = ggml_time_ms();
13151306
LOG_INFO("sampling completed, taking %.2fs", (sampling_end - sampling_start) * 1.0f / 1000);
13161307
final_latents.push_back(x_0);

0 commit comments

Comments
 (0)