mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 19:36:33 +00:00
chore: silence narrowing conversion warnings (#1717)
This commit is contained in:
1 parent
7b5f34d93e
commit
9f855c933b
4 files changed
+19
-22
No files matched your search
@@ -602,7 +602,7 @@ struct LogitNormalScheduler : SigmaScheduler {
|
||||
}
|
||||
}
|
||||
if (image_seq_len > 0 && resolution_aware) {
|
||||
mean += 0.5 * std::log(static_cast<float>(image_seq_len) / static_cast<float>(known_seq_len));
|
||||
mean += 0.5f * std::log(static_cast<float>(image_seq_len) / static_cast<float>(known_seq_len));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -735,7 +735,7 @@ struct LogitNormalScheduler : SigmaScheduler {
|
||||
float t = static_cast<float>(i) / static_cast<float>(n);
|
||||
|
||||
// ndtri(1-t) == -ndtri(t)
|
||||
float z = -ndtri(t);
|
||||
float z = static_cast<float>(-ndtri(t));
|
||||
|
||||
float y = mean + std * z;
|
||||
|
||||
|
||||
Reference in new issue
Block a user