chore: format code

This commit is contained in:
leejet committed 2026-10-24 01:23:42 +08:00
1 parent 40b1788476
commit e0ed724e28
69 files changed
+711 -441

No files matched your search

+1 -1
View File
@@ -842,7 +842,7 @@ struct CacheDitConditionState {
const float* input_data = input.data();
float diff = CacheDitState::calculate_residual_diff(
it->second.prev_input.data(), input_data, ne);
it->second.prev_input.data(), input_data, ne);
float effective_threshold = config.residual_diff_threshold;
if (config.Fn_compute_blocks > 0) {
+4 -4
View File
@@ -164,8 +164,8 @@ namespace sd::guidance {
if (has_tensor(input.pred_img_uncond)) {
const sd::Tensor<float>& pred_img_uncond = *input.pred_img_uncond;
output.pred = pred_img_uncond +
image_guidance_scale_ * (pred_uncond - pred_img_uncond) +
guidance_scale * (pred_cond - pred_uncond);
image_guidance_scale_ * (pred_uncond - pred_img_uncond) +
guidance_scale * (pred_cond - pred_uncond);
} else {
output.pred = pred_uncond + guidance_scale * (pred_cond - pred_uncond);
@@ -224,8 +224,8 @@ namespace sd::guidance {
if (has_tensor(input.pred_img_uncond)) {
const sd::Tensor<float>& pred_img_uncond = *input.pred_img_uncond;
output.pred = pred_img_uncond +
image_guidance_scale_ * (pred_uncond - pred_img_uncond) +
guidance_scale * (pred_cond - pred_uncond);
image_guidance_scale_ * (pred_uncond - pred_img_uncond) +
guidance_scale * (pred_cond - pred_uncond);
} else {
output.pred = pred_uncond + guidance_scale * (pred_cond - pred_uncond);
}