mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2025-12-13 05:48:56 +00:00
Compare commits
2 Commits
48e0a28ddf
...
69b9511ce9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
69b9511ce9 | ||
|
|
917f7bfe99 |
2
ggml
2
ggml
@ -1 +1 @@
|
||||
Subproject commit c538174d261d8172480f87efcfec8e69aac13ebb
|
||||
Subproject commit 2d3876d554551d35c06dccc5852be50d5fd2a275
|
||||
@ -761,11 +761,14 @@ public:
|
||||
denoiser = std::make_shared<DiscreteFlowDenoiser>(shift);
|
||||
} else if (sd_version_is_flux(version)) {
|
||||
LOG_INFO("running in Flux FLOW mode");
|
||||
float shift = 1.0f; // TODO: validate
|
||||
for (auto pair : model_loader.tensor_storages_types) {
|
||||
if (pair.first.find("model.diffusion_model.guidance_in.in_layer.weight") != std::string::npos) {
|
||||
shift = 1.15f;
|
||||
break;
|
||||
float shift = sd_ctx_params->flow_shift;
|
||||
if (shift == INFINITY) {
|
||||
shift = 1.0f; // TODO: validate
|
||||
for (auto pair : model_loader.tensor_storages_types) {
|
||||
if (pair.first.find("model.diffusion_model.guidance_in.in_layer.weight") != std::string::npos) {
|
||||
shift = 1.15f;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
denoiser = std::make_shared<FluxFlowDenoiser>(shift);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user