mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2025-12-13 05:48:56 +00:00
revert Rope::gen_qwen_image_ids
This commit is contained in:
parent
a123e25ae8
commit
70654d004d
4
rope.hpp
4
rope.hpp
@ -222,8 +222,8 @@ namespace Rope {
|
||||
int context_len,
|
||||
const std::vector<ggml_tensor*>& ref_latents,
|
||||
bool increase_ref_index) {
|
||||
int h_len = (h + (patch_size / 2)) / patch_size / 2;
|
||||
int w_len = (w + (patch_size / 2)) / patch_size / 2;
|
||||
int h_len = (h + (patch_size / 2)) / patch_size;
|
||||
int w_len = (w + (patch_size / 2)) / patch_size;
|
||||
int txt_id_start = std::max(h_len, w_len);
|
||||
auto txt_ids = linspace<float>(txt_id_start, context_len + txt_id_start, context_len);
|
||||
std::vector<std::vector<float>> txt_ids_repeated(bs * context_len, std::vector<float>(3));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user