Skip to content

Commit b9dfbfb

Browse files
committed
Drop clip skip workaround (fixed upstream)
1 parent a88b3c7 commit b9dfbfb

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

otherarch/sdcpp/sdtype_adapter.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -545,17 +545,6 @@ sd_generation_outputs sdtype_generate(const sd_generation_inputs inputs)
545545
bool dotile = (sd_params->width*sd_params->height > cfg_tiled_vae_threshold*cfg_tiled_vae_threshold);
546546
set_sd_vae_tiling(sd_ctx,dotile); //changes vae tiling, prevents memory related crash/oom
547547

548-
if (sd_params->clip_skip <= 0) {
549-
// workaround for clip_skip being "stuck" at the previous requested value
550-
// 2 is the default for all recent base models (SD2, SDXL, Flux, SD3)
551-
if (sd_version_is_sd1((SDVersion)loadedsdver)) {
552-
sd_params->clip_skip = 1;
553-
}
554-
else {
555-
sd_params->clip_skip = 2;
556-
}
557-
}
558-
559548
//for img2img
560549
sd_image_t input_image = {0,0,0,nullptr};
561550
std::vector<sd_image_t> extraimage_references;

0 commit comments

Comments
 (0)