File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed
Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -1927,16 +1927,20 @@ int clip_n_patches(const struct clip_ctx * ctx) {
19271927
19281928 int n_patches = (params.image_size / params.patch_size ) * (params.image_size / params.patch_size );
19291929
1930- if (ctx->proj_type == PROJECTOR_TYPE_LDP || ctx->proj_type == PROJECTOR_TYPE_LDPV2) {
1931- n_patches /= 4 ;
1932- } else if (ctx->proj_type == PROJECTOR_TYPE_RESAMPLER) {
1933- if (ctx->minicpmv_version == 2 ) {
1934- n_patches = 96 ;
1935- }
1936- else if (ctx->minicpmv_version == 3 ) {
1937- n_patches = 64 ;
1938- }
1939- }
1930+ if (ctx->omni_vlm_ver_type == omni_vlm_version_type::VLM_81_OCR
1931+ || ctx->omni_vlm_ver_type == omni_vlm_version_type::VLM_81_INSTRUCT) {
1932+ n_patches /= 9 ;
1933+ }
1934+ // if (ctx->proj_type == PROJECTOR_TYPE_LDP || ctx->proj_type == PROJECTOR_TYPE_LDPV2) {
1935+ // n_patches /= 4;
1936+ // } else if (ctx->proj_type == PROJECTOR_TYPE_RESAMPLER) {
1937+ // if (ctx->minicpmv_version == 2) {
1938+ // n_patches = 96;
1939+ // }
1940+ // else if (ctx->minicpmv_version == 3) {
1941+ // n_patches = 64;
1942+ // }
1943+ // }
19401944
19411945 return n_patches;
19421946}
You can’t perform that action at this time.
0 commit comments