MCPcopy Create free account

hub / github.com/PABannier/sam3.cpp / functions

Functions893 in github.com/PABannier/sam3.cpp

↓ 6 callersFunctionload_tensor
(path)
tests/compare_sam2_video.py:17
↓ 6 callersFunctionsam3_create_visual_tracker
sam3.cpp:12116
↓ 6 callersFunctionsam3_eff_feat_size
sam3.cpp:990
↓ 6 callersFunctionsam3_encode_memory
sam3.cpp:11510
↓ 6 callersFunctionsam3_is_visual_only
sam3.cpp:3365
↓ 6 callersFunctionsam3_propagate_frame
sam3.cpp:12132
↓ 6 callersFunctionsave_ggml_bnd
(path: str, x_bnd: torch.Tensor)
tests/dump_phase7_reference.py:87
↓ 6 callersFunctionsave_tensor
(path: str, t: torch.Tensor)
tests/dump_phase7_reference.py:75
↓ 6 callersFunctionstbi__fopen
stb/stb_image.h:1337
↓ 6 callersFunctionstbi__hdr_test
stb/stb_image.h:7097
↓ 6 callersFunctionstbi__mul2sizes_valid
returns 1 if the product is valid, 0 on overflow. negative factors are considered invalid.
stb/stb_image.h:1014
↓ 6 callersFunctionstbi__start_file
stb/stb_image.h:877
↓ 5 callersFunctionattention_forward
(q: torch.Tensor, k: torch.Tensor, v: torch.Tensor,
tests/dump_phase6_reference.py:201
↓ 5 callersFunctionbuild_overlay
examples/main_image.cpp:171
↓ 5 callersFunctioncheck
tests/test_phase3.cpp:99
↓ 5 callersFunctioncompare
Compare two tensors and return detailed metrics.
tests/compare_ddec_tensors.py:27
↓ 5 callersFunctionformat_time_short
examples/benchmark.cpp:87
↓ 5 callersFunctionload_tensor
(path)
tests/analyze_divergence.py:10
↓ 5 callersFunctionload_tensor
(path, dtype=np.float32)
tests/dump_ddec_from_package.py:155
↓ 5 callersFunctionmlp_forward
Forward through MLP layers from state dict.
tests/dump_phase5_reference.py:86
↓ 5 callersFunctionmlp_forward
(x, sd, prefix, num_layers, activation="relu")
tests/dump_ddec_from_package.py:79
↓ 5 callersFunctionmultihead_attention_forward
Manual multi-head attention forward.
tests/dump_phase5_reference.py:97
↓ 5 callersFunctionprint_diff_row_ex
tests/test_metal_block_stage_compare.cpp:186
↓ 5 callersFunctionprint_result
(name, metrics, status, atol)
tests/compare_ddec_tensors.py:74
↓ 5 callersFunctionsam3_conv_transpose_weight
sam3.cpp:1087
↓ 5 callersFunctionsam3_create_tracker
sam3.cpp:11736
↓ 5 callersFunctionsam3_eff_img_size
Resolve effective img_size / feat_size from state (which may override hp defaults).
sam3.cpp:987
↓ 5 callersFunctionsam3_get_model_type
sam3.cpp:3369
↓ 5 callersFunctionsam3_sam_attention
sam3.cpp:10168
↓ 5 callersFunctionsam3_segment_pcs
sam3.cpp:9665
↓ 5 callersFunctionsam3_track_frame
sam3.cpp:11750
↓ 5 callersFunctionstbi__cleanup_jpeg
clean up the temporary component buffers
stb/stb_image.h:3843
↓ 5 callersFunctionstbi__do_zlib
stb/stb_image.h:4510
↓ 5 callersFunctionstbi__getn
stb/stb_image.h:1666
↓ 5 callersFunctionstbi__hdr_gettoken
stb/stb_image.h:7109
↓ 5 callersFunctionstbi__jpeg_huff_decode
decode a jpeg huffman value from the bitstream
stb/stb_image.h:2097
↓ 5 callersFunctionstbi__jpeg_reset
after a restart interval, stbi__jpeg_reset the entropy decoder and the dc prediction
stb/stb_image.h:2936
↓ 5 callersFunctionstbi__malloc_mad2
mallocs with size overflow checking
stb/stb_image.h:1048
↓ 5 callersFunctionstbi__start_write_callbacks
initialize a callback-based context
stb/stb_image_write.h:276
↓ 5 callersFunctionstbi__zbuild_huffman
stb/stb_image.h:4124
↓ 5 callersFunctionstbiw__write1
stb/stb_image_write.h:399
↓ 4 callersFunctionbasename_of
examples/main_image.cpp:42
↓ 4 callersFunctionclear_init_prompts
examples/main_video.cpp:339
↓ 4 callersFunctioncompare_state_nchw
tests/test_metal_python_ref_compare.cpp:233
↓ 4 callersFunctioncompare_vectors
tests/test_metal_conv_dw.cpp:72
↓ 4 callersFunctionedgetam_build_fpn_neck_graph
sam3.cpp:4623
↓ 4 callersFunctionformat_shape
tests/test_metal_flash_attn_ext_block15_compare.cpp:55
↓ 4 callersFunctionfuse_bn_into_conv
Fuse Conv2d + BatchNorm2d into a single Conv2d with weight and bias.
convert_edgetam_to_ggml.py:106
↓ 4 callersMethodhiera_total_blocks
sam3.cpp:198
↓ 4 callersFunctionload_tensor
(path)
tests/visualize_cpp_masks.py:17
↓ 4 callersFunctionmodel_sort_key
Sort key: family → size → precision
examples/benchmark.cpp:105
↓ 4 callersFunctionnew_tensor_4d_from_shape
tests/test_metal_flash_attn_ext_block15_compare.cpp:164
↓ 4 callersMethodnumel
tests/test_utils.h:17
↓ 4 callersFunctionparse_points
tests/test_phase6.cpp:27
↓ 4 callersFunctionrun_block_bundle
tests/test_metal_block_stage_compare.cpp:245
↓ 4 callersFunctionrun_isolated_attention
tests/test_metal_flash_attn_ext_block15_compare.cpp:174
↓ 4 callersFunctionrun_isolated_rope
tests/test_metal_flash_attn_ext_block15_compare.cpp:367
↓ 4 callersFunctionrun_linear_host_ref_or_die
tests/test_metal_block0_stage_compare.cpp:92
↓ 4 callersFunctionrun_vit_block
tests/test_v_cont_removal.cpp:23
↓ 4 callersFunctionsam3_build_fenc_graph
Build full fusion encoder graph (6 layers). image_feats: [D, N, B] where N=5184 (72*72), D=256 prompt_tokens: [D, T, B] text/exemplar features pos_enc
sam3.cpp:8146
↓ 4 callersFunctionsam3_build_neck_graph
Build the SimpleFPN neck graph for one path (detector or tracker). Input: ViT output [E, W, H, B] with E=1024, W=H=72 But the conv ops expect [W, H, C
sam3.cpp:3867
↓ 4 callersFunctionsam3_build_sam_dec_graph
sam3.cpp:10548
↓ 4 callersFunctionsam3_ensure_tracker_pe_caches
Lazily compute and cache PE/RoPE data that is identical across all propagation calls.
sam3.cpp:11130
↓ 4 callersFunctionsam3_layer_norm_2d
sam3.cpp:1053
↓ 4 callersFunctionsam3_normalize_ne4
sam3.cpp:6680
↓ 4 callersFunctionsam3_populate_pe_cache
Read SAM prompt encoder weights from GPU and cache them in state. Also pre-computes the dense PE grid and no-mask tiled embedding. These never change
sam3.cpp:10291
↓ 4 callersFunctionsam3_propagate_single
sam3.cpp:11175
↓ 4 callersFunctionsam3_test_dump_phase6_from_ref_inputs
sam3.cpp:13710
↓ 4 callersFunctionsam3_test_load_tokenizer
sam3.cpp:12364
↓ 4 callersFunctionsam3_test_tokenize
sam3.cpp:12428
↓ 4 callersFunctionsave_ggml_bd
(path: str, x_bd: torch.Tensor)
tests/dump_phase7_reference.py:80
↓ 4 callersFunctionsave_ggml_nchw
(path: str, x_nchw: torch.Tensor)
tests/dump_phase6_reference.py:73
↓ 4 callersFunctionsave_raw
(path: str, arr: np.ndarray, shape)
tests/dump_phase6_reference.py:44
↓ 4 callersFunctionsave_raw
(path: str, arr: np.ndarray, shape)
tests/dump_phase7_reference.py:67
↓ 4 callersFunctionscreen_to_image
Convert screen position to image coordinates
examples/main_image.cpp:312
↓ 4 callersFunctionscreen_to_image
examples/main_video.cpp:210
↓ 4 callersFunctionshape_to_string
tests/test_metal_python_ref_compare.cpp:32
↓ 4 callersFunctionstbi__bitcount
stb/stb_image.h:5382
↓ 4 callersFunctionstbi__compute_y_16
stb/stb_image.h:1803
↓ 4 callersFunctionstbi__end_write_file
stb/stb_image_write.h:339
↓ 4 callersFunctionstbi__extend_receive
combined JPEG 'receive' and JPEG 'extend', since baseline always extends everything it receives.
stb/stb_image.h:2153
↓ 4 callersFunctionstbi__high_bit
returns 0..31 for the highest set bit
stb/stb_image.h:5370
↓ 4 callersFunctionstbi__jpeg_get_bit
stb/stb_image.h:2181
↓ 4 callersFunctionstbi__load_and_postprocess_8bit
stb/stb_image.h:1260
↓ 4 callersFunctionstbi__load_gif_main_outofmem
stb/stb_image.h:6952
↓ 4 callersFunctionstbi__readval
stb/stb_image.h:6367
↓ 4 callersFunctionstbi__shiftsigned
extract an arbitrarily-aligned N-bit value (N=bits) from v, and then make it 8-bits long and fractionally extend it to full full range.
stb/stb_image.h:5395
↓ 4 callersFunctionstbi__start_write_file
stb/stb_image_write.h:332
↓ 4 callersFunctionstbi__tga_get_comp
returns STBI_rgb or whatever, 0 on error
stb/stb_image.h:5739
↓ 4 callersFunctionstbi__vertical_flip
stb/stb_image.h:1222
↓ 4 callersFunctionstbi__zget8
stb/stb_image.h:4197
↓ 4 callersFunctionstbiw__write_flush
stb/stb_image_write.h:386
↓ 4 callersFunctiontrim_shape
tests/test_metal_vit_prefix_compare.cpp:21
↓ 3 callersFunctioncompare
tests/test_v_cont_removal.cpp:136
↓ 3 callersFunctioncompute_full_metrics
tests/test_e2e_pvs.cpp:63
↓ 3 callersFunctioncompute_full_metrics
tests/test_e2e_pcs.cpp:46
↓ 3 callersFunctioncompute_metrics
tests/test_metal_python_ref_compare.cpp:41
↓ 3 callersFunctiondump_geometry_encoder
( ckpt: Dict[str, torch.Tensor], img_feats_hwc: torch.Tensor, # [H*W, B, C] seq-first image feat
tests/dump_geom_encoder_reference.py:156
↓ 3 callersFunctiondump_preprocessing
Stage 0: Dump preprocessed image tensor.
tests/dump_sam2_reference.py:34
↓ 3 callersFunctionedgetam_build_repvit_graph
Build the full RepViT backbone graph. Input: [W, H, 3, 1] image Returns 4 feature maps as stage_outs[0..3], each [C_stage, W_stage, H_stage, 1]
sam3.cpp:4796
← previousnext →101–200 of 893, ranked by callers