mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-14 12:56:33 +00:00
revert Rope::gen_qwen_image_ids
This commit is contained in:
1 parent
a123e25ae8
commit
70654d004d
1 file changed
+2
-2
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user