mtmd: format code
This commit is contained in:
parent
f629d02ee1
commit
5a741fda55
|
|
@ -3238,8 +3238,7 @@ bool clip_image_preprocess(struct clip_ctx * ctx, const clip_image_u8 * img, str
|
||||||
|
|
||||||
res_imgs->grid_x = 1;
|
res_imgs->grid_x = 1;
|
||||||
res_imgs->grid_y = 1;
|
res_imgs->grid_y = 1;
|
||||||
}
|
} break;
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
LOG_ERR("%s: unsupported projector type %d\n", __func__, ctx->proj_type());
|
LOG_ERR("%s: unsupported projector type %d\n", __func__, ctx->proj_type());
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,6 @@ static ggml_tensor * get_rel_pos(ggml_context * ctx0,
|
||||||
ggml_cgraph * clip_graph_deepseekocr::build() {
|
ggml_cgraph * clip_graph_deepseekocr::build() {
|
||||||
// patch embedding
|
// patch embedding
|
||||||
ggml_tensor * inp_raw = build_inp_raw();
|
ggml_tensor * inp_raw = build_inp_raw();
|
||||||
//ggml_tensor * sam_out = build_sam(inp_raw);
|
|
||||||
|
|
||||||
ggml_tensor * sam_out;
|
ggml_tensor * sam_out;
|
||||||
// Building SAM
|
// Building SAM
|
||||||
|
|
@ -247,7 +246,7 @@ ggml_cgraph * clip_graph_deepseekocr::build() {
|
||||||
ggml_build_forward_expand(gf, cur);
|
ggml_build_forward_expand(gf, cur);
|
||||||
sam_out = cur;
|
sam_out = cur;
|
||||||
}
|
}
|
||||||
//ggml_tensor * clip_out = build_dsocr_clip(sam_out);
|
|
||||||
ggml_tensor * clip_out;
|
ggml_tensor * clip_out;
|
||||||
// Building DS-OCR CLIP
|
// Building DS-OCR CLIP
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue